09-24-2010 04:30 PM
I have connected a relay to one of the digital outputs. I setup DAQ Assistant to actuate a valve with the relay. Now, I want to control the valve to be actuated every .....lets say 20 seconds, until I stop the program. What I would need is to change the state each 20 seconds. I tryed to use "Elapsed time" function but when I try to connect "Time has elapsed" to "Data" on the DAQ Ass. it reports different type of data. What would be the easy and clean way to use a "timer" to actuate a relay on a fixed and periodic time base? Thanks in advance !!
I am attaching a pic of my horrible test...
I am using Labview 2009 Student Edition.
Solved! Go to Solution.
09-24-2010 09:33 PM
Post the VI. Post more of the error description.
Looking at your screenshot, it looks like the dashed line going into the DAQ assistant is a bit thicker than the one coming out of the Elaspsed Time VI. It's probably expecting a 1-D array of booleans.
You might just have to build the scalar boolean into a 1-D array of booleans. Or configure your DAQ assistant differently.
09-27-2010 10:18 AM
But if I build the scalar boolean into the array, how would I change the stat from the "Elapsed time" output? Actually, I would need to change the state from high to low each time the counter expires. Attached is the vi.
Thanks!
09-27-2010 12:21 PM - edited 09-27-2010 12:22 PM
Put a Not in there as well.
09-27-2010 01:26 PM
Thanks, could you please post the VI? What version of LV are you using? I don't get the same array after the logical not.
09-27-2010 03:26 PM
That's a VI snippet saved back to LV 8.6. just drag the image from Internet Explorer to your block diagram.
09-27-2010 06:56 PM
Thanks a lot for your help! This is exactly what I was trying to do!