Specifications

// Send a manual trigger to initiate a single
sweep
pChan->Single(true);
// QueryInterface for the IArrayTransfer
interface of the NetworkAnalyzer object
hr = pMeas->QueryInterface(IID_IArray
Transfer, (void**)&pTrans);
if (!FAILED(hr)) {
// Store the data in the "result" variable
num_points = pChan->NumberOfPoints;
pScalarData = new float[num_points];
pTrans->getScalar(naRawData, naData
Format_LogMag, (long *)&num_points,
pScalarData);
// Display the result
printf("S11(dB) - Visual C++ COM
Example for PNA\n\n");
for (i = 0; i < num_points; i++)
printf("%f\n",pScalarData[i]);
}
}
}
}
pUnk->Release();
pMeas->Release();
pChan->Release();
pTrans->Release();
pNA->Release();
}
CoUninitialize();
return 0;
}
5.1.5.3 Application Output
The figure below shows the displayed results when the
application is executed.
5.1.6 Agilent VEE Example
5.1.6.1 Application Configuration
For this example use Agilent VEE version 6.0 or above
which contains the Variant data type used to transfer
data from the PNA. The type library for the PNA should
be referenced in the Agilent VEE development environ-
ment. The following figure illustrates the reference.
Using the Agilent VEE Object Browser the developer
can see what classes and methods are available for
development of applications for the PNA Series analyzer
(see below figure).
16