Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog output and TTL counter phase match

Hello,

I want to generate two analog output signals (2100Hz sine wave) and TTL signal (from ctr2).

When I set the frequencies of these signals to be the same, I found that the analog output and the TTL signal were misaligned on the oscilloscope. What is the reason?

The code i have question can found in initialize.twoD_lissajous_configure.twoD_lissajous_run function

The vi

 

YushinHuang_0-1728186586910.pngYushinHuang_1-1728186676223.png

 

YushinHuang_2-1728186742863.png

 

Download All
0 Kudos
Message 1 of 2
(282 Views)

The most obvious error would seem to be that you configure the trigger task to use the AO task sample clock as trigger source but then start the AO task before the trigger task. Since your trigger task depends on signals generated by other tasks you should start it first so that it is fully armed when the actual AO task starts generating sample clocks that are then used as trigger.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(241 Views)