HP E8402A User And Service Manual page 47

Vxi c-size mainframe
Table of Contents

Advertisement

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
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;
}
Hello World!");
Programming the Enhanced Monitor
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

E8404a

Table of Contents