uSyntax

Visual C++ (Windows-95)

int W_9112_DI_Channel (int card_number, int di_ch_no, unsigned int *di_data)

Visual Basic (Windows-95)

W_9112_DI_Channel (ByVal card_number As Long, ByVal di_ch_no As Long, di_data As Long) As Integer

C/C++ ( DOS)

int _9112_DI_Channel (int card_number, int di_ch_no, unsigned int *di_data )

u Argument

 

card_number :

the card number of PCI-9112

di_ch_no :

the DI channel number, the value has to be set

from 0 to 15.

 

di_data :

return value, either 0 or 1.

u Return Code

ERR_NoError, ERR_BoardNoInit, ERR_InvalidDIChannel

uExample

#include “9112.h”

main()

{

unsigned int data; int ch;

int baseAddr, irqNo;

_9112_Initial( CARD_1, &baseAddr, &irqNo);

/* Assume NoError when Initialize PCI-9112 */

.

.

for( ch=0; ch<16; ch++ )

{

_9112_DI_Channel(CARD_1, ch , &data );

printf( "The value of DI channel %d is %d.\n",ch , data);

}

}

5.6_9112_DO

uDescription

This function is used to write data to digital output port. There are 16 digital outputs on the PCI-9112,

C/C++ Library 43