LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize buffered pwm outputs on Daqmx

I'm using Daqmx to produce two synchronized pwm outputs.

The pwm outputs: 

            a) have variable controllable frequecy, and therefore use buffered data as input to daqmx write vi. and also use 'implicit' as input to clock type in timing vi

            b) have their beginning edges synchronized

 

The design I use uses two separate tasks to create the signals. The only way I could think of of synchronizing the pulses was by putting the 'start vi' and 'write vi' in two different sequential frames. The idea doesn't seem to work, the two pulses somehow drift apart on the oscilloscope. Even the start part does not work; there seems to be a delay.

 

Since I'm not using any clock to generate the signals (implicit), how can the two pulses be synchronized?

'

0 Kudos
Message 1 of 2
(2,221 Views)

Hello lvuser111

 

You may take a look to this community example, it could give you a good idea how it may be implemented:

 

Synchronize Two Counter Output Tasks Using a Dummy AI Task

 

Regards

 

Mart G

 

0 Kudos
Message 2 of 2
(2,198 Views)