Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

using an analog sinusoidal waveform as clock signal

I was wondering if it is possible to use a sinusoidal waveform as clock signal on the PCIe 6321 card and how it is done in LabWindows. I would like to sample my analog input on the peaks of the sinusoidal waveform. Could you please help me out?!

0 Kudos
Message 1 of 2
(5,561 Views)

You probably will not get good results trying to use a sinusoidal clock on a digital device. Even if you succeed in getting it to drive the clock, it will probably have a rather large timing jitter. Further, the clock "edge" will probably occur near the zero crossing point of the sinusoidal signal rather than at the peak.

 

Other possible approaches:

- if the frequency of the sinusoidal signal does not vary much, run it through a differentiation circuit to produce a 90 degree phase shift. Use a comparator to convert the phase shifted sine wave to a square wave to use as the clock signal. This requires the design and construction of some external electronic circuits.

- Use two analog input channels, one for the signal to be measured and one for the sinusoidal clock. Sample at a sufficiently high rate to be sure to have a sample near enough to the peak. In post-processing software identify the peak of the clock signal and use the same sample index for the other signal. This requires one extra analog input channel and substantially higher sampling rates.

 

Lynn

Message 2 of 2
(5,545 Views)