09-08-2016 05:39 AM
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.
Solved! Go to Solution.
09-08-2016 05:43 AM - edited 09-08-2016 05:47 AM
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?
09-08-2016 05:46 AM - edited 09-08-2016 05:48 AM
Hey thanks.
Attached please find it. It's a simple code, still i am not able to figure out a proper way.
09-08-2016
05:48 AM
- last edited on
05-13-2025
01:59 PM
by
Content Cleaner
Just spend some time reading: Introduction to LabVIEW https://learn.ni.com/learn/article/labview-tutorial and https://learn.ni.com/
09-08-2016 05:50 AM
I have spend time reading. Still could not figure out. Any suggestions/comments instead of stating the obvious would be appreciated.
09-08-2016 05:53 AM - edited 09-08-2016 05:54 AM
@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.
09-08-2016 05:58 AM - edited 09-08-2016 05:59 AM
Try this (5 can be changed based on your T Value better keep as Control)
09-08-2016
06:04 AM
- last edited on
05-13-2025
02:00 PM
by
Content Cleaner
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.