Chapter 7
7-133
Programming Examples
Limit Line and Data Point Special Functions
Example Program of OUTPSEGAF Using BASIC
The following program is not included on the “Programming Examples” CD-ROM:
10 OUTPUT 716; "outpsegaf;"
20 ENTER 716; Numsegs
30 PRINT "Receiving status for"; Numsegs; "segments."
40 IF Numsegs>0 THEN
50
FOR I=1 TO Numsegs
60
ENTER 716; Segnum, Pf
70
PRINT USING "DD, 2X, 8A"; Segnum, Pf
80
NEXT I
The example program shows how the
OUTPSEGAF
command can be used to request the
number of active segments and their status. Notice that each segment result must use a
new enter command as a line feed terminates each segment data result.
Output Minimum and Maximum Point Per Limit Segment
The command
MINMAX<ON|OFF>
toggles a feature which records the minimum and
maximum data points in all active limit segments. Note that limit testing need not be
turned on.
The command
OUTPSEGM
will report the min/max data for the segment previously selected
by
SELSEG
. The data is returned in a comma delimited string with the segment number,
minimum point stimulus, minimum trace value, maximum point stimulus and maximum
trace value.
Under the following conditions,
OUTPSEGM
will issue the following errors:
• If the min/max testing is off: “30: Requested Data Not Currently Available.” To clear the
error message, turn the min/max testing on.
• If the limit table is empty: “204: Limit Table Empty” (this is a new message). To clear
the error message, enter a new limit table.
When the above error conditions occur, there is no data to report, thus no output is
generated.
If the selected segment has no associated limit, the NO_DATA string is generated,
which reports a stimulus value of 0 and a data value of
−
1000.
Summary of Contents for 8719ES
Page 15: ...1 1 1 Alphabetical Command Reference ...
Page 293: ...2 1 2 Introduction to Instrument Control ...
Page 310: ...3 1 3 GPIB Programming ...
Page 334: ...4 1 4 Reading Analyzer Data ...
Page 343: ...5 1 5 Data Processing Chain ...
Page 350: ...6 1 6 Error Reporting ...
Page 364: ...7 1 7 Programming Examples ...
Page 502: ...A 1 A Preset Conditions ...
Page 517: ...B 1 B Command Listings ...