9113_Ad_Set_Channel - NuDAQ PCI- 9113A User Manual

32 channels isolated analog input card
Table of Contents

Advertisement

cardNo: The card number of PCI-9113A card initialized
ADData: A/D converted value. The resolution of A/D conversion data is 12
bits. The unsigned integer data format of ADData is as follows:
Every 32-bit unsigned integer data:
bit 0... 11: A/D converted data
bit 16, 17, ... , 20: converted channel no.
Please refer to section 5.1.5 to learn the relationship between the
voltage and the value.
n: The timer of times to read the AD conversion data.
@ Return Code
ERR_NoError
6.9

_9113_AD_Set_Channel

@ Description
This function is used to set A/D channel by means of writing data to
the channel control register. There are 32 single-ended A/D
channels in PCI-9113A. Therefore the channel number could be set
between 0 to 31. Under non-auto scan mode, the ADChannelNo
stores the channel number setting. Under auto -scan mode, the
ADChannelNo records the channel number of ending channel.
@ Syntax
C/C++ (DOS)
U16 _9113_AD_Set_Channel (U16 cardNo, U16
ADChannelNo)
C/C++ (Windows 95)
U16 W_9113_AD_Set_Channel (U16 cardNo, U16
ADChannelNo)
Visual Basic (Windows 95)
W_9113_AD_Set_Channel
ADChannelNo As Integer) As Integer
@ Argument
cardNo: The card number of PCI-9113A card initialized.
(ByVal
cardNo
C/C++ Software Library
As
Integer,
ByVal
43

Advertisement

Table of Contents
loading

Table of Contents