10-23-2017 03:47 AM
Good morning everybody,
I am using Labview and a PXI-Chassis combined with an Ethercat expansion module. For our application, a state machine will be implemented, with the states:
-Initialization
-Idle
-Running
-Stopping
The transition between these states will depend not only upon user commands, but also on external signals. For example if an external "ready to operate" signal goes low or if the user presses a button, the system should transit to state "Stop". However, there is also the need for a parallel structure consisting of a real-time Control.VI, a logging Log.VI and a user interface panel UserInterface.VI, which will exchange data.
My question is: should I insert this parallel structure only in the "Running state" or should I insert the whole state machine in the Control.VI instead?
Thanks alot
Lysandros
10-23-2017 08:47 AM
Put parallel operations in loops parallel to your state machine. Use queues to send commands to your other loops to have them perform what is needed. Look into the Queued Message Handler.