Virus scan in progress. Please wait to download attachments.
This example gives one simple option for generating similar or dissimilar waveforms at the same frequency or different frequencies from each other.
Sometimes it is useful to output two different waveforms at different frequencies. This can either mean two waveforms of the same waveform type at two different frequencies or two dissimilar waveform types at the same frequency. There is one caveat with this example: it was made with a fixed Sample Clock Rate of 100kHz. The frequency that you input is the desired output frequency of the signal. This means that the desired frequency you input must be an integer divide down of 100,000.
In later versions of LabVIEW and the NI-DAQmx driver, this functionality was included in shipped examples. To find these examples, go to Help » Find Examples » Hardware Input and Output » DAQmx » Analog Output.
Requirements to Run
LabVIEW version 8.2 or compatible
DAQmx 8.3 or compatible
NI Multifunction DAQ device with at least two analog output channels compatible with NI-DAQmx
Steps to Implement or Execute Code
Download the example for the version of LabVIEW you have installed
Configure the following on the front panel:
Physical Channel of your DAQ device
Maximum and Minimum Value for the amplitude of your signal
Signal 1 and 2 types
Waveform 1 and 2 Desired Frequency
Run the VI
Observe the Output Waveform on the front panel of the VI
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.