Agilent Technologies 81250 System Programming Manual And Scpi Reference page 354

Parallel bit error ratio tester
Hide thumbs Also See for 81250:
Table of Contents

Advertisement

Lib.cpp Interface Class Library Code
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
WriteErrorLog(ret);
return false;
}
}
return true;
}
// Call 81200, handle is automatically supplied by the class.
// Errors are logged to the logfile.
// In case of an error, false is returned.
// Results from the call are ignored.
bool HP81200::Call(const char* theCmd)
{
int ret;
char aCmd[1024];
int aResultLen;
if (strcmp(GetHandle(theCmd), "dvt") == 0)
// already valid command with handle dvt, just use it...
sprintf(aCmd, "%s", theCmd);
else if (theCmd[0] == ':')
// command for local handle
sprintf(aCmd, ":%s%s", itsHandle, theCmd);
else
// command for local handle
sprintf(aCmd, ":%s:%s", itsHandle, theCmd);
aResultLen = sizeof(itsResultBuffer);
ret = Call_HP81200(aCmd, itsResultBuffer, &aResultLen);
if (ret != 0)
{
WriteErrorLog(ret, theCmd);
return false;
}
return true;
}
// Call 81200, handle is automatically supplied by the class.
// Errors are logged to the logfile.
// In case of an error, false is returned.
// Results are returned as a pointer to an internal buffer,
// so before calling Call again, the results must be otherwise
// saved.
bool HP81200::Call(const char* theCmd, const char*& theResult)
{
theResult = itsResultBuffer;
return Call(theCmd);
}
Example Code
353

Advertisement

Table of Contents
loading

Table of Contents