ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(5,435 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
(5,426 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
(5,418 Views)

Just spend some time reading: Introduction to LabVIEW https://learn.ni.com/learn/article/labview-tutorial and https://learn.ni.com/

Thanks
uday
0 Kudos
Message 4 of 8
(5,414 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
(5,412 Views)

@PazhanivelVenkatt 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?

 


@PazhanivelVenkatt 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
(5,404 Views)
Solution
Accepted by 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
(5,393 Views)

Sorry that you were not able to do it.
-Please check Timing VIs and Functions:https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/programming/timing-mnu.ht...
-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 https://www.ni.com/en/support/documentation/supplemental/16/simple-state-machine-template-documentat...

 

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



Thanks
uday
0 Kudos
Message 8 of 8
(5,385 Views)