Keysight V3500A User Manual page 97

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

Advertisement

// A return value of 1 from IsDeviceAvailable() means the V3500A is available.
// A value of –1 means it is absent, and a value of 0 means it is unavailable (for example, it may be
in use by another program).
if
(MeterAvailable != 1)
{
cout << "V3500A PowerMeter is not available; status= "<<MeterAvailable<<endl;
return
0;
}
cout<<"V3500A serial number "<< SN << " is available"<<endl;
myPM->SerialNumber=SN;
// Initialize the V3500A
try
{
myPM->Initialize();
}
// This catches errors with COM:
catch
(_com_error& e)
{
cout << "COM error initializing V3500A:"<<endl;
dump_com_error(e);
}
// This catches all other errors.
catch
(...)
{
cout << "Error initializing" << endl;
return
0;
}
V3500A User's Guide
Driver Installation and Commands
3
77

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents