Agilent Technologies 81250 System Programming Manual And Scpi Reference page 364

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
// export segments
// we do this now before the segments are closed, because
// they are now still in memory
sprintf(aCmd,
"mmem:segm:save 'c:\\temp\\prog_sample_capture.txt', '%s',
'prog_sample_capture'", SETTING_NAME);
h.Call(aCmd);
sprintf(aCmd,
"mmem:segm:save 'c:\\temp\\prog_sample_errmem.txt', '%s',
'prog_sample_errmem'", SETTING_NAME);
h.Call(aCmd);
// don't forget to close the segments again!
sprintf(aCmd, "edit:segm%d:clos", aCapture);
h.Call(aCmd);
sprintf(aCmd, "edit:segm%d:clos", aErrMem);
h.Call(aCmd);
}
return true;
}
int main()
{
bool b;
HP81200 a;
FILE* fp;
//fp = fopen("c:\\temp\\sample_4.txt", "w");
fp = stdout;
// init access to local 81200 firmware server, system "DSRA"
// Errors are logged to a file (which may be stdout).
b = a.Init("", "a", SYSTEM_NAME1, fp);
if (b) {
fprintf(fp, "System %s:\n", SYSTEM_NAME1);
b = doIt(a, fp);
}
// release handle, disconnect from server
(void)a.Exit();
// wait, so that user could see the results
if ((fp == stdout) || (fp == stderr))
{
Example Code
363

Advertisement

Table of Contents
loading

Table of Contents