![Agilent Technologies 81250 Скачать руководство пользователя страница 361](http://html.mh-extra.com/html/agilent-technologies/81250/81250_system-programming-manual-and-scpi-reference_2868601361.webp)
Example Code
Main.cpp Application Code
360
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
aLoopLevels);
if (aGenPort > 0)
sprintf(aCmd, “%s,’walking64’,0,0”, aCmd);
if (aAnaPort > 0)
sprintf(aCmd, “%s,’walking64’,0,0”, aCmd);
sprintf(aCmd, “%s)))”, aCmd);
h.Call(aCmd);
// generate trigger signal from sequence
h.Call(“cgr:trig:mode seq”);
// ------------------------------------------------
// set meausurement mode
// compare and acquire around error
// ------------------------------------------------
if (aAnaPort > 0)
h.Call(“sgen:glob:conf:ecap”);
// ------------------------------------------------
// save setting for later use
// ------------------------------------------------
sprintf(aCmd, “mmem:sett:save ‘%s’”, SETTING_NAME);
h.Call(aCmd);
// ------------------------------------------------
// start measurement
// ------------------------------------------------
h.Call(“sgen:glob:init:cont on”);
// ------------------------------------------------
// poll measurement done
// THIS ONLY WORKS ONLINE!!!
// ------------------------------------------------
for (;;)
{
h.Call(“sgen:glob:syst:stat?”, aResult);
if (strncmp(aResult, “FIN”, 3) == 0)
break;
}
// -------------------------------------------------
// stop measurement
// -------------------------------------------------
h.Call(“sgen:glob:init:cont off”);
// -------------------------------------------------
// - demonstrate the edit subsystem how to deal with
// captured data
// - export the captured data and the error memory
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com