Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Sync analog output with digital outputs

Hi all,

 

I have a USB-6211 DAQ and was wondering if someone could provide some insight on how to accomplish synced analog and digital ouput? I am generating a sound wave via AO1 interface and would like to have it co-terminate with a digital output to control some relays. The relay needs to be on for 50ms with a 500ms analog output. Does anyone know how I can go about accomplishing this?

 

Any help is greatly appreciated!

0 Kudos
Message 1 of 2
(3,457 Views)

Hello Plastus,

 

More than a synchronization in the generation of the analog or digital signal, you need to start at the same time and stop at the same time. Saying that, you probably want to use a trigger to start at the same time, the example linked below does that.

Synchronize Two Counter Output Tasks Using a Dummy AI Task This is the idea, but you need to change the type of task.

 

Other way could be... since your device do not support correlated DIO, you could generate a signal with a counter, and you could use that signal as sample clock for the AO and for the DO. Something similar to this: Synchronize Analog Input and Digital Input Channels Using DAQmx, but using that external sample clock. 

 

The second idea shows how we can use the same sample clock, but again, I think you just need to start and stop at the same time.

 

Regards 

Frank R.

0 Kudos
Message 2 of 2
(3,419 Views)