LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

highlight item in array control state machine

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

0 Kudos
Message 1 of 4
(2,544 Views)

Not directly, but there are other solutions, for example:

 

 

  1. Index out the current element and display in a scalar indicator.
  2. Line up a boolean array next to it and light the LED next to the currrent state.
  3. etc.

 

0 Kudos
Message 2 of 4
(2,536 Views)

I'm guessing you can probably do this with a property node.

0 Kudos
Message 3 of 4
(2,495 Views)

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

Message 4 of 4
(2,490 Views)