HP 82479A Owner's Manual page 193

Data acquisition pac
Table of Contents

Advertisement

CUSTOM PROGRAMS
The STRIF, MOMITOR and LIS programs can call a user-written subprogram to obtain a
measurement.
This section gives information about the required syntax and structure for these
subprograms.
C.1 STRIP AND MONITOR SUBPROGRAMS
The ZTE IF and [MOM I TOR programs can call a subprogram for each channel in the display, and expects
a single real number in return. The syntax for the subprogram header 1s:
SIIB subprogram-name'. numeric variable
Program example:
18 SUE STEARIMCS
28 M=0CWOLTSO 140
SE S=ohle, 1TEE-1, BRSESE SR
Ji EMD UE
The strain gauge example is a simple one. A more sophisticated program could take measurements from
other instruments, or use the monitor high/low capabilities of the HP 4446 5A Digital I/O Assembly to
wait for the right time to take a measurement. Custom programs can also be used to perform specialized
limit tests/actions (refer to appendix E).
C.2 LOG SUBPROGRAMS
The L.CI5 program can call a subprogram for either data acquisition or control functions. The subprogram
can return up to 30 readings for storage in the data file. The subprogram is called at the beginning of the
data logging session to verify its existence, indicate how many readings will be returned for storage, and
indicate memory requirements.
The syntax for the subprogram headeris:
SLE name control, vector, count, group list, memory, errorflag
The parameters are:
e control - (input): The value is either KI (if data is being taken) or 1 (if the call is for
verification).
e vector - (output): A vector of 30 real numbers which is used to hold the data to be stored.
e count - (output) A number, returned to the L.II5 program, that indicates the number of
readings that should be stored in the data file. The L.II5 program reads this value only once,
and assumes thereafter that the number of readings to be stored will be constant.

Advertisement

Table of Contents
loading

Table of Contents