LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

daq assistant elapsed time terminals different type

Solved!
Go to solution

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.

0 Kudos
Message 1 of 7
(3,480 Views)

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.

0 Kudos
Message 2 of 7
(3,472 Views)

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!

0 Kudos
Message 3 of 7
(3,435 Views)
Solution
Accepted by topic author Icarus7

Put a Not in there as well.

 

Message 4 of 7
(3,425 Views)

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.

0 Kudos
Message 5 of 7
(3,411 Views)

That's a VI snippet saved back to LV 8.6.  just drag the image from Internet Explorer to your block diagram.

0 Kudos
Message 6 of 7
(3,397 Views)

Thanks a lot for your help! This is exactly what I was trying to do!

0 Kudos
Message 7 of 7
(3,383 Views)