08-11-2011 02:16 AM
Hello everyone, I just learned how to make LabVIEW program a week ago. I try to make a simulation of Digital Output by LabVIEW (my attachment). In this simulation I have a slider as an input (0-10 V), two numeric control (upper limit and bottom limit), a waveform chart that plot those 3 value, and two boolean LED (P0.0 and P0.1) as an indicator. In this simulation you can fill any number (between 0-10) in the numeric control as a limit for your slider input. If the input from a slider exceed those upper and bottom limit then the boolean LED will turn on, P0.0 if exceed upper limit and P0.1 if exceed bottom limit. The problem is I don't know how to make timer for those boolean LED. As example:
1) Make an input from slider,
2) If input (1) exceed the upper limit,P0.0 will turn on for 5 second,then turn of for 10 second,
3) If in that 10 second you change the input back to normal (between upper and bottom limit) then P0.0 will stay turn of until the input from slider exceed the upper limit again,
4)If in that 10 second you didn't change the input (stay exceed the upper limit) then P0.0 will repeat the process (2) until you the input from slider back to normal.
(Same process for input that exceed the bottom limit).
Can you help me to make this timer? Thank You 😄
Regards
Juventom
Solved! Go to Solution.
08-11-2011 04:35 AM
Hi
If you don´t mind I would just give you some advises to your code. To determin the data flow you can also use just error wire conected to the loop. If you don´t really need to, it is beter not to use variables. For your solution you could use something similar to what I tried for the upper limit in your program. It is added like a picture.
Hope it will help
08-12-2011 12:32 AM
Thank you SKSarko 😄 now I can implement this to my real digital output (solenoid valve), maybe if I find any problem, I will ask you again he2.....Thanks