Machine d'etat

 bonjour
alors je debute et je test pour un futur projet le fonctionnement des machines d'etat.
alors dans mon vi en piece jointe j'ai créer 2 boucle pour essayer de comprendre mon probleme lorsque je connecte mon enum sur la
connecteur de la boucle condition, aucun souci toute fonctionne
correctement au niveau de la structure condition
Mais lorsque dans la boucle je rajoute une condition pour changer d'etat
en utilisant des registre à decalage eh bien ca ne fonctionne plus des
point rouge apparaissent sur mes registres et ma structure condition n'affiche plus mes etats
je ne comprend pas pourquoi?
Pièces jointes :
Sans titre 1.vi ‏10 KB

Bonjour,
Oui c'est normale dans la mesure ou l'enum que vous utilisez dans la boucle est different de l'enum qui initialise la machine
Ce qu'il est recommandé : definissez un enum en typ def par exemple le premier a gauche
clicker droit dessus et changer le en commande , re trouvez le sur la face avant , puis:
clicker droit dessus ->avancer ->personnaliser -> une fois la fenetre ouverte changer dans la barre de menu le type commande en def de type
puis fichier enregistrer la commande est sauvegardé la dans votre repertoire d'application , fermer la fenetre ,
au moment de quitter  choisir oui pour remplacer la commande par cette nouvelle definition.
Vous venez de definir une liste d'etat dont les modifications seront repercupeter sur toutes ses instances , donc plus besoin de modififier chaque constante et plus de points rouges.
dans le diagramme re passer cette commande en constante ,
supprimer les enum qui ne sont pas de copies de la typ def
A partir de maintenant n'utiliser que des
copies de cettecommande pour definir les etats
quand vous voudrez ajouter un etat il suffira de cliker droit -> ouvrir la def de type et de modifier la liste
Par contre pourriez vous expliquer le role de la deuxieme boucle, vous souhaitez realiser deux machines d'etats concurentes ?
Cdt
Tinnitus
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte

