LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have defined a finite state machine: pb with button : they need to be click twice

I have defined a finite state machine and also defined a call to a C dll enabling to kill processus  since in my state machine I have to sequence several exe and being able to interupt them (This is the goal of mu manageProc dll)

for the moment I make my integration test with the notepad.exe process

the create and kill seems to work

but I have problem wth my finite state machine I need to click twice on the differnts button for a given state to be really effective

I have also used glabal variable and an event controller ( without that I was unable to get ffedback oo buuton click

So my question are

Is my problem due to the use of a shift register

Please tell me if you need other file to understand my problem

 

Regards

Thibaut

 

 

 

0 Kudos
Message 1 of 2
(2,631 Views)
Thibaut,

You should put the event structure into its own parallel while loop rather than sharing the loop with the state machine. Typically the terminals of the controls will be placed inside the event case where they are read. At least inside the loop.

Run your VI with execution highlighting on (the light bulb on the diagram toolbar). This will show you how dataflow works.

You probably do not need most of your global variables. Appropriate use of shift registers and wires would eliminate them.

Lynn
Message 2 of 2
(2,625 Views)