Sing the, Gpib c, Ommand – ETS-Lindgren 2090 Controller User Manual
Page 75: Et with the, Odel, Ackward, Ompatibility, Typical flow of code

Model 2090 Multi-Device Controller
the default setting. The software must issue the N2
command before floating point mode is enabled. The
numeric mode is not saved in memory. Thus a program
should always issue an N2 command upon startup to place
the Model 2090 in floating point mode.
TYPICAL FLOW OF CODE:
1. Initialize
device
a. Query ID string to determine model and firmware
version. (Used to determine what features are
supported.)
b. Configure status reporting if supported and desired.
c. Set numeric mode 2 (requests decimal point).
d. Verify current position is within desired limits and
adjust as needed.
e. Set software limits as needed.
2. Set scan count, polarization, and/or any other desired
motion related parameters.
3. Send GPIB command(s) for desired motion (up, down,
seek, scan, etc.)
4. Wait for motion to complete.
a. Monitor current position as required.
b. Check for operation complete.
c. Repeat until motion complete.
5. Repeat step 3-4 until test is complete.
6. Stop all devices.
NOTE: All sample code is written in Visual Basic using the
National Instruments GPIB card. This code is intended for
illustration purposes only. EMC Test Systems, L.P. makes
no claim as to its suitability for any other purpose.
©ETS-Lindgren, April 2006
75
Revision G– P#399199