
140
Chapter 3
Programming Examples
Performing Alignments and Getting Pass/Fail Results
/*check for alignement success*/
viScanf (viVSA,"%d",&lCalStatus);
/*alignement succeeds if query result is zero(0)*/
if (!lCalStatus)
/*print success message to standard output*/
printf("The instrument auto-alignement was
successful!\n\n");
else
/*print failure message to standard output*/
printf("The instrument auto-alignement was not
successful!\n\n");
/* reset timeout to 3 sec*/
viSetAttribute(viVSA,VI_ATTR_TMO_VALUE,3000);
/* Close session */
viClose (viVSA);
viClose (defaultRM);
}
Summary of Contents for E4406A VSA Series
Page 4: ...4 ...
Page 59: ...59 2 Programming Fundamentals ...
Page 124: ...124 Chapter2 Programming Fundamentals Using the LAN to Control the Analyzer ...
Page 125: ...125 3 Programming Examples ...
Page 164: ...164 Chapter3 Programming Examples Using Java Programming Over Socket LAN ...
Page 165: ...165 4 Programming Command Cross References ...
Page 379: ...379 6 Error Messages ...
Page 412: ...412 Chapter6 Error Messages Error Message Descriptions ...