07-10-2015 02:50 AM
Hi there.
I am using labview to control an closed circuit of flowing oil. within that circuit there are two solenoid valves that i am using to divert the full oil flow from one path to another. Therefore in labview i have used a shift register within a while loop to automatically alternate switching of the valves i.e. when one is open the other is closed.
This works fine from a Labview point of view. However, the solenoids are quicker to open than they are to close, so my pressure trace of the oil flow is not as close to a square waveform as it could be.
I would like to somehow delay the boolean 'true' signal (which is what opens each solenoid) by a variable ammount (probably 500ms max) so that effectively i can fine tune the switching of the valves.
Hopefully that makes sense. I guess that there is an easy solution but i'm a complete novice really.
07-10-2015 03:06 AM
07-10-2015 03:19 AM
Hi GerdW
Thanks for the reply, but could you put it in lay terms for me please as i'm really new to labview
thanks
07-10-2015 03:24 AM - edited 07-10-2015 03:27 AM
Hi Boooomer,
i'm really new to labview
When you are really new to LabVIEW you should take all those free online courses offered by NI on their website (www.learnni.com ).
And you should study the example VIs coming with LabVIEW.
And take a look at the example projects coming with LabVIEW.
And learn to write the name "LabVIEW"… 😄
in lay terms
- a delay requires some sort of wait function
- a statemachine is a basic programming concept (and is no special LabVIEW term)
07-10-2015 04:20 AM
Ok thanks
Is anybody able to give me some specific help at all?
Would much appreciate it
07-10-2015 04:24 AM
07-10-2015 04:39 AM
Obviously i want to delay the switching operations, but i'm trying to find out specifically how i do this in LabVIEW
07-10-2015 04:41 AM
07-14-2015 02:55 AM
ok i'm not getting anywhere with this.
I've attached a screenshot of my best attempt so far.
I've used a shift register to trigger a case structure to switch between true and false. The case structure should delay its operation by the value i put into the "milliseconds to wait" input and then stop functioning when the shift register changes from true to false or vice versa.
At the moment when i run the programme and press the start button inside the event structure the led's light up when they should but they stay on permenantly.
Any ideas?
07-14-2015 03:03 AM
Hi Boomer,
right now you switch one valve in the TRUE case and a 2nd valve in the FALSE case. The valves will never switch as they get the very same DO value all the time…
You use 3 timing functions in the loop - you will never get any useful timing this way!