HP (Hewlett-Packard) B Network Router User Manual


 
/* use the "digitizer2" array to configure the inserter digitizer */
char static *digitizer2[] =
{"CONF1:ARR:VOLT (10),5,(@3)", /* set 10 readings, 5V range, */
/* channel, 1 input port 3 */
"OUTP:TTLT0:FEED ’READY’", /* feed ready signal to next digitizer */
"OUTP:TTLT0:STAT ON", /* enable ready signal feed */
"VINS:LBUS:RES", /* reset the Local bus chip */
"VINS:LBUS:MODE INS", /* set Local bus mode to INSert */
"VINS:LBUS:FEED ’CONV:CHAN1’"}; /* set Local bus feed */
/* use the "memory" array to configure the memory card */
char static *memory[] =
{"FORM:DATA PACK", /* set packed data format */
"TRAC:DEL:ALL", /* delete all readings on memory card */
"TRAC:DEF SET1, 40", /* store readings (40 bytes) in "SET1" */
"VINS:LBUS:RES", /* reset the Local bus chip */
"VINS:LBUS:MODE CONS", /* set Local bus mode to consume */
"STAT:OPC:INIT OFF"}; /* execute *OPC? after INIT is parsed */
/* Execute each command in "digitizer1" using a loop */
length = (sizeof(digitizer1) / sizeof(char*));
for (loop = 0; loop < length; loop++)
{
IOOUTPUTS(ADDR_G, digitizer1[loop], strlen(digitizer1[loop]));
}
/* Execute each command in digitizer2 using a loop */
length = (sizeof(digitizer2) / sizeof(char*));
for (loop = 0; loop < length; loop++)
{
IOOUTPUTS(ADDR_I, digitizer2[loop], strlen(digitizer2[loop]));
}
/* Execute each command in "memory" */
length = (sizeof(memory) / sizeof(char*));
Continued on Next Page
Chapter 2 Usin
g
the Di
g
itizer 95