Register-Based Programming
143
err=viIn16(mux,VI_A16_SPACE, 0x20,&bank0_ch);
if(err<VI_SUCCESS) err_handler(mux,err);
printf(“Bank 0 ch 000-015 registe value =0x%4X\n”,bank0_ch);
/* close Agilent VISA session */
viClose(mux);
viClose(defaultRM);
} /* end of main */
Error Handling Function
/************************************************************/
void err_handler()
{
ViStatus err;
char err_msg[1024]={0};
viStatusDesc(mux,err,err_msg);
printf(“ERROR = %s\n”,err_msg);
return;
}
/* end of error handler routine */
Program Output
Printout from example program:
ID register = 0xFFFF
Device Type register = 0x 26B
Status register = 0x79BE
Bank 0 ch 000-015 register value = 0x 0
Bank 0 ch 000-015 register value = 0x 3
Содержание 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...