05-05-2021 03:14 PM
Hello to everyone,
I'm using Arduino to communicate with LabVIEW. I have x4 LEDs attached to the pins 8,9,10 and 13. I'm trying to make the LED attached to pin 8 automatically turn on for an interval of 60s for a duration of 2 secs long. I think i kinda did it after looking at several examples but it is affecting the LEDs on other pins. There is lag of 60s for other LEDs also.
How can I operate this LED on the pin 8 (red boxed) independently i.e. 60s off and 2 sec on without affecting the other LEDs too? Is there any other way to do it? Detailed steps are much appreciated.
Thank you NI team.
05-05-2021 04:01 PM
Learn the Principle of Data Flow. If you have a Structure (such as a While Loop, or a Case Structure, or a sub-VI that you've written), the following "Rules" apply (almost all the time -- sorry to be so wishy-washy):
There are two very important consequences of these Principles:
Now look at your Task. You have some "Sequential" Tasks (LED On for 2 seconds, Off for 58 seconds) and some "Parallel" Tasks (other LEDs having differing On/Off ratios. Do you know how to do Timing in LabVIEW? Note that most of the Timing functions on the Timing Palette work as "Parallel" Tasks.
Bob Schor