02-10-2020 12:45 PM - edited 02-10-2020 01:04 PM
Is there a way to interrogate an E-Series card to determine the current gain setting?
I'm using CVI with DAQmx, an SCXI chassis with modules and a PCI-6071E card. You use a DAQmx command to set the channel max, min, units, etc. and DAQmx sets the appropriate gain setting for the daq card in the computer to maximize resolution. What I really want to do is report to the user what that resolution is.
Without a function call, I have to use the inputs to try and calculate what gain setting DAQmx is going to use, but I'd like to know for sure by asking the card. If I could do that it would be an easy calculation to then be able to display the resolution in the proper units.
What I really need is something like DAQmxGetChannelResolution() that would return the resolution in the units for that particular channel. Either way, I can't seem to find any function calls to let me get to the final combined resolution easily. Can someone help?
Solved! Go to Solution.
02-10-2020 03:11 PM
Found it!
DAQmxGetChanAttribute (SCXITaskHandle, DAQStr, DAQmx_AI_Resolution, &resVal, 0);