LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need some help with Loops

Hi all,
 
I am new to LV, and learning. I am using 3LED's. I am making a VI such that the 1st LED should turn on the moment the pgm is run, after 1sec, 2nd LED should turn on and stay on. After 2more secs., third LED should turn ON and stay on. All LED's should be on for 3sec, and then the pgm ends.
 
can anybody plz help me with one.
Thanks for any help.
CL
 
 
Message 1 of 16
(3,342 Views)
Hi
 
Have you already tried something? Is there already a first vi?
If your learning, it's probably better for you to try first. If we just submit one of x solutions, it's not the same.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 16
(3,337 Views)

I got one VI in LV7.0, right now i am using 7.1.1, and its no longer coming up. I started with a stacked sequence str., but only 1st LED's were turning on, the 3rd LED didn't turn on at all, and now i am not even getting  that.

Thanks

CL

0 Kudos
Message 3 of 16
(3,334 Views)
So could you submit the LV7.0 vi? I'll have a look at it and try to give you some advice.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 16
(3,331 Views)

Hi,

 

I have attached what i have so far. Also i am confused about something, if you can please tell me that.

1. As the pgm is run, the 1st LED should be on and shud stay ON, i.e. at t=0.

2. After 1sec, the 2nd LED should turn on and stay on..i.e. when t=2

3. after 2more seconds, does it mean when t=4sec?? 3rd LED should be on, ans stay on.

and then all LED's should be on for 3sec, and then the pgm should end.

I used sequence, but it didn't worked well, so i came up with this.

Thanks for any help.

CL

0 Kudos
Message 5 of 16
(3,326 Views)

Hi

Yes, I would say t=4 seconds.

Could you post your vi as LV7.0 please? If you don't know how to do this: Menu File >> Save with options >> Save for previous version

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 16
(3,322 Views)
i didn't knew how to save th VI in previous version. Thanks, here it is..
0 Kudos
Message 7 of 16
(3,321 Views)

Ok - this works.

You just had to change one operator:

First you had "elapsed time" = 0 and I just changed it to "elapsed time" >= 0.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 8 of 16
(3,316 Views)

I think i am pretty much close, but its not giving me the right result. Please let me know, and thanks for any help.

CL

0 Kudos
Message 9 of 16
(3,266 Views)

Hello CL, hello Thomas,

is it possible to post a screenshot of the VI? I only have LV6.i.

Regards ThomasD

0 Kudos
Message 10 of 16
(3,255 Views)