Agilent Technologies 81250 System Programming Manual And Scpi Reference page 361

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

Advertisement

Example Code
360
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
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
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Main.cpp Application Code

Advertisement

Table of Contents
loading

Table of Contents