34
Configuring the Agilent E8462A Multiplexer
/* Query State of Channel 002 */
errStatus=viQueryf(E8462A,”ROUT:CLOS? (@10002)\n”,”%t”,ch_state);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viQueryf() returned 0x%x\n”,errStatus);
return errStatus;}
printf(“Channel State is: %s\n”,ch_state);
/* Open Channel 002 */
errStatus = viPrintf(E8462A, “OPEN (@10002)\n”);
if(VI_SUCCESS > errStatus){
printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);
return errStatus;}
/* Close the Module Instrument Session */
errStatus = viClose (E8462A);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viClose() returned 0x%x\n”,errStatus);
return 0;}
/* Close the Resource Manager Session */
errStatus = viClose (viRM);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viClose() returned 0x%x\n”,errStatus);
return 0;}
return VI_SUCCESS;
}
Summary of Contents for E8462A
Page 2: ...x...
Page 10: ...8 Notes...
Page 11: ...9 Notes...
Page 12: ...10 Notes...
Page 15: ...Configuring the Agilent E8462A Multiplexer 13 Figure 1 1 Agilent E8462A Simplified Schematic...
Page 68: ...66 Using the Multiplexer...
Page 104: ...102 Agilent E8462A Relay Multiplexer Command Reference...
Page 118: ...116 Agilent E8462A Relay Multiplexer Command Reference...
Page 126: ...124 Agilent E8462A Scanning Voltmeter Application Examples Chapter 4 Notes...
Page 146: ...144 Register Based Programming...
Page 156: ...154 Index...