Doc. # 1-137715161 | |||
---|---|---|---|
Date Updated | 02-25-2009 | Date Created | 06-21-2007 |
Document Type | Knowledge Base | Related OS | |
Related Product | PCI-1710HG/ PCI-1710HGU/ PCI-1710U/ PCI-1710UL/ PCI-1712/ PCI-1712L/ PCI-1713U/ PCI-1715U-AE/ PCI-1716/ PCI-1716L/ PCI-1718HDU/ PCI-1718HGU/ PCI-1741U/ PCI-1742U/ PCI-1747U/ PCL-818HD/ PCL-818HG/ PCL-818L/ PCM-3718H/ PCM-3718HG/ PCM-3718HO/ USB-4716 |
How to set AI input mode (single ended or differential mode) within a program. | |||
---|---|---|---|
Solution:
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.
|