LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Choose which value to send to an indicator

I am using a linear encoder moving in two directions (forward and reverse) counting down to zero in forward and counting up in reverse. I have a vi which uses 13 indicators to show a location for the encoder. 13 indicators all counting down can become too much to look at. Each of the indicators is a position I need to mark. Is there a slick way to use one indicator based off of criteria? I would like to be able to use a single indicator and basically, as it moves forward counting down to zero, once it reached zero, then would start counting down for the next point I need to move to. I hope this is clear enough. If not I can try to put together a vi demonstrating my dilemna more clearly.
0 Kudos
Message 1 of 2
(2,442 Views)
I would guess that a simple state machine/functional global might do the trick for you... design a subVI with 13 inputs (probably best to bundle these) and use a while loop shift register to store which input you're interested in at the moment - then just use a case structure to pipe that input to the subVI's single output.
0 Kudos
Message 2 of 2
(2,442 Views)