HP E1429A manual Tracdef SET1 Store readings 80 bytes in SET1

Models: E1429A

1 420
Download 420 pages 44.04 Kb
Page 410
Image 410

/* 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, 80",

/* store readings (80 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*));

for (loop = 0; loop < length; loop++)

{

IOOUTPUTS(ADDR_MEM, memory[loop], strlen(memory[loop]));

}

/* check for digitizer and memory card configuration errors */

check_error("digitizer1", ADDR_G);

check_error("digitizer2", ADDR_I);

check_error("memory", ADDR_MEM);

}

Continued on Next Page

410 Local Bus Interleaved Transfers

Appendix D

Page 410
Image 410
HP E1429A manual Tracdef SET1 Store readings 80 bytes in SET1