Keysight V3500A User Manual page 99

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

Advertisement

{
cout << "COM error while making a power measurement with V3500A"<<endl;
dump_com_error(e);
}
catch (...)
{
cout << "Error reading power from V3500A" << endl;
}
myPM->Release();
myPM=NULL;
CoUninitialize();
return
1;
}
void
dump_com_error(_com_error &e)
{
_tprintf(_T("COM Error Information:\n"));
_tprintf(_T("Code = %08lx\n"), e.Error());
_tprintf(_T("Code meaning = %s\n"), e.ErrorMessage());
_bstr_t bstrSource(e.Source());
_bstr_t bstrDescription(e.Description());
_tprintf(_T("Source = %s\n"), (LPCTSTR) bstrSource);
_tprintf(_T("Description = %s\n"), (LPCTSTR) bstrDescription);
}
void
CheckForOK(BSTR Message)
{
USES_CONVERSION; // Enables use of ATL string conversion macros
char
ExpectedReturn[]="OK";
char
*ActualReturn=W2A(Message);
V3500A User's Guide
Driver Installation and Commands
3
79

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents