11-08-2014 09:30 AM - edited 11-08-2014 09:34 AM
11-08-2014 09:33 AM
The VI
11-08-2014 09:55 AM - edited 11-08-2014 10:00 AM
(Please keep the subject line short and put your question in the body of the text. Thanks!)
You have a classic dataflow problem. Your switch terminal will only be read once at the start and never again. All your loops will spin once, wait for the time delay, then exit. Once all while loops have completed, the VI will end. What was the point?
I am not sure what you are trying to achieve, but for this problem you would use a single loop and place the switch and all LEDs inside it. You should also use a shorter delay. With a 4s delay, it might take up to 4 seconds until the switch is read and the LEDs change.
11-08-2014 09:55 AM
Hi Besho,
instead of putting your whole question in the title of your thread you should have put more text in the message body.
Especially you need to explain where you have problems with your code…
What exactly do you want to achieve?
Right now you can control all three LEDs with this single button. But due to DATAFLOW the only settings that is applied is the button state at VI start…
Go through LabVIEW basics and learn to THINK DATAFLOW!
11-08-2014 11:24 AM - edited 11-08-2014 11:32 AM
This is what i have done.What i wanted is the first led should blink then after 5 secondes the second led then after 10 second the third led . but i couldn't do that.
11-08-2014 11:35 AM - edited 11-08-2014 11:36 AM
@Besho wrote:
This is what i have done.What i wanted is the first led should blink then after 5 secondes the second led then after 10 second the third led . but i couldn't do that.
That is unfortunate! It seams like an easy homwork problem attempting to thech you datagflow concepts.
And you are not thinking about dataflow when you place 3 while loops that run in parraell with copies of a mis-configured express vi in them. Of Course there is no "Action" As written the vi will delay 4 seconds (three times in parallel) and exit --returning nothing and outputting nothing.
Do take a training course