Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

State machine architecture with Control, Logging and UserInterfacing

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



0 Kudos
Message 1 of 2
(2,289 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,261 Views)