Agilent Technologies 81250 System Programming Manual And Scpi Reference page 351

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

Advertisement

Example Code
350
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
// Errors are logged to a file (which may be stdout).
//fp = fopen("c:\\temp\\sample_4.txt", "w");
fp = stdout;
// Initialize the software connection to the 81200 system
lStatus = hp81200_init("VXI0::0::INSTR", bIDQuery, bResetDevice,
&hInstrument );
errHandling(lStatus, "hp81200_init");
// For remote access
lStatus = hp81200_connect(hInstrument, "fox00099","2203");
errHandling(lStatus, "hp81200_connect");
lStatus = hp81200_systemSelect(hInstrument, szSystemNameHp81200,
szApplicationName);
errHandling(lStatus, "hp81200_systemSelect");
fprintf(fp, "System %s:\n", szSystemNameHp81200);
doIt();
hp81200_close(hInstrument);
// Wait so that user can see the results
if ((fp == stdout) || (fp == stderr))
{
printf("Press any key to continue\n");
(void)getchar();
}
else
fclose(fp);
return (lStatus != VI_SUCCESS);
// (TRUE) 1 => failure, (FALSE) 0 => success
}
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Main.cpp Application Code Using VXI Plug&Play

Advertisement

Table of Contents
loading

Table of Contents