HP NuDAQ I-9111DG/HR manual 14 9111ADReadDataRepeat, 15 9111ADSetChannel

Models: NuDAQ I-9111DG/HR

1 83
Download 83 pages 54.21 Kb
Page 54
Image 54

5.14_9111_AD_Read_Data_Repeat

@ Description

This function is used to read the AD conversion data n times continuously.

@ Syntax

C/C++ (DOS)

U16 _9111_AD_Read_Data_Repeat (U16 cardNo, I16 far *ADData, U16 n)

C/C++ (Windows 95)

U16 W_9111_AD_Read_Data_Repeat (U16 cardNo, I16 *ADData, U16 n)

Visual Basic (Windows 95)

W_9111_AD_Read_Data_Repeat (ByVal cardNo As Integer, ADData As Integer, ByVal n As Integer) As Integer

@ Argument

cardNo: The card number of PCI-9111 card initialized

ADData: A/D converted value, please refer to section to learn the relationship between the voltage and the value

n:The number of times to read the AD conversion data

@Return Code

ERR_NoError

5.15_9111_AD_Set_Channel

@ Description

This function is used to set AD channel by means of writing data to the multiplexer scan channel register. There are 16 single-ended A/D channels in PCI-9111, therefore the channel number could be set between 0 to 15. Under non-auto scan mode, the ADChannelNo stores the channel number setting. Under auto -scan mode, the ADChannelNo records the ending channel number.

@ Syntax

C/C++ (DOS)

U16 _9111_AD_Set_Channel (U16 cardNo, U16 ADChannelNo)

C/C++ (Windows 95)

U16 W_9111_AD_Set_Channel (U16 cardNo, U16

ADChannelNo)

Visual Basic (Windows 95)

W_9111_AD_Set_Channel (ByVal cardNo As Integer, ByVal ADChannelNo As Integer) As Integer

@ Argument

 

cardNo:

The card number of PCI-9111 card initialized.

44 C/C++ Library

Page 54
Image 54
HP NuDAQ I-9111DG/HR manual 14 9111ADReadDataRepeat, 15 9111ADSetChannel