From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know how to output multi-channel, multi-frequency analog waveforms?

I am working on an analog output application which requires a continuous, multi-channel waveform generation, with variable frequencies between channels.
I am currently using a NI 6062E DAQ card....is this possible?

Thanks,
-Jason
0 Kudos
Message 1 of 2
(4,223 Views)
Most of our analog output (AO) boards require that all AO channels use one shared output buffer. Furthermore, most of our AO boards also require that you use one update clock to control all D/A conversions on every channel. The exceptions to these rules are the AT-AO-6 and AT-AO-10 boards, which allow you to configure the output channels into two distinct groups with their own update clocks and their own buffers. Since you probably don't have these boards (we stopped manufacturing them about a year ago), we need a creative solution.

When you configure an AO buffer in LabVIEW for mulitple channels, the buffer is stored as a 2-D array - one dimension for channels and one dimension for the data on each channel. If you need two sine waves output at two different fr
equencies, you must construct a different number of sine periods in your AO buffer using the same number of points for each channel. For example, if we need to output a 1 Hz sine wave and a 2 Hz sine wave, we can select an update rate of 1 kHz and a buffer size of 1 ksamples. For the first sine wave, you will need one sine period stored in your 1 ksample buffer. For your second sine wave, you will need two sine periods stored in your 1 ksample buffer.

As you can see, if we update 1 thousand points per second (1 kHz update rate), we will generate one entire buffer per second for each channel. Since the first channel has one sine period in its buffer, the first channel will output a 1 Hz sine wave. The second channel will output a 2 Hz sine wave because it also cycles through one buffer per second, but it has two sine periods squeezed into the same buffer.
0 Kudos
Message 2 of 2
(4,223 Views)