
36
Register Descriptions
printf("Status register = 0x%hx\n", stat_reg);
/* read and print the module's A24 Offset Register */
errStatus = viIn16(m_mod,VI_A16_SPACE,0x06,&a24_offset);
if(VI_SUCCESS > errStatus){
printf(“ERROR: viOpen() returned 0x%x\n”,errStatus);
return errStatus;}
printf("A24 Offset register value = 0x%hx\n", a24_offset);
/* set the BUSY Delay Timer to 15mS (see Busy Timer) */
errStatus = viOut16 (m_mod,VI_A24_SPACE,0x12,0x1D6);
if (VI_SUCCESS > errStatus){
printf(“ERROR: viOut16() returned 0x%x\n”,errStatus);
return errStatus;}
/* Output a Value of 5 on BCn Data Lines */
errStatus = viOut16 (m_mod,VI_A24_SPACE,0x14,0x05);
if (VI_SUCCESS > errStatus){
printf(“ERROR: viOut16() returned 0x%x\n”,errStatus);
return errStatus;}
/* Close the M-Module Instrument Session */
err_status = viClose (m_mod);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viClose() returned 0x%x\n”,errStatus);
return 0;}
/* Close the Resource Manager Session */
err_status = viClose (viRM);
if (VI_SUCCESS > errStatus) {
printf(“ERROR: viClose() returned 0x%x\n”,errStatus);
return 0;}
return VI_SUCCESS;
}
Summary of Contents for E2259A
Page 3: ... ...
Page 5: ...2 Contents Appendix A Agilent E2259A Specifications 45 ...
Page 9: ...6 Notes ...
Page 10: ...7 Notes ...
Page 11: ...8 Notes ...
Page 37: ...34 Register Descriptions or decimal 2 097 408 16 2 097 424 ...