01-22-2010 07:46 AM
I want to use the state chart module for a LV program running on a RT target to measure/control an instrument.
I already watched the two online presentations (VUG) on this module and now want to know several things:
1. for one instrument, I want to run a "measure" VI every 5 seconds. This should be one state of a state chart....
But I want it to react to user inputs through a message queue qicker than every 5 seconds. So it is not
suitable to place the whole state chart vi in a timed loop with 5 seconds.... how would you do this?
The state chart should "react" more in the order of 0.5 seconds....
This is for a different part of the instrument with its own state diagram:
2. I am using string messages (tab-delimited commands with arguments) to control the instrument.
At some point I am evaluating this string to "trigger" certain actions (these should be performed in the state diagram).
I thought I could use the external trigger mechanism here (one command = one trigger) but how do I use this to pass
arguments of my commands to the state chart? It seems that the trigger queue is pre-defined as enum with only the
triggers I define in the state chart. It is more complicated in the sense that the number of arguments varies between
different commands some even do not have an argument.
3. It might want a situation where two subsequent states are performed within the same iteration. I am not entirely
sure how this is done, ene though I remember that this was mentioned in the second presentation.
Olaf
3. In
Any ideas?