Agilent Technologies 81250 System Programming Manual And Scpi Reference page 360

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

Advertisement

Main.cpp Application Code
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
// -----------------------------------------------
// switch on everything, apply levels / thresholds
// -----------------------------------------------
if (aGenPort > 0)
{
sprintf(aCmd, "sgen:pdat%d:outp on", aGenPort);
h.Call(aCmd);
sprintf(aCmd, "sgen:pdat%d:volt:high 2", aGenPort);
h.Call(aCmd);
}
if (aAnaPort > 0)
{
sprintf(aCmd, "sgen:pdat%d:inp on", aAnaPort);
h.Call(aCmd);
sprintf(aCmd, "sgen:pdat%d:inp:thr 1", aAnaPort);
h.Call(aCmd);
}
// -------------------------------------------------
// import data (overwrite mode)
// -------------------------------------------------
sprintf(aCmd,
"mmem:segm:load '%s\\samples\\segments\\walk64.txt'",
getenv("DVTDSRBASEDIR"));
h.Call(aCmd);
// -------------------------------------------------
// set period
// -------------------------------------------------
h.Call("sgen:glob:per 1e-6");
// -------------------------------------------------
// assign a sequence that uses imported segment
// -------------------------------------------------
// how many loop levels are available?
h.Call("sgen:glob:seq:llev?", aResult);
int aLoopLevels = 0;
sscanf(aResult, "%d", &aLoopLevels);
// make infinite loop with trigger using the imported
// demo segment
sprintf(aCmd,
"sgen:glob:seq (1.0,'',(LOOP%d,1,INF,(BLOCK,0,64",
Example Code
359

Advertisement

Table of Contents
loading

Table of Contents