03-05-2012 06:49 AM
Hi,
I don't understand how the function NIDAQmx_GetDeviceCtrlAttribute() and NIDAQmx_SetDeviceCtrlAttribute() work with NIDAQmx_IOCtrl_Target attribute.
The help says it is the target name, so I think these two functions should simulate the selection of a board from the NIDAQmx Device Control (Custom Controls >> NI-DAQmx IO Controls >> Device) and should return the selected device.
But they don't work in this way.
See attached example that shows what I mean.
What does exactly mean the NIDAQmx_IOCtrl_Target attribute?
03-26-2012 01:49 AM
Dear all,
NIDAQmx_IOCtrl_Target is a sort of description field, set only with the proper NIDAQmx_SetDeviceCtrlAttribute(). Without setting manually this property, the value returned by NIDAQmx_GetDeviceCtrlAttribute() is always an empty string.
Regards,
Andrea R.