![Agilent Technologies 81250 System Programming Manual And Scpi Reference Download Page 341](http://html.mh-extra.com/html/agilent-technologies/81250/81250_system-programming-manual-and-scpi-reference_2868601341.webp)
Example Code
Main.cpp Application Code Using VXI Plug&Play
340
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
static bool doIt()
{
ViChar szParam[hp81200_DEFAULT_BUFFER_SIZE];
ViChar szAnalyzers[hp81200_DEFAULT_BUFFER_SIZE] = {0};
ViChar szGenerators[hp81200_DEFAULT_BUFFER_SIZE] = {0};
ViInt32 lAnalyzerCount = 0;
ViInt32 lGeneratorCount = 0;
ViInt32 lAnalyzerPortNumber = 0;
ViInt32 lGeneratorPortNumber = 0;
ViStatus lStatus = 0;
// ----------------------------------------------------------
// stop system
// reset system
// ----------------------------------------------------------
lStatus = hp81200_systemStop(hInstrument);
errHandling(lStatus, "hp81200_systemStop");
lStatus = hp81200_settingNew(hInstrument);
errHandling(lStatus, "hp81200_settingNew");
// ----------------------------------------------------------
// First, we want to generate a list of all analyzers and
// all generators, so that afterwards we can connect to ports
// ----------------------------------------------------------
// Determine number of clock groups
ViInt32 lClkGeneratorCount;
lStatus = hp81200_nrOfClockGroups_Q(hInstrument,
&lClkGeneratorCount);
errHandling(lStatus, "hp81200_nrOfClockGroups_Q");
// Loop over all clock groups
for (ViInt32 c = 1; c <= lClkGeneratorCount; c++)
{
ViInt32 lModuleCount;
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com