I'm generating an arbitrary waveform on one of the output channels of the NI USB-6218 device. When the generation is done I would like to set the channel impedance to a HiZ state.
This is the code i'm trying to use:
float64 resistancevariable;
DAQmxSetChanAttribute (*pTaskHandle, "", DAQmx_AO_IdleOutputBehavior, DAQmx_Val_HighImpedance);
DAQmxGetChanAttribute (*pTaskHandle, "", DAQmx_AO_IdleOutputBehavior, &resistancevariable,0);
I'm trying to see with the "DAQmxGetChanAttribute" -command to see what that high impedant value is (with the variable "resistancevariable") but it doesn't work.
Even with the command line:
DAQmxSetChanAttribute (*pTaskHandle, "", DAQmx_AO_OutputImpedance, 50.0)
I cannot change the value into the variable "resistancevariable".
Why does it not work and what can I do about it?
p.s. The command DAQmxSetChanAttribute (*pTaskHandle, "", DAQmx_AO_IdleOutputBehavior, DAQmx_Val_ZeroVolts) DOES work, but for HiZ it doesnt?