ICP DAS USA PISO-P8R8U User Manual page 31

Table of Contents

Advertisement

i, wCardAddress, wIrqNo, wSubVendor, wSubDevice, wSubAux,
wSlotBus, wSlotDevice);
printf(" --> ");
ShowPioPiso(wSubVendor, wSubDevice, wSubAux);
}
/**** Select the Card#0 to activate. ****/
wRtn = SelectBoard(0);
while (1)
{
printf("\nPlease select a function...\n");
printf("1: Select a board to activate.\n");
printf("2: Display the Card-ID.\n");
printf("3: DI/DO test.\n");
printf("Q: Exit the program.\n");
c=getch();
switch (c)
{
case '1': /************ Select Board *************/
printf("Please select a board (0~%d) to active: ", wTotalBoardsFound -1);
c = getch();
if ( c >= '0' && c <= '9' )
else
c = ' ';
break;
case '2': /************* Get Card ID ************/
printf("Card-ID is %d\n",(int) ( ~(inpb(wCardAddress +7) >> 2) & 0x0F) );
break;
case '3': /************ DI/DO test ************/
TestDIO(wCardAddress);
break;
PISO-P8R8U/P16R16U/PEX-P8R8i/P16R16i User Manual (Ver.1.6,Mar/2010, PMH-021-16) -
SelectBoard( c - '0' );
SelectBoard( 100 );
-
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Piso-p16r16uPex-p8r8iPex-p16r16i

Table of Contents