
Programming the Enhanced Monitor
51
Chapter 3
/* Reset the Enhanced Monitor */
errStatus = viPrintf(en_mon, “*RST\n”);
CHECKERR(errStatus, __LINE__);
/* Clear status of the Enhanced Monitor */
errStatus = viPrintf(en_mon, “*CLS\n”);
CHECKERR(errStatus, __LINE__);
/* Enable STAT subsystem */
errStatus = viPrintf(en_mon, “STAT:OPER:ENAB %hd\n”, OPER_ENAB);
CHECKERR(errStatus, __LINE__);
errStatus = viPrintf(en_mon, “STAT:QUES:ENAB %hd\n”, QUES_ENAB);
CHECKERR(errStatus, __LINE__);
/* Program a temperature limit for a selected slot */
errStatus = viPrintf(en_mon, “STAT:QUES:TEMP:LIM %s,%hd\n”, LIM_SLOT,
TEMP_LIM);
CHECKERR(errStatus, __LINE__);
/* Verify the temperature limit setting */
errStatus = viQueryf(en_mon, “STAT:QUES:TEMP:LIM? %s\n”, “%hd”,
LIM_SLOT,&echoed_limit);
CHECKERR(errStatus, __LINE__);
printf(“Temperature limit for slot %s is now %hd\n”, LIM_SLOT,echoed_limit);
if (TEMP_LIM != echoed_limit)
printf(“ERROR: requested %d deg limit for slot %s, actual: %hd deg\n”,
TEMP_LIM, LIM_SLOT, echoed_limit);
/* If you wish to save your new settings in non-volatile RAM (NVRAM),
uncomment the following 2 lines of code */
/*
errStatus = viPrintf(en_mon, “SYST:NVS\n”);
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;
}
Summary of Contents for E8402A
Page 8: ...10 Contents ...
Page 12: ...14 Notes ...
Page 14: ......
Page 26: ...28 Getting Started Chapter 1 ...
Page 42: ...44 Using the Enhanced Monitor Chapter 2 ...
Page 214: ...216 Servicing Your Mainframe Chapter 5 ...
Page 226: ...228 HP E8402 E8404A Product Specifications Appendix A ...