LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to synchronise two digital output lines?

I need to control two electrical valves using two digital outputs. I want to send a true signal during 20 minutes, and them a false signal during 20 minutes and them a true signal during 20 minutes, and so... all the time, to use it in a automated analytical system. How should I do it?
0 Kudos
Message 1 of 4
(2,588 Views)
Do you have a DIO or multi-function DAQ board? If so, it's just a matter of using one of the digital functions on the DAQ palette like Write to Digital Port. For the timing function, what you don't want to do is use the Wait (ms) function unless you don't card about interupting or quitting the program quickly. Get a start time at the beginning of a loop with Tick Count or Get Date Time in Seconds and periodically check the elasped time.
0 Kudos
Message 2 of 4
(2,588 Views)
I have a multi-function DAQ board (a PCI 6024 E (NI)). My problem isn't how to comunicate with the digital output lines, but how to use the timing function. How can I check the elapsed time? Thank's for your help.
0 Kudos
Message 3 of 4
(2,588 Views)
Subtract current time from start time ans with a reset of current time when your condition is met. The attached VI should give you a hint.
0 Kudos
Message 4 of 4
(2,588 Views)