5.12_9111_DA

@ Description

This function is used to write data to D/A converters. There are one Digital-to-Analog conversion channel on the PCI-9111. The resolution of each channel is 12 bit; i.e. the range is from 0 to 4095.

@ Syntax

C/C++ (DOS)

U16 _9111_DA (U16 cardNo, I16 DAData)

C/C++ (Windows 95)

U16 W_9111_DA (U16 cardNo, I16 DAData )

Visual Basic (Windows 95)

W_9111_DA (ByVal cardNo As Integer, ByVal DAData As Integer) As Integer

@ Argument

cardNo: The card number of PCI-9111 card initialized

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

@Return Code

ERR_NoError

5.13_9111_AD_Read_Data

@ Description

This function is used to read the AD conversion data from analog input port.

@ Syntax

C/C++ (DOS)

U16 _9111_AD_Read_Data (U16 cardNo, I16 far *ADData)

C/C++ (Windows 95)

U16 W_9111_AD_Read_Data (U16 cardNo, I16 *ADData)

Visual Basic (Windows 95)

W_9111_AD_Read_Data (ByVal cardNo As Integer, ADData 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

@Return Code

ERR_NoError

C/C++ Library 43

Page 53
Image 53
HP NuDAQ I-9111DG/HR manual 12 9111DA, 13 9111ADReadData