Fluke PM-3370B Sander User Manual


 
APPLICATION PROGRAM EXAMPLES A - 7
Routine ServReq does the following:
- Serial polls the status byte to reset the SRQ mechanism.
- Reads the ESR byte to clear the OPC bit.
- Sets the SRQ.detected flag to signal that an SRQ interrupt occurred.
Routine Enter.Setup does the following:
- Requests for an internal memory (<n>) from 0 to 10.
- Sends the
*
RCL <n> command to recall the memory setup.
Routine Save.Setup does the following:
- Requests for an internal memory (<n>) from 1 to 10.
- Sends the
*
SAV <n> command to save the setup into memory.
Application program:
Note: The program is supplied on floppy under file name EXAPPA31.BAS.
A.3.2 Save/recall settings to/from computer disk memory
The following example uses the store/restore feature to/from computer disk
space.
1) The program requests to store the current instrument setup to a file name on
disk that must be entered if you respond with Y(es).
2) The program requests to restore an instrument setup from a file name on disk
that must be entered if you respond with Y(es).
3) A single-shot cursor measurement is done. Using the service request
mechanism (SRQ) the end of the measurement is waited for. Then, as an
example, the "dT cursor" readout value is read and printed.
4) Finally the program asks to stop or to perform a next measurement.
Application summary:
Before running the program, make a cursor measurement setup via the front
panel CURSORS key and menu.
Enable the SRQ mechanism to generate an interrupt after "Operation
Completed" (routine ServReq is executed).
Request to save the current instrument setup. If response = Y(es), routine
Save.Setup is called.
Request to read an instrument setup. If response = Y(es), routine Enter.Setup
is called.
Repeat.test1:
Initiate a single acquisition by sending: INITiate:CONTinuous OFF
INITiate;
*
OPC