10-19-2015 11:49 AM
What is the best way to increase settling time on Visual C++ measurements of the PXI-6255 A to D? We needed to make some hardware changes that resulted in a measurement via a high-resistance voltage divider (24.7k and 100k) with secondary measurements on a near-ground voltage. The switching between the two sources leads to ghosting/crosstalk effects. We do not have a way to make hardware changes at the moment. Decreasing sampling frequency only helps to a certain point, after which the voltage reading is still low.
I attempted to use the function daqmxsetswitchdevsettlingtime but have been unable to find documentation regarding the first parameter, char deviceName[]. What is the Device Name?
If this function is depreciated, is there a replacement function?
Solved! Go to Solution.
10-20-2015 04:32 PM
Hey GoodSirEric,
Are you using an NI switch?
http://zone.ni.com/reference/en-XX/help/375472G-01/switch/extra_settling_time/
10-20-2015 06:55 PM
Hello TwinTwo!
No, I am using an Analog to Digital card (PXI-6255) and creating a session with DAQmxCreateTask("",&taskHandleAtoD);
niSwitch_SetAttributeViReal64() is not recognized as a valid function because I have not included the necessary switch header files. Do the switch functions accept a task handle created with DAQmxCreateTask(), and can they apply settings to Analog to Digital cards?
10-21-2015 01:05 PM
10-21-2015 01:28 PM
Dennis is right! In that link you can find how to allow additional settling time, this other links might be helpful for you to understand a little more:
http://digital.ni.com/public.nsf/allkb/42484E84DA98053686256D32006E0494
http://zone.ni.com/reference/en-XX/help/370471W-01/mxcprop/func1848/
http://zone.ni.com/reference/en-XX/help/370471W-01/mxcprop/attr1848/
10-21-2015 02:16 PM
Thanks! Those resources were extremely helpful!