Using the Multiplexer
49
/* Set Multimeter for 10 triggers */
errStatus = viPrintf(E1412A, “TRIG:COUN 10\n”);
if(VI_SUCCESS > errStatus)
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
/* Pause until multimeter is ready */
errStatus = viQueryf(E1412A, “*OPC?\n”,”%t”,opc_int);
if(VI_SUCCESS > errStatus)
printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus);
/* Initialize Multimeter, wait for trigger */
errStatus = viPrintf(E1412A, “INIT\n”);
if(VI_SUCCESS > errStatus)
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
/* Reset E8462A */
errStatus = viPrintf(E8462A,”*RST;*CLS\n”);
if (VI_SUCCESS > errStatus)
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
/* Enable Trigger Output on TTL2 */
errStatus = viPrintf(E8462A, “OUTP:TTLT0 ON\n”);
if(VI_SUCCESS > errStatus)
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
/* Set Trigger Input On TTL 1 */
errStatus = viPrintf(E8462A, “TRIG:SOUR TTLT1\n”);
if(VI_SUCCESS > errStatus)
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
/* Set Multiplexer to 2-Wire mode */
errStatus = viPrintf(E8462A, “ROUT:FUNC ,WIRE2\n”);
if(VI_SUCCESS > errStatus)
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
/* Set Multiplexer to Voltage mode */
errStatus = viPrintf(E8462A, “SCAN:MODE VOLT\n”);
if(VI_SUCCESS > errStatus){
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);}
/* Enable Analog Bus */
errStatus = viPrintf(E8462A, “SCAN:PORT ABUS\n”);
if(VI_SUCCESS > errStatus){
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);}
/* Set Scan List */
errStatus = viPrintf(E8462A, “SCAN(@100:109)\n”);
if(VI_SUCCESS > errStatus){
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);}
Содержание E8462A
Страница 2: ...x...
Страница 10: ...8 Notes...
Страница 11: ...9 Notes...
Страница 12: ...10 Notes...
Страница 15: ...Configuring the Agilent E8462A Multiplexer 13 Figure 1 1 Agilent E8462A Simplified Schematic...
Страница 68: ...66 Using the Multiplexer...
Страница 104: ...102 Agilent E8462A Relay Multiplexer Command Reference...
Страница 118: ...116 Agilent E8462A Relay Multiplexer Command Reference...
Страница 126: ...124 Agilent E8462A Scanning Voltmeter Application Examples Chapter 4 Notes...
Страница 146: ...144 Register Based Programming...
Страница 156: ...154 Index...