uSyntax

Visual C++ (Windows-95)

int W_9112_DO (int card_number, unsigned int do_data)

Visual Basic (Windows-95)

W_9112_DO (ByVal card_number As Long, ByVal do_data As Long) As Integer

C/C++ ( DOS)

int _9112_DO(int card_number, unsigned int do_data )

u Argument

card_number : the card number of PCI-9112

do_data : value will be written to digital output port

uReturn Code

ERR_NoError, ERR_BoardNoInit

5.7_9112_DA

uDescription

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

uSyntax

Visual C++(Windows-95)

int W_9112_DA (int card_number, int da_ch_no, unsigned int data)

Visual Basic (Windows-95)

W_9112_DA (ByVal card_number As Long, ByVal da_ch_no As Long, ByVal da_data As Long) As Long

C/C++ ( DOS)

int _9112_DA (int card_number, int da_ch_no, unsigned int data )

uArgument

card_number : the card number of PCI-9112

da_ch_no : D/A channel number, DA_CH_1 or DA_CH_2.

data : D/A converted value, if the value is greater than 4095, the higher bits are negligent.

uReturn Code

ERR_NoError, ERR_BoardNoInit

ERR_InvalidDAChannel

44 C/C++ Library

Page 52
Image 52
HP manual 9112DA, 44 ∙ C/C++ Library