05-22-2014 09:39 AM - edited 05-22-2014 09:49 AM
Hello,
I am new user to labview. I am trying to control 3 LEDs (at the end solenoid valves) in order to have each of them switch on-off (at on=2 off=0.5 seconds), but each should start with a delay respect to previous one. So, I am trying to use the VI that I attached, and it works well to have 3LEDs on-off continuously till I stoped. I want to start each LEDs blinking with 0.5 delay respect to previous one. So, by applying this, the LEDs will flash at the same rate but with a time delay to each other. But unfortunately, the programm just turn on-off each of LEDs without any time overlap.
Could you please help me.
Thanks
05-22-2014 09:50 AM
I am not able to attach VI even any image.
05-22-2014 10:58 AM
Try zipping up your code and posting that.
06-02-2014 07:07 AM - edited 06-02-2014 07:33 AM
I changed my browser to Chrome
06-02-2014 07:43 AM - edited 06-02-2014 07:43 AM
I changed my browser to Chrome and now I can attach the file.
Apart from my goal to have an accurate control of On-Off time for 3 LEDs. To start having 3 LEDs witching On-Off in sequence, I tried with the VI attached to this post. But I do not know, how use data of true-false (boolean) of each frame for each LED and connect to DAQ assistant. I used Build array but it does not work.
I really apreciate your help.
Thanks,
06-02-2014 07:59 AM - edited 06-02-2014 07:59 AM
Since you only have 3 LEDs, I would just make an array to act as a lookup table for what your values should be. You can then iterate the row circularly and index out the values to your LEDs.
06-02-2014 09:19 AM - edited 06-02-2014 09:26 AM
Thank you very much for your reply.
I will try to build a VI as you suggested. In my VI, I was able to control the On-time of LED, but I do not know how to implement this to your code.
In the meantime, I have another question regarding my first comment of this post. I have attached the VI that I am using, and as I mentioned I need to have a [t] second overlap (e.g. 500 s), between the same On-Off LED pattern. So, since the on-off time for all 3 LEDs are the same, with the delay, I can have an overlap between them. But I do not get what I expect, and each turn on-off after eachother with no overlap. Any guide will be appreciated.
Thanks,