Agilent Technologies 81250 System Programming Manual And Scpi Reference page 347

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

Advertisement

Example Code
346
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
// Get pattern width (number of traces)
ViInt32 lWidth;
lStatus = hp81200_segmentPatternWidth_Q(hInstrument,
lCaptureInspector,&lWidth);
errHandling(lStatus, "hp81200_PatternWidth_Q");
// Get pattern length (number of vectors)
ViInt32 lLength;
lStatus = hp81200_segmentPatternLength_Q(hInstrument,
lCaptureInspector, &lLength);
errHandling(lStatus, "hp81200_PatternLength_Q");
// Get coding
ViChar szPatternCode[3]; // Possible coding here is only "01"
lStatus = hp81200_segmentPatternCoding_Q(hInstrument,
lCaptureInspector, szPatternCode);
errHandling(lStatus, "hp81200_PatternCoding_Q");
// Write information we got so far:
fprintf(fp, "Analyzer.%d: Coding <%s>, Width %d, Length
%d\n",lAnalyzerPortNumber, szPatternCode, lWidth, lLength);
// Get some data, but assure it does not overflow our small
result-buffer
// To make it human readable, data is returned as a hex
string
if (lLength > 10)
lLength = 10;
if (lLength > 0)
{
// Calculate necessary buffer size
// NOTE: Traces are aligned on byte boundaries
//
Each character (hex digit) uses 4 vectors (with "01"
//
coding)
ViInt32 lHexDigitCount = lLength/4;
if (lLength%4)
// Remaining vectors require another hex digit
lHexDigitCount++;
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