ICP DAS USA PCI-P16C16 User Manual page 44

Icp das pci bus user's manual
Hide thumbs Also See for PCI-P16C16:
Table of Contents

Advertisement

printf("P180X_FloatSub2(1.0,2.0) = %f\n",fVal);
if( wP16R16No<1 )
{
putch(0x07);
printf("Please plug one PCI-P16R16 in PC !!!\n");
exit(0);
}
/*************************************/
/***** PCI-P16R16 DO/DO demo *****/
/*************************************/
printf("The PCI-P16R16 DO/DI testing !!!\n");
P16R16_DO(P16R16_BaseAddress,0x0000);
delay(500);
wInData=P16R16_DI(P16R16_BaseAddress); /* Digital input */
printf("Digital Output -> 0000H | Digital Input -> %04xH\n",wInData);
P16R16_DO(P16R16_BaseAddress,0xFFFF);
delay(500);
wInData=P16R16_DI(P16R16_BaseAddress); /* Digital input */
printf("Digital Output -> FFFFH | Digital Input -> %04xH\n",wInData);
P16R16_DO(P16R16_BaseAddress,0x5555);
delay(500);
wInData=P16R16_DI(P16R16_BaseAddress); /* Digital input */
printf("Digital Output -> 5555H | Digital Input -> %04xH\n",wInData);
P16R16_DO(P16R16_BaseAddress,0xAAAA);
delay(500);
wInData=P16R16_DI(P16R16_BaseAddress); /* Digital input */
printf("Digital Output -> AAAAH | Digital Input -> %04xH\n",wInData);
PCI_DriverClose();
return 0;
}
PCI-P8R8/P16R16/P16C16/P16POR16 User's Manual (Ver.2.2, 2005/5/5) ...
/* Delay a little time 500ms */
/* Delay a little time 500ms */
/* Delay a little time 500ms */
/* Delay a little time 500ms */
/* Digital output */
/* Digital output */
/* Digital output */
/* Digital output */
44

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-p16por16Pci-p16r16Pci-p8r8

Table of Contents