10-06-2010 07:53 PM
Hi,
I have a state machine which I control using an array of enumerated controls. Is there a way for me to highlight the item in the array that the state machine is executing while the program is running.
Thanks,
-Tim
10-06-2010 08:57 PM
Not directly, but there are other solutions, for example:
10-11-2010 06:17 PM
I'm guessing you can probably do this with a property node.
10-11-2010 06:26 PM
If you need to debug it:
-> get a probe on the indexed state
-> get a control on the indexed state
You can't hightlight an element of an array, but you could color it on a table, select it on a listbox ....
But please also take the following advice: If you use a so called 'queued state machine', don't do that. They are not state machines (also promoted by NI) and a very bad design pattern. They are ok if they are pure queued message handlers (so no insert into queue inside the state execution) or if you seperate procxess queue from the states (have an idle state that popsout new states when all processing is done).
Felix