HP 8163A Programming Manual page 164

Lightwave measurement system
Hide thumbs Also See for HP 8163A:
Table of Contents

Advertisement

Programming Examples
How to Log Results
averagingTime);
checkError(vi,errStatus);
/* start logging */
viPrintf(vi,"SENS%1d:CHAN%1d:FUNC:STAT LOGG,START\n",slot,chan);
checkError(vi,errStatus);
/* to display the results, logging should be completed */
/* the instrument has to be polled about the progress of the logging */
do
{
errStatus = viQueryf(vi,"SENS%1d:CHAN%1d:FUNC:STATE?\n","%t",slot,chan,r
eplyBuf);
/* if an error occurs break the loop */
if (errStatus < VI_SUCCESS)
{
checkError(vi,errStatus);
break;
}
/* find the substring "COMPLETE" in the reply of the instrument */
replySubStr = replyBuf;
while(*replySubStr)
{
if(!strncmp(replySubStr,"COMPLETE",strlen("COMPLETE"))) break;
replySubStr ++;
}
}while (!*replySubStr); /*substring "COMPLETE" not found */
/*continue polling */
/* The instrument returns the logging result in the following format:
#xyyyffff...; the first digits after the hash denotes the
number of ascii digits following (y) ; y specifies the number of binary data
following; "ffff" represent the 32Bit floats as log result. */
/* get the result */
164

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 8164a

Table of Contents