04-20-2017 07:09 AM - edited 04-20-2017 07:11 AM
Hello all
For my project I need to alternate two LEDs, I have found a way to do this, but it isn't a very good one.
Now I have placed a wait with a large time, inside a case. So in case the statement for starting the alternation is true, my entire program will slow down.
I tried to use the 'elapsed time', but then one of the LEDs is on for a short period of time, but I want them both to be blinking at the same rate (which I can choose), but opposite of each other.
The idea is that the LEDs will be replaced with digital outputs to open and close valves.
Apart from that the program works pretty good.
current setup:
Solved! Go to Solution.
04-20-2017 08:00 AM - edited 04-20-2017 08:01 AM
You only posted a screenshot of a small portion of your VI. We can't tell what is happening in the rest of the VI, what else is inside the loop, what is in the False case, nor what boolean value is driving that case structure.
Post an actual VI.
04-20-2017 08:05 AM
It's a large VI, with many other different things, for now it's just a simulation, but I'll add a smaller version of the VI.
It basically simulates that when the temperature or pressure becomes to high, both valves need to alternate between open and closed.
04-20-2017 08:06 AM - edited 04-20-2017 08:08 AM
04-20-2017 08:22 AM - edited 04-20-2017 08:38 AM
Where would I set the time one LED has to stay on? (I guess blinking speed)
In the future real (hardware) project, they should be on for about 1-2 minutes.
Also, I'm having trouble connecting the second select, for some reason I can't insert boolean.
04-20-2017 08:40 AM
04-20-2017 08:46 AM
Alright, it seems to work good, thanks a lot for your help.
I added a x1000 for convenience.