EasyManua.ls Logo

Agilent Technologies B1500A - Page 202

Agilent Technologies B1500A
208 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-46 Agilent B1500 VXIplug&play Driver Users Guide, Edition 3
Programming Examples for C++ Users
High Speed Spot C Measurement
Table 4-16 Open Correction Subprogram
void open_corr (ViSession vi, ViStatus ret, ViReal64 freq, ViReal64 ref_cp,
ViReal64 ref_g) /* 1 */
{
ViInt32 rbx;
ViInt16 result;
rbx = MessageBox(NULL , "Do you want to perform Open Correction?", "Open
Correction", MB_YESNO);
if (rbx != IDNO) {
MessageBox(NULL ,"Open measurement terminal. Then click OK.", "Open
Correction", MB_OK);
printf("Wait a minute . . .\n");
ret = agb1500_clearCorrData(vi, agb1500_CH_CMU, agb1500_CMUCORR_DEFAULT);
ret = agb1500_execOpenCorr(vi, agb1500_CH_CMU, freq, agb1500_CMUM_CP_G, ref_cp,
ref_g, &result);
if (result != 0) {check_err (vi, ret);}
ret = agb1500_setOpenCorrMode(vi, agb1500_CH_CMU, agb1500_FLAG_ON);
ret = agb1500_setShortCorrMode(vi, agb1500_CH_CMU, agb1500_FLAG_OFF);
ret = agb1500_setLoadCorrMode(vi, agb1500_CH_CMU, agb1500_FLAG_OFF);
if (result != 0) {check_err (vi, ret);} /* 15 */
}
}
Line Description
1 Beginning of the open_corr subprogram.
3 to 15 Displays a message box that asks if you perform the open correction. If you click Yes,
the open correction will be performed. It does not need a long time. The short correction
and the load correction are not performed in this example.
17 End of the open_corr subprogram.

Table of Contents

Other manuals for Agilent Technologies B1500A

Related product manuals