Description:
This document shows you how to use the “SetProperties” function to set single-ended and differential mode of AI for your cards.
Solution:
A function called “DRV_DeviceSetProperty” can be used to set the input mode property in the program.
To use this function, one has to program as shown below:
status = DRV_DeviceSetProperty(DriverHandle, CFG_AiChanConfig, pBuffer, Length)
where DriverHandle is assigned by another method, DRV_DeviceOpen.
Each bit of the 16 bits value represents one individual channel's configuration. (0: single-ended, 1: differential).
So 0x00 stands for setting all channels as single-ended mode.
0xFF means every channel is set in differential mode.
By just changing buffer value in “CFG_AiChanConfig” property, you can then select different input mode.
Thank you for your feedback
We will look over your massage and get back to you soon if you need further assistance!