Agilent Technologies 81250 System Programming Manual And Scpi Reference page 353

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

Advertisement

Example Code
352
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
{
bool b;
char aCmd[128];
int ret;
// remember error log file
itsErrorFile = theErrorFile;
// connect to firmware server
// if already connected do nothing
ret = Connect_HP81200(theServerName);
itsConnected = (ret == 0);
if (!itsConnected && (ret != -4))
{
WriteErrorLog(ret);
return false;
}
// create a handle
sprintf(aCmd, ":dvt:inst:hand:cre? %s,'DSR','%s'",
theHandleSuggestion, theSystemName);
b = Call(aCmd);
strcpy(itsHandle, itsResultBuffer);
return b;
}
// Release the handle, disconnect from the system
bool HP81200::Exit()
{
if (strcmp(itsHandle, "") != 0)
{
bool b;
char aCmd[128];
// destroy handle
sprintf(aCmd, ":dvt:inst:hand:dest %s", itsHandle);
b = Call(aCmd);
if (!b) return b;
// clear remembered handle
strcpy(itsHandle, "");
}
if (itsConnected)
{
int ret;
ret = Disconnect_HP81200();
if (ret != 0)
{
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Lib.cpp Interface Class Library Code

Advertisement

Table of Contents
loading

Table of Contents