LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Status indicator

Hello,
 
I am fairly new to LabVIEW, so please bear with me. 
 
I am using a flat sequence structure to carry out a number of tests.
 
I would like to be able to have some sort of status indicator to give the user instructions ("connect X to Y", "please wait", etc.), depending on which frame of the strip is executing.
 
I have tried to do this using a String Indicator placed outside the frames of the flat sequence strip, controlled by Select blocks fed with the relevant strings.  See attachment
 
However, I am unsure what I should use to control the Select blocks.  Is there a way of having something that outputs a logic 1 when the frame in which it is in is executing, and logic 0 for the rest of the time?
 
Am I approaching this in the right way?
 
Many thanks,
 
Dan
0 Kudos
Message 1 of 4
(4,581 Views)

hi,

you can create a string indicator and update the local variable of the string indicator in inside the each case individually with the string you want..

so that it will update the indicator whenever the particular case is executing..

hope this is clear..if not reply me..

 

0 Kudos
Message 2 of 4
(4,570 Views)
Hi Dan,

you can use locals of that string indicator in each frame. You know about dataflow? In your picture the strings will move on to the indicator after the frame has executed!

Or you can try to switch to a state machine, especially when you have more than 2 frames. Then you can get rid of locals...

In bigger projects a queue will also serve this purpose very well. Other options will work too...

Message Edited by GerdW on 10-22-2007 10:43 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(4,570 Views)

Excellent, thank you.

I have managed to do exactly what I wanted using locals.

Dan

0 Kudos
Message 4 of 4
(4,564 Views)