LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Status indicator

hello Everybody,

I have a question about a system status indicator.

in my code, I need to show the status of a my code, before pressing "run" button , I have a green lamp (green) , right after pressing "run" (druing the processor is busy) I have a red light which goes on. After the test finishes , I need the lamp again go green.

Would you advise me such an algortihm which can do this task?

regards
0 Kudos
Message 1 of 6
(3,801 Views)

Are the LEDs exclusive then? If so, a case structur would do the trick. Case if red LED on (TRUE), turn green LED off (false). All you'd need is a while loop to monitor the state of the red LED all throughout the program.

Cheers,

Ali

0 Kudos
Message 2 of 6
(3,776 Views)
hi Ali,

it is only one lamp , it should be off when the code executes , right after it finishes , it should turn on again which would indicate that man can run the code again


Message Edited by blue silver on 11-20-2007 02:02 PM
0 Kudos
Message 3 of 6
(3,772 Views)

ok, then I suggest you use a sequence structure. Place 3 frames. In the first one, put the green LED int the initial state you want it. Then in the second frame place your code and a local variable of the green light, again with the boolean constant you need. And in the third frame, place the LED in the state it should be when the program finishes executing. That's all I can think of without actually seeing the code. Might be helpful if you posted it because I don't quite understand your explanation.

Cheers,

Ali

0 Kudos
Message 4 of 6
(3,756 Views)
ok i will tell you my problem with a picture, here it is...

thanks

0 Kudos
Message 5 of 6
(3,747 Views)
I think Ali (and probably everyone else), expected to see a picture of the block diagram or the actual VI.
 
What you are asking for is trivial and one of the ways to do it is with a single Sequence Structure. See image below. If you have any existing structure (while loop, for loop, etc.), the sequence structure iteself can be eliminated.
 
 
I've noticed that you have asked a lot of basic questions recently. You might want to go to http://www.ni.com/academic/lv_training/how_learn_lv.htm and spend some time with the tutorials there. While you have an old version of LabVIEW, much will still apply.


Message Edited by Dennis Knutson on 11-20-2007 02:15 PM
0 Kudos
Message 6 of 6
(3,736 Views)