Agilent Technologies 81250 System Programming Manual And Scpi Reference page 42

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

Advertisement

Example Programs
Agilent 81250 Parallel Bit Error Ratio Tester, Programming Reference, March 2006
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
The main() Procedure
The file main.cpp contains the application-specific code. It uses the
lib.cpp interface class to communicate with the Agilent 81250 system.
For a complete listing, refer to "Main.cpp Application Code" on
page 356.
The main() procedure implements the following steps:
• Creates an HP 81200 object and calls the Init() method to create a
handle and to connect to the system. stdout is used for error
logging.
• Invokes the doIt() procedure, which prepares and executes all
required SCPI commands.
• Calls the Exit() method to release the handle and to disconnect
from the system.
The doIt() Procedure
The code for the doIt() procedure is part of the file main.cpp. It
prepares and executes all SCPI commands required for this example.
For a complete listing, refer to "Main.cpp Application Code" on
page 356.
These are the most important steps performed by the doIt()
procedure:
• Stops and resets the system.
• Analyzes the system configuration.
To create a list of all analyzers and generators, the numbers of clock
groups, modules within each clock group, and connectors within
each module are determined.
In loops over all clock groups, modules, and connectors, the type of
each connector is determined. The connectors are appended to the
list of analyzers or to the list of exercisers.
Overview of the SCPI Command Structure
41

Advertisement

Table of Contents
loading

Table of Contents