IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Simulink Discussion :

ToWorkspace simulink composante


Sujet :

Simulink

  1. #1
    Membre extrêmement actif
    Avatar de mihaispr
    Inscrit en
    Décembre 2008
    Messages
    1 025
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 025
    Points : 858
    Points
    858
    Par défaut ToWorkspace simulink composante
    J'ai une petite erreur je veux faire un petit model en simulink qui fait la substraction de 2 composantes Constant .

    Le modele ici:


    http://img17.imageshack.us/img17/5807/scadere.png

    Je veux transmettre le resultat qui est 2 dans workspace. J'ai remplace display composante avec ToWorkspace composante qui est dans Sinks.

    Mais il me donne cette erreur:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    "### Starting Real-Time Workshop build procedure for model: scadere
    Warning: Using a default value of 0.2 for maximum step size.  The simulation step size will be limited to be less than this value.  You can disable this diagnostic by setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics page of the configuration parameters dialog."
    Merci d'avance,

    Michel

    Il est possible d'avoir 3 composantes constant qui entre sur une substract composante du matlab?

    J'attends aussi un reponse a cette question s'il est possible ou non.

  2. #2
    Membre chevronné
    Avatar de kmaniche
    Inscrit en
    Janvier 2006
    Messages
    1 717
    Détails du profil
    Informations forums :
    Inscription : Janvier 2006
    Messages : 1 717
    Points : 1 884
    Points
    1 884
    Par défaut
    Alors, toujours ces problèmes avec simulink ^^

    Sinon, je t'envoi la solution, elle est simple.


    Quand tu utilise de simple blocs, n'oublie pas de modifier :

    Simulation >> Configuration parameters ... >> Type = Fixed-Step.
    Les règles Les cours La fonction rechercher

    N'oubliez pas de mettre en et de voter.

    La terre n'est pas un héritage de nos parents, mais un emprunt que nous faisons à nos enfants. La protection de notre environnement est la responsabilité de tous. Ne reculez plus devant l'urgence, agissez !

  3. #3
    Membre extrêmement actif
    Avatar de mihaispr
    Inscrit en
    Décembre 2008
    Messages
    1 025
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 025
    Points : 858
    Points
    858
    Par défaut
    Merci!

    Mais j'ai l'erreur en command window.

    Ca peut venir de ma version?

    Erreur:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    "
    Warning: The model 'soustracteur' does not have continuous states, hence using the solver 'FixedStepDiscrete' instead of solver 'ode3'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog.
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
    Warning: The model 'soustracteur' does not have continuous states, hence using the solver 'FixedStepDiscrete' instead of solver 'ode3'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog.
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
    Warning: The model 'soustracteur' does not have continuous states, hence using the solver 'FixedStepDiscrete' instead of solver 'ode3'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog.
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
     
    ### Starting Real-Time Workshop build procedure for model: soustracteur
    ### Generating code into build directory: C:\Documents and Settings\MIHAI\Desktop\soustracteur_grt_rtw
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
    Warning: Unable to determine a fixed step size based on the sample times in the model 'soustracteur', because the model does not have any discrete sample times.  Picking a fixed step size of (0.2) based on simulation start and stop times.  You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
     
    ### Starting Real-Time Workshop build procedure for model: soustracteur
    ### Generating code into build directory: C:\Documents and Settings\MIHAI\Desk
    "
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    >>ver
     
    MATLAB Version 7.1.0.246 (R14) Service Pack 3
    MATLAB License Number: XXXXXX
    Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2)
    Java VM Version: Java 1.5.0 with Sun Microsystems Inc. Java HotSpot(TM)
    J'ai mis fixed step et solver discrete(no continues states) comme me dit dans le warning mais ca ne marche pas encore.

  4. #4
    Expert confirmé
    Avatar de duf42
    Homme Profil pro
    Formateur en informatique
    Inscrit en
    Novembre 2007
    Messages
    3 111
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Formateur en informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2007
    Messages : 3 111
    Points : 4 661
    Points
    4 661
    Par défaut
    Et as-tu préciser la valeur de ton pas?
    Simulink & Embedded Coder

    Au boulot : Windows 7 , MATLAB r2016b
    A la maison : ArchLinux mais pas MATLAB

  5. #5
    Membre extrêmement actif
    Avatar de mihaispr
    Inscrit en
    Décembre 2008
    Messages
    1 025
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 025
    Points : 858
    Points
    858
    Par défaut
    J'ai entre dans le menu Simulation->Configuration Parametres(CTRL+E) et il m'apparait comme ca:

    Il me dit de selecter discrete solver dans le warning.


    Voici l'image:

    http://img21.imageshack.us/img21/154...igurationk.png


    Ou est mon erreur en fait pourquoi il ne stoque en workspace le resultat stoque dans la composante display?

    Dans le workspace j'ai ca:

    http://img2.imageshack.us/img2/3223/workspace.png

    C'est bien?

    Mais je ne vois pas la valeur qui est stoque en display dans l'array editor. Je vois seulement cette information dans la photo attache.

    Et aussi j'ai la variable dans workspace pour la simulation (comprise entre 0.2 et 10 parce que j'ai mis Start time=0.2 et Stop time=10):

    http://img2.imageshack.us/img2/6392/simulation.png

  6. #6
    Membre extrêmement actif
    Avatar de mihaispr
    Inscrit en
    Décembre 2008
    Messages
    1 025
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 025
    Points : 858
    Points
    858
    Par défaut
    Je ne sais pas si j'ai fais bien ou non.


    Je voudrais voir le resultat de ma variable simout (la valeur qui est mise aussi dans display composante).


    Donc la valeur m'interesse si est dans le workspace comme dans le cas:

    Et quand je clique a en workspace je vois la valeur.

    Comme ca dans le cas de ma variable simout.

  7. #7
    Expert confirmé
    Avatar de duf42
    Homme Profil pro
    Formateur en informatique
    Inscrit en
    Novembre 2007
    Messages
    3 111
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Formateur en informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2007
    Messages : 3 111
    Points : 4 661
    Points
    4 661
    Par défaut
    Tu n'as pas préciser le pas que tu veux utiliser dans ta simulation et comme te le dis l'erreur, le solver n'arrive pas à définir le pas correct... A toi de le préciser pour enlever le warning...
    Simulink & Embedded Coder

    Au boulot : Windows 7 , MATLAB r2016b
    A la maison : ArchLinux mais pas MATLAB

  8. #8
    Membre extrêmement actif
    Avatar de mihaispr
    Inscrit en
    Décembre 2008
    Messages
    1 025
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 1 025
    Points : 858
    Points
    858
    Par défaut
    Merci beacoup kmaniche et duf!


  9. #9
    Membre chevronné
    Avatar de kmaniche
    Inscrit en
    Janvier 2006
    Messages
    1 717
    Détails du profil
    Informations forums :
    Inscription : Janvier 2006
    Messages : 1 717
    Points : 1 884
    Points
    1 884
    Par défaut
    Effectivement, il reste le problème lié au type de la variable de sortie généré par "ToWorkspace". Commen avoir une variable numérique indiquant le valeur de sortie
    Les règles Les cours La fonction rechercher

    N'oubliez pas de mettre en et de voter.

    La terre n'est pas un héritage de nos parents, mais un emprunt que nous faisons à nos enfants. La protection de notre environnement est la responsabilité de tous. Ne reculez plus devant l'urgence, agissez !

  10. #10
    Membre chevronné
    Avatar de kmaniche
    Inscrit en
    Janvier 2006
    Messages
    1 717
    Détails du profil
    Informations forums :
    Inscription : Janvier 2006
    Messages : 1 717
    Points : 1 884
    Points
    1 884
    Par défaut
    Ma version de Matlab étant 2009a, celle du bureau ^^
    Les règles Les cours La fonction rechercher

    N'oubliez pas de mettre en et de voter.

    La terre n'est pas un héritage de nos parents, mais un emprunt que nous faisons à nos enfants. La protection de notre environnement est la responsabilité de tous. Ne reculez plus devant l'urgence, agissez !

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Composante pour stoquer un modele simulink dans un gui
    Par mihaispr dans le forum Interfaces Graphiques
    Réponses: 2
    Dernier message: 04/05/2009, 18h43
  2. composante d'affichage
    Par zidenne dans le forum Bases de données
    Réponses: 5
    Dernier message: 14/11/2005, 16h40
  3. [débutant]composantes dans une sous-fenêtre
    Par ulyssed dans le forum Interfaces Graphiques en Java
    Réponses: 6
    Dernier message: 01/03/2005, 09h03
  4. Réponses: 2
    Dernier message: 26/10/2004, 17h42
  5. TObject->Color et composantes RGB
    Par Flo. dans le forum C++Builder
    Réponses: 10
    Dernier message: 14/06/2002, 17h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo