LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Led timing

Solved!
Go to solution

Hey all,

 

I would like to add a timing fuction to the attached program such that:

- Keep Led1 on for t seconds while keeping Led2 free for toggling.
In other words, while one led is on for a certain period of time, one should be able to manipulate (toggle) Led2 independent of Led1.

0 Kudos
Message 1 of 8
(3,935 Views)

Try to share actual code instead of image,

Do you want to Keep LED 1 ON For t Sec and during the same time LED 2 should be OFF and VIce Versa?

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 8
(3,926 Views)

Hey thanks.

 Attached please find it.  It's a simple code, still i am not able to figure out a proper way.

0 Kudos
Message 3 of 8
(3,918 Views)
Just spend some time reading: Introduction to LabVIEW http://www.ni.com/getting-started/labview-basics/ and http://www.learnni.com/
Thanks
uday
0 Kudos
Message 4 of 8
(3,914 Views)

I have spend time reading. Still could not figure out. Any suggestions/comments instead of stating the obvious would be appreciated.

0 Kudos
Message 5 of 8
(3,912 Views)

@PalanivelThiruvenkadam wrote:

Try to share actual code instead of image,

Do you want to Keep LED 1 ON For t Sec and during the same time LED 2 should be OFF and VIce Versa?

 


@PalanivelThiruvenkadam wrote:

Try to share actual code instead of image,

Do you want to Keep LED 1 ON For t Sec and during the same time LED 2 should be OFF and VIce Versa?

 


No i would like to keep LED 1 ON for t sec and at the same time should be able to toggle LED 2 freely.

0 Kudos
Message 6 of 8
(3,904 Views)
Solution
Accepted by topic author zezendapuss

Try this (5 can be changed based on your T Value better keep as Control)

 

LED.png

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 7 of 8
(3,893 Views)

Sorry that you were not able to do it.
-Please check Timing VIs and Functions:http://zone.ni.com/reference/en-XX/help/371361H-01/glang/time_dialog_and_error_func/
-You need to use loop to continuously run and update the indicator value
-You might try Using the Elapsed Time Express VI to use for your case 1 toggle LED 1
-You can try looking statemechine tutorial http://www.ni.com/tutorial/7595/en/

 

stating the obvious would be appreciated.
Spoiler
been there done that 😛



Thanks
uday
0 Kudos
Message 8 of 8
(3,885 Views)