Similar Messages

  • Communication entres plus de 7 vi et sous vi

    Bonjour,
    je suis etudiant en stage et la j'ai un programme qui comporte plus de 7 vi et sous vi.
    Et je voudrais bien faire communiquer c'est differents vis entre eux sans utiliser
    des variables globales. jusque la j'ai utiliser les noeud qe propriétés pour recupérer
    les données de chaque comande (nom de la comande) mais ca devient trop.
    qq pourait - il m'aider svp merci.
    cordialement 

    Je vais essayer d'expliquer le fonctinnement d'une Machine d'Etat a travers quelques exemples en images.  Ca sera quelque chose de tres simple.
    En realite', la premiere partie consiste a faire un schema d'une machine d'etat.  Le schema demontre les transitions entre les etats.  En autres mots, ce qui decide quel est le prochain etat.
    L'exemple consiste de faire un calcule.  Selon le resultat, une autre etat est choisi.  Si le resultata est de 10 ou moin, on pose une question a l'operateur.  Un resultat de 25 termine le programme automatiquement.
    Voir ci-dessous:
    Message Edited by JoeLabView on 07-01-2008 08:25 AM
    Attachments:
    StateMachine0.PNG ‏25 KB
    StateMachine1.PNG ‏25 KB

  • RESET et continuité de CI integrateur boucle simulation

    Bonjour,
    Dans une boucle de simulation, je souhaite pouvoir changer les systèmes différentiels intégrés en conservant la valeur de l'état au moment ou je change d'équations différentielles.(Pour être plus clair, mon cas d'étude est une bille sur un plan incliné, dès que la bille dépasse le bord du plan elle rentre en chute libre. Les conditions initiales de cette chute libre (eq diff2) correspondent à la valeur de l'état au moment ou elle quitte la plan incliné (eq diff1)). Je ne parviens pas à charger les conditions de l'eq diff2 par l'état de la bille issue de l'eq diff1.
    Voici, ci dessous, une image d'un VI élémentaire  qui isole mon problème. Je ne parviens pas à avoir la continuité de l'état entre 2 intégrations consécutives (1/p) et (2/p)...  Il semble que les boucles de simulation ne se comportent pas comme une simple boucle While..
    Est ce que que quelqu'un a une idée? 
    ML
    Pièces jointes :
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Capture d’écran 2010-11-19 à 10.49.04.png ‏31 KB

    bonjour,
    si vous voulez n'utiliser qu'une seule boucle il faut utiliser le pricipe de machine d'etats
    mais pour faire simple vous pouvez aussi
    proceder avec deux boucles 1 pour eq 1 une pour eq2
    il faut ensuite definir la condition de passage de l'une a l'autre
    ci joint un exemple pour le principe
    @+
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Pièces jointes :
    eq d.vi ‏15 KB

  • Incrémenter à chaque run

    Bonjour.
    Est-il possible d'incrémenter une variable à chaque éxécution ? C'est à dire que Labview garderait en mémoire la valeur n et qu'à l'éxécution suivante, il me ressorte la valeur n+1
    Nicolas

    Oui.
    Tu peux utiliser un "Action Engine" ou mieux reconnus sous le terme de "Functional Global Variable".
    Le concepte est simple.  Tu as une boucle avec un "shift register" qui est non-initiale'.  Chaque fois que l'application l'appelle, il se souvient de la derniere valeur.  Tu pourrais donc avoir au sein de ton logiciel (si tu utilises un "State Machine"), un etat qui s'occuppe de contenir la derniere valeur.  Et tu peux l'incrementer chaque fois que tu appelles cet etat. 
    La solution la plus simple est d'incorporer un "Action Engine" a ton code.  Tu peux faire une rechercher sur ce terme.  Il y a quelques exemples de disponibles.
    Cependant, des que tu fermes ton application (exe) ou tu fermes LabVIEW, la valeur en memoire est perdu..  Si tu veux maintenir cette valeur meme si LabVIEW est fermer (ou ton ordi est fermer), je suggere que tu sauvegarde la derniere valeur dans un fichier.

  • How can multiple users use the same Creative Cloud Individual on one single-machine?

    We have one shared graphics workstation, which is infrequently in use by different people - therefore we bought a single-workstation license (which we were referred to "Creative Cloud Individual"). In the FAQs it says it installs locally, but whenever a user different from the installing adminstrator logs in, he is forced to use the trial.
    Is there a way to make the local installation usable on that single machine for multiple users?
    Thanks in advance for your reply

    Serenatasystems do the other users not have administrator access?  What happens if they sign in using the Adobe ID tied to your Creative Cloud subscription?  Do your Adobe Creative applications then exit trial mode?

  • Error while opening a report in FRstudio client machine.

    Hi,I'm getting below error while opening a report in FRstudio client machine. please help me if any of you resolved this issue earlier.
    client laptop: 64bit windows7
    hyperion version: 11.1.2.2
    error msg:
    "HARSnapin Initialize() Error -2147467259 - ; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.InvalidClassException: com.hyperion.reporting.graphics.GridObject; local class incompatible: stream classdesc serialVersionUID = 5432192847655595077, local class serialVersionUID = -5245705824007679661"
    thanks

    I've seen umarshalling error when there is a difference between the client and server version. Is there a patch applied? I would recommend to uninstall the existing one and install if from Workspace. (this will ensure that you've the correct client version)
    Regards
    Celvin
    http://www.orahyplabs.com

  • Cannot install windows 8.1 on imac 5k - apple support says "Correct, that machine can't install windows" Boot camp fail

    I have a brand new imac 5k, with 4ghz i7, 295x GPU, 3.1TB fusion drive.  Bought the machine so I could dual boot - I need windows for VR Dev work.
    I've spent the last week and a half on tech support calls with Apple Senior Tech agents, and Microsoft agents as well, and today have been told that indeed this machine cannot run windows 8.1.  Apparently Apple engineering knows about the issue, but says the problem is microsoft's.  Ugh.
    The latest iteration of the issue comes when installing 8.1 onto an external thunderbolt SSD (without even using boot camp) - I go through the EFI installer, convert the drive to GPT, format it as ntfs, but when I select the partition to install onto, the installer says it can't find the partition it just created.  Smuh? 
    I've also tried the install through boot camp.  This installation actually worked twice, but the install was unstable.  After booting back into osX, then returning to Windows, the windows install went corrupt and couldn't be repaired.  Subsequent attempts to install windows yielded a flurry of different errors, including "windows doesn't support GPT in this mode" or "the disk is locked, please unlock the disk" or "MBR must be converted to GPT" (where once I converted to GPT, the drive could no longer be found, despite the operation completing successfully.)
    At any rate, it's a huge mess.  I'd happily return the machine for a different config, but the company I bought it from will only swap it for a similar model -- so I've spent a pile on a machine that does not function as advertised; apple says "too bad, talk to Microsoft." Microsoft says "too bad, we've never seen this, this is an apple issue."
    Has anyone out there gotten windows up and running on an iMac5k with fusion drive?  If so, did you have to go through a crazy maze to make it work?
    Any help is appreciated.
    Thanks,
    MC

    Michael Conelly wrote:
    After much gnashing of teeth, and a half dozen support calls, I'd all but given up.  I finally seem to have solved this though - sort of - by installing windows 8.1 on boot camp on an older iMac, then cloning the bootcamp disk to an external thunderbolt drive via Winclone.  That worked seamlessly, sticking to winclone's instructions, and I can boot via EFI to Windows 8.1 on the new iMac.  So far so good.
    I usually install W8.1 via EFI by using DU and a Free Space partition. The 3TB Fusion is first split into the underlying SSD/HDD physicals. OSX and Windows OSes are installed on SSD via EFI (no BCA). The OSX part and half the HDD are then used to create a new CS volume. The other HDD half becomes NTFS for non-Windows OS files. The Hybrid MBR method is completely unsatisfactory with the 3TB Fusion drive.
    How is the TB/Winclone image for performance of the OS (since pagefile.sys is also on the TB)?

  • Iomega external hard drive either 'not found' by Time Machine or is now in 'read only' format

    I don't know what's going on with my iomega external hard drive.  Sometimes the HD is recognised by the computer; other times it isn't; if it isn't I can restore to an earlier back up via Time Machine app; but it's like the disk isn't writable.
    Ten days ago, I had trouble backing up my iMac using Time Machine.  After turning it off and restarting my external hard drive, it backed up successfully.
    However, today I am trying to back up my files, and TM tells me it can't find the external hard drive.  Nothing has changed -- I have been out of town this past week -- but somehow my HD now seems to be in 'read only' format.  It does turn on, and I could restore my computer to an earlier back up.
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    Annoyingly, despite my HD not showing in Finder or on my Desktop (as it usually does), when I simply turn it off I get that warning message "The disk was not ejected properly".
    Have tried verifying and repairing using Disk Utility, to no avail. 
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.  I'm guessing this would wipe the disk clean and I'd have to create the initial back up image all over again -- I'm reluctant to do this since this HD is my only back up and if it all goes tits up I'll be up that famous creek without a paddle.
    Thoughts, suggestions, input all welcome and deeply appreciated -- thank you!

    fzgy wrote:
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    It's possible a heavy-duty 3rd-party disk repair app can fix it, but they're expensive (DiskWarrior is about $100), and there's no guarantee it can do it.
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.
    That will erase it.  See Time Machine - Frequently Asked Question #5.
    It sounds very much like the disk is beginning to fail, although it's possible there's a bad port, cable, connection or power supply (if it has its own).
    I'd suggest getting a new one, and using it for your Time Machine backups; once you have a good backup there, reformat the old one (and select Security Options to write zeros to the whole drive -- if that fails, you know the drive is toast).  Use it for secondary backups, per FAQ #27.   If it has failed, get a second new one for secondary backups. 

  • Back up using time machine and external hard drive

    Hello,
    I am having a difficult time deciding the best way to back up important documents. 
    I have:
    1TB internal hard drive
    3 TB external hard drive and
    1TB external hard drive
    I currently have about 1TB worth of data to be stored, but that will increase to about 1.5TB once I get a bunch of stuff off the HD camera's hard drive.  I would like to keep my internal hard drive somewhat free to keep the computer running fast, but also want to make sure I am properly backed up. 
    Should I put ALL (or nearly all) of the files on the 3 TB external hard drive, and have time machine back that up and not worry about the rest? I'm a little weary about putting all of the files on one device even if it is backed up by TM. 
    If I do this, do I need to back up the 3 TB external drive in addition to using TM?
    Thanks!

    iMac11,2
    OS X 10.6.8

  • Can not see historical data in Time Machine backup

    Hi folks
    First my setup:
       MBP Late2012
       Samsung Evo 840 SSD
       external USB 3.0 1TB as TimeMachine HD
       Mac OS X Mavericks
    Now my problem.
    After updating to Mavericks I've made a full backup with Time Machine.
    Then I swapped the former 500TB HDD to the Samsung Evo 840 500TB.
    A clean setup of Mavericks follows.
    After that I restored the Backup from Time Machine.
    Everything ok. Til now.
    Because everthing works fine in the past, I did not control the Time Machine.
    Today I wanna restore a File from my "Pictures" folder.
    So I opened Time Machine.
    Oops.
    There I can only see the latest run.
    Also in the timeline on the right side the only entries are TODAY and NOW.
    I can not scroll into the past.
    All windows behind the current window have a black titlebar.
    In Mountain lion the titlebars are grey if there is data available
    and the title contains the date of the backup.
    What is the problem?
    Is there a bug?
    Did I something wrong?
    Thanx in adv.
          Stoiker

    Hi masong517
    What a treasure trove of hints and solutions.
    I didn't know this page.
    But  you are right with "E2".
    This solved my problem.
    Thank you very much.

  • Installation problem on Intel - IV Machine

    Hi,
    I am having Intel P-IV machine, with 845 motherboard, sdram, seagate hdd and tnt vga. when i am trying to install solaris 8 in my machine after proceding upto booting from disk (or) cdrom i have selected cdrom then, when i say 1. Interactive or 2. Jumpstart, after selecting Interactive Installation my system is rebooting automatically.
    Can any one tell me the solution regarding this issue.
    Thanks in advance,
    Mohammed Abid Ali

    This case is similar to the case handled by Jurgen Keil on Digest Number 385 except that my case, it has a different error message.
    At the prompt "Select type of installation" (or the prompt
    "Select (b)oot or (i)nterpreter:", I type the command "b kadb -d". I see a General Protection Fault and some messages which cause the system to reboot. But I can't capture all the errors/messages cuz there's no system dump device configured.
    How do I configured the system dump device so I can send you more details?
    Thank you.

  • Installation problem on Dell P4 machine...

    While I was trying to install Solaris 8 to a Dell P4 machine (8100 series), after the "Copyright..." line, the installation process never gets to the section where it should display "Configuring /dev and /devices".
    Each time the installation gets to the menu to choose the installation method (Interactive or JumpStart), after running a few more processes, the system displays "Skipping System Dump: No dump device configured" and then the machine reboots. It keeps doing the same thing over and over but I do not see any error message and the screen clears rigth away when it reboots.
    Any help would be appreciated.

    This case is similar to the case handled by Jurgen Keil on Digest Number 385 except that my case, it has a different error message.
    At the prompt "Select type of installation" (or the prompt
    "Select (b)oot or (i)nterpreter:", I type the command "b kadb -d". I see a General Protection Fault and some messages which cause the system to reboot. But I can't capture all the errors/messages cuz there's no system dump device configured.
    How do I configured the system dump device so I can send you more details?
    Thank you.

  • Mixing memory module of different sizes in G5-8 slot machine

    is there a problem with Mixing memory module of different sizes in G5-8 slot machine
    I have 2gb on four slots with 512 memory chips
    Can I upgrade my memory with 1gb chips in the remaining four slots.

    Hi epospiech-
    Yes you can.
    Instructions here: Memory (DIMMs) Replacement Instructions
    Luck-
    -DaddyPaycheck

  • How to delete file from client machine

    Hi all,
    we are using the DataBase: oracle:10g,
    and forms/reports 10g(developer suite 10g-10.1.2.2).
    can anybody help me how to delete the file from client machine in specified location using webutil or any
    (i tried with webutil_host & client_host but it is working for application server only)
    thank you.

    hi
    check this not tested.
    PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
    IS
    -- Open a stored document --
    LC$Cmd Varchar2(1280) ;
    LC$Nom Varchar2(1000) ;
    LC$Fic Varchar2(1280);
    LC$Path Varchar2(1280);
    LC$Sep Varchar2(1) ;
    LN$But Pls_Integer ;
    LB$Ok Boolean ;
    -- Current Process ID --
    ret WEBUTIL_HOST.PROCESS_ID ;
    V_FICHERO VARCHAR2(500);
    COMILLA VARCHAR2(4) := '''';
    BOTON NUMBER;
    MODO VARCHAR2(50);
    URL VARCHAR2(500);
    Begin
    V_FICHERO := V_ID_DOC;
    LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
    LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
    --LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
    LC$Path := 'C:';
    LC$Fic := LC$Path || LC$Sep || LC$Nom ;
    If Not webutil_file_transfer.DB_To_Client
    LC$Fic,
    'TABLE_NAME',
    'ITEM_NAME',
    'WHERE'
    ) Then
    Raise Form_trigger_Failure ;
    End if ;
    LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
    Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
    LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
    If LN$But 0 Then
    Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
    Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
    LN$But := Show_Alert( 'ALER_STOP_1' ) ;
    LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Raise Form_Trigger_Failure ;
    End if ;
    If Not webutil_file_transfer.Client_To_DB
    LC$Fic,
    'TABLE_NAME',
    'ITEM_NAME',
    'WHERE'
    ) Then
    NULL;
    Else
    Commit ;
    End if ;
    LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
    Exception
    When Form_Trigger_Failure Then
    Raise ;
    End ;sarah

  • Safe to delete file from Time Machine hard drive?

    Is it safe to delete a file from an external hard drive that's being used for Time Machine backups? The file is not a backup -- it's a .dmg from the manufacturer of the hard drive. Other than that one file, I don't use the drive for anything other than Time Machine.
    I'm just concerned because I don't want deleting the file to affect Time Machine in any way.
    Thank you.

    I have done it without issue.

Maybe you are looking for

  • SRM BAdI BBP_PGRP_ASSIGN_BADI not triggering

    Hi All, I want to assign purchasing group to the shopping cart item based on Plant and Storage location.I found BAdI BBP_PGRP_ASSIGN_BADI suitable for this at SRM side, so I implemented it.But this BAdI is not triggering. Can anyone please let me kno

  • Transaction variant for RPCPCC00

    I need to create a transaction variant for the program RPCPCC00 and default the company code value so that a given person can run the report only for the given default value. I'm not able to set a default. Can anybody help me in this? Thanks in advan

  • FDM Multiload Batch loader issue

    Hi All, I need help in Multiload Batch load process. I am working on FDM 11.1.2.1. We need to move data of 6 months. I am using comma separated Text file for this purpose. When I am loading it through FDM user interface, it is fine (It is generating

  • RJVM has already been shutdown error while looking upto Foreign Server

    Hi, I am trying to set up 2 new servers in a clustered environment. In this I have configured a Foreign Server which is looking up to queues in different server. The structure is like this: 1 Foreign Server with 2 Queues and 1 Connection factory with

  • 13 in macbook and macbook pro power adapter

    I have a macbook from late 2006 and a new macbook pro 13 inch. The power adapters look the same and have identical specs printed on them as 60 W adapters etc. The tech specs read as identical power supplies also. Are they indeed interchangeable and i