PEX/PIO/PISO-DA Series Card
Analog Output Boards
User Manual/ Ver. 3.1/ Oct. 2013/ PMH-0010-31/ Page: 57
6.1.4 Show_PIO_PISO
Show_PIO_PISO(wSubVendor,wSubDevice,wSubAux)
wSubVendor
The subVendor ID of the board you are seeking
wSubDevice
The subDevice ID of the board you are seeking
wSubAux
The subAux ID of the board you are seeking
This function will display a text string showing these special subIDs, which are the same as
those defined in the PIO.H include file.
The code for the demo program is as follows:
/* Detect all PIO_PISO series cards installed in this PC */
wRetVal=PIO_DriverInit(&wBoards,0xff,0xff,0xff);
printf("\nThere are %d PIO_PISO Cards in this PC",wBoards);
if (wBoards==0 ) exit(0);
printf("\n-----------------------------------------------------");
for(i=0; i<wBoards; i++)
{
PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&wSubVendor,
&wSubDevice,&wSubAux,&wSlotBus,&wSlotDevice);
printf("\nCard_%d:wBase=%x,wIrq=%x,subID=[%x,%x,%x],
SlotID=[%x,%x]",i,wBase,wIrq,wSubVendor,wSubDevice,
wSubAux,wSlotBus,wSlotDevice);
printf(" --> ");
ShowPioPiso
(wSubVendor,wSubDevice,wSubAux);
}
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru