Agilent Technologies 81250 System Programming Manual And Scpi Reference page 359

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

Advertisement

Example Code
358
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
{
// query for type
sprintf(aCmd, "conf:cgr%d:mod%d:conn%d:type?", c, m,
co);
h.Call(aCmd, aResult);
// put to analyzer or generator list
sprintf(aBuf, "%02d%02d%03d", c, m, co);
if (strcmp(aResult, "ANALYZER") == 0)
{
if (strcmp(aAnalyzers, "") != 0)
strcat(aAnalyzers, ",");
strcat(aAnalyzers, aBuf);
aAnaCnt += 1;
}
else
{
if (strcmp(aGenerators, "") != 0)
strcat(aGenerators, ",");
strcat(aGenerators, aBuf);
aGenCnt += 1;
}
}
}
}
// -----------------------------------------------------
// now connect analyzers and generators to one port each
// -----------------------------------------------------
if (aGenCnt > 0)
{
sprintf(aCmd, "sgen:pdat:app 'INPUT_PORT',%d,'input'",
aGenCnt);
h.Call(aCmd);
aGenPort = 1;
sprintf(aCmd, "sgen:conn:pdat%d:term1 (@%s)", aGenPort,
aGenerators);
h.Call(aCmd);
}
if (aAnaCnt > 0)
{
sprintf(aCmd, "sgen:pdat:app 'OUTPUT_PORT',%d,'output'",
aAnaCnt);
h.Call(aCmd);
aAnaPort = aGenPort + 1;
sprintf(aCmd, "sgen:conn:pdat%d:term1 (@%s)", aAnaPort,
aAnalyzers);
h.Call(aCmd);
}
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Main.cpp Application Code

Advertisement

Table of Contents
loading

Table of Contents