HP E8402A User And Service Manual page 49

Vxi c-size mainframe
Table of Contents

Advertisement

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,
CHECKERR(errStatus, __LINE__);
/* Verify the temperature limit setting */
errStatus = viQueryf(en_mon, "STAT:QUES:TEMP:LIM? %s\n", "%hd",
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;
}
TEMP_LIM);
LIM_SLOT,&echoed_limit);
Programming the Enhanced Monitor
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

E8404a

Table of Contents