VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

State machine architecture in VS?

Solved!
Go to solution

Recently I started migrating with a HiL-Project from Labview onto Veristand. Deployment of a first simplistic Veristand project for interfacing with Hardware works fine.

 

But how about a state machine architecture in Veristand...In Labview one can use hardware/software conditions for transitioning from one operating state (e.g. "Test" or "Initialization") to another (e.g. "Running"). And in each state variables can be set for the GUI (e.g. a string indicator showing the active state name)...but how is this logic implemented here? Are the Procedures the answer or do I need to import VI's from Labview somehow?

Thanks in advance



0 Kudos
Message 1 of 3
(2,564 Views)

After finding out that, yes, Procedures allow for a state machine architecture 🙂 How can I monitor in runtime, which procedure is active at a given time?

BEst wishes



0 Kudos
Message 2 of 3
(2,552 Views)
Solution
Accepted by topic author Lysandros

Hi,

I would keep procedures as simple as possible as they might became hard go maintain for more complex logic. Instead I would think of incorporating your decision-making logic in the stimulus profile respectively in the real-time sequence.

If you would need more complex state machine, you can also consider to implement it as LabVIEW model and compile it for NI VeriStand.

CLA, CTA, CLED
0 Kudos
Message 3 of 3
(2,544 Views)