AcQuisition Technology VME3 Series Podręcznik użytkownika - Strona 9

Przeglądaj online lub pobierz pdf Podręcznik użytkownika dla Sprzęt komputerowy AcQuisition Technology VME3 Series. AcQuisition Technology VME3 Series 14 stron. Vmebus m-module carrier board preconfigured with 4 m-modules

VME3XX - VMEbus M-module carrier board preconfigured with 4 M-modules
User Manual
The M-module example software is described in the M3XX user manual and APIS is described in the APIS
programmer's manual.
The VME3XX features four M-modules, each module must be opened with an APIS open call. Each open call
returns a handle which must be used to perform I/O functions on a specific M-module. The code example
listed below shows how all M-modules on an i4000 can be opened using APIS calls.
void main(void)
{
APIS_HANDLE mod_hnd[4];
UINT16 result;
int i;
UINT32 baddr = VME3XX_BASE;
/* Open M-module 0 - 3 */
for (i=0; i<4; i++) {
result = apis_open(baddr + (i*0x200), &mod_hnd[i], 0x100, A08D16);
if (result != 0) {
}
}
<Application body>
/* Close M-module 0 - 3 */
for (i=0; i<4; i++)
apis_close(mod_handle[i]);
}
Page 8 of 12
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
/* handles to M-modules */
/* VME3XX base address in standard address
space of the CPU board */
printf("M-module %d:Could not open path: 0x%04x\n", i, result);
exit(0);
AcQuisition Technology bv
P.O. Box 627, 5340 AP
Oss, The Netherlands
Version: 1.0