Keysight V3500A User Manual page 98

Handheld rf power meter
Hide thumbs Also See for V3500A:
Table of Contents

Advertisement

3
Driver Installation and Commands
cout << "V3500A initialized" << endl;
// Setup the V3500A for a measurement:
try
{
Reply=myPM->SendString("*RST\n"); // Reset the V3500A
CheckForOK(Reply);
Reply=myPM->SendString("FREQ1000\n"); // Set the frequency to 1000 MHz
CheckForOK(Reply);
}
// This catches errors with COM:
catch
(_com_error& e)
{
cout << "COM error while programming V3500A:"<<endl;
dump_com_error(e);
}
// This catches all other errors.
catch
(...)
{
cout << "Error programming V3500A" << endl;
}
cout << "V3500A configured for power measurement" << endl;
// Take a reading:
try
{
Reply=myPM->SendString("*TRG\n");
cout << "Measured power: " << W2A(Reply) << endl;
}
catch
(_com_error& e)
78
V3500A User's Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents