
Programming the Enhanced Monitor
49
Chapter 3
/* Query the mainframe model */
errStatus = viQueryf(en_mon, “SYSTEM:MODEL?\n”, “%t”, id_string);
CHECKERR(errStatus, __LINE__);
printf(“ID is %s\n”, id_string);
/* Query the mainframe serial number*/
errStatus = viQueryf(en_mon, “SYSTEM:SNUMBER?\n”, “%t”, ser_num);
CHECKERR(errStatus, __LINE__);
printf(“Serial Number is: %s\n”, ser_num);
/* Write a Message to the Enhanced Monitor Display */
errStatus = viPrintf(en_mon,”DISP:TEXT %s \n”,“\\n Hello World!”);
CHECKERR(errStatus, __LINE__);
/* Close the Enhanced Monitor Instrument Session */
errStatus = viClose (en_mon);
CHECKERR(errStatus, __LINE__);
/* Close the Resource Manager Session */
errStatus = viClose (viRM);
CHECKERR(errStatus, __LINE__);
return VI_SUCCESS;
}
Содержание E8402A
Страница 8: ...10 Contents ...
Страница 12: ...14 Notes ...
Страница 14: ......
Страница 26: ...28 Getting Started Chapter 1 ...
Страница 42: ...44 Using the Enhanced Monitor Chapter 2 ...
Страница 214: ...216 Servicing Your Mainframe Chapter 5 ...
Страница 226: ...228 HP E8402 E8404A Product Specifications Appendix A ...