Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

migrate SCAN_Setup Gain List to DAQmx

I am migrating a traditional NI-DAQ application to NI-DAQmx.  I need to program the analog gain of my DSA device.  In traditional NI-DAQ, I used the Gain List parameter of SCAN_Setup.  So now I need to control the gain settings in DAQmx.  DAQmxCreateAOVoltageChan lets me program the Max and Min values.  This might be preferable in many situations, but I need to actually control the discrete gain selection.  Can someone tell me how?
 
The CVI help offers the heading, "Gain for DSA Devices."  It says, "The gain attributes/properties, AI.Gain and AO.Gain set the amount of gain to apply to the signal. These properties are set in decibels referenced to 10 V."  That sounds good.  But how do I set these attributes/properties in LabWindows/CVI?
 
It is important for me to have direct control over the discrete gain settings because I am designing a calibration system, and I want to periodically check the card's channel-channel calibration match at each gain setting.
 
0 Kudos
Message 1 of 2
(3,153 Views)
Good afternoon Jmoses,
 
If you have a look at your NI-DAQmx C Reference Help file, type in "Gain" under search.
 
You should come across these two functions:
DAQmxSetAIGain
DAQmxSetAOGain
 
That should get you started, best of luck on your project.
 
Sincerely,
Minh Tran
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,142 Views)