Can't Modify the Analog Output Frequency in the NI MAX Test Panels

Updated Mar 15, 2023

Reported In

Hardware

  • Analog Output Device
  • Multifunction I/O Device
  • PXI Analog Output Module

Issue Details

I want to test the analog output of my DAQ device using the NI MAX Test Panels, however, I can't change the frequency of my analog output signal. Is it possible to modify it to get different frequencies? 

Solution

Unfortunately, the Test Panel does not have the flexibility to edit the waveform that you output from the module, just the sample rate of the sinewave, the maximum and minim voltage levels (range) and if you want a sine wave or a DC output.

To modify the waveform of your Analog Output module, there are two options:
 
1. Using the LabVIEW example located in LabVIEW >> Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Output >> Voltage - Continuous Output.vi:

4322LabVIEW.jpg
 
You can configure your waveform from here, and select the desired frequency, which in this case is 800Hz. 

Note: If you don't use LabVIEW to program the hardware, you can use the equivalent example for your programming environment: 
NI-DAQmx Example Locations for LabVIEW and Text-Based in Windows.
 
2. Using an Analog Output task in NI MAX as explained here: Create Tasks for NI-DAQmx Devices in NI MAX.
 
This won't allow the user to choose a frequency directly, but the user can select a Sample Rate and a Samples to Write values that generate the desired frequency as a result. For example, using a sample rate of 80KS/s and 100 samples to write, will produce an output of 800Hz.

4322NIMAX.jpg

Additional Information

The Test Panel will automatically pick a signal frequency that is 1000 times lower than the Rate selected. For example, in this case, the sample rate selected is 2000 samples per second, so the output frequency will be 2 Hz. 

testpanel4322.jpg