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.