ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Input / output synchronization

Solved!
Go to solution
Hi,

I need your help to synchronize a digital output with a digital input with LabVIEW 8.2.

  • I have a NI6289 PCI board.
  • A digital output will behave as the green signal on the following diagram.
  • I need to generate the blue signal on a digital output, knowing a rising edge of this signal must be generated a defined time after a rising edge on the green signal (dig. input) (e.g. :  here 15ms). Moreover, a falling edge must be generated a defined time after the same rising edge of the digital input (e.g. : here 35ms).
  • The digital output must be generated continuously. Indeed, the digital output will be repeated continuously, and the digital output must continuously behave as the following logical diagram.
  • The accuracy needed is one millisecond.
  • The green signal (input) frequency is approximately 2Hz, and can vary (< 2Hz).



I assume I need to use the internal timers, but I did not succeed in doing something correct.

Thanks for your help !
0 Kudos
Message 1 of 4
(3,540 Views)
Nobody has an answer to my question ?
0 Kudos
Message 2 of 4
(3,515 Views)
Solution
Accepted by topic author arnaud_QC
The is an example named Gen Dig Pulse-Retriggerable.vi that ships with LV.  It should be very close to what you want to do.
0 Kudos
Message 3 of 4
(3,505 Views)
Thanks Centerbolt,

that's exactly what I wanted. I didn't see this example before (even though I tried a lot of them) !
Thanks for you help, I needed it !
0 Kudos
Message 4 of 4
(3,485 Views)