Keysight V3500A User Manual page 89

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

Advertisement

try
{
myPM->Initialize();
}
// If initialization fails:
catch(Exception *e)
{
Console::Write(S"Error initializing PowerMeter: ");
Console::WriteLine(e->Message);
return
0;
}
Console::WriteLine(S"V3500A initialized");
// Now we can communicate with the V3500A.
// Configure the V3500A for a measurement:
try
{
Reply=myPM->SendString("*RST\n"); // Reset the power meter
CheckForOK(Reply);
Reply=myPM->SendString("FREQ1000\n"); // Set the frequency to 1000 MHz
CheckForOK(Reply);
}
// If an error occurred:
catch(Exception *e2)
{
Console::Write(S"Error communicating with PowerMeter: ");
Console::WriteLine(e2->Message);
return
0;
}
Console::WriteLine(S"V3500A configured for power measurement");
V3500A User's Guide
Driver Installation and Commands
3
69

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents