PISO-813 Series Card
32-channel Single-Ended Isolated A/D Board
User Manual, Ver. 1.5, Feb. 2014, PMH-003-15, Page: 26
wSubVendor=0x80; wSubDevice=0xa; wSubAux=0x00;
/* for PISO-813 */
wRetVal=PIO_DriverInit(&wBoards, wSubVendor,wSubDevice,wSubAux);
printf("Threr are %d PISO-813 Cards in this PC\n",wBoards);
/* step2: save resource of all PISO-813 cards installed in this PC */
for (i=0; i<wBoards; i++)
{
PIO_GetConfigAddressSpace(i,&wBase,&wIrq,&wID1,&wID2,&wID3, &wID4,&wID5);
printf("\nCard_%d: wBase=%x, wIrq=%x", i,wBase,wIrq);
wConfigSpace[i][0]=wBaseAddress;
/*save all resource of this card */
wConfigSpace[i][1]=wIrq;
/* save all resource of this card */
}
3.
PC’s physi al slot
information:
wSlotBus:
hard are slot ID i this PC’s slot positio
wSlotDevice:
hard are slot ID i this PC’s slot positio
The PIO_PISO.EXE utility will detect and show all PIO/PISO cards installed in this PC. Refer to
for more information.
6.1.1 PIO_DriverInit
PIO_DriverInit
(
&wBoards
,
wSubVendor
,
wSubDevice
,
wSubAux
)
Parameter
Description
wBoards=0 to N
number of boards found in this PC
wSubVendor
subVendor ID of board to find
wSubDevice
subDevice ID of board to find
wSubAux
subAux ID of board to find
This function can detect all PIO/PISO series card in the system. It is implemented based on the PCI
plug&play mechanism-1. It will find all PIO/PISO series cards installed in this system and save all
their resource in the library.
Sample program 1:
Find all PISO-813 in this PC
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru