04-21-2012 06:01 PM
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?
'
04-23-2012 12:39 PM
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