Swm Subprogram - HP 4085M Operation Manual

Hide thumbs Also See for 4085M:
Table of Contents

Advertisement

M odel 4085M
Run the Start subprogram included i n the S W M file. The Start subprogram m ust
4 .
be executed
the SCRATCH A or SCRATCH C comm and is . executed, and (3) after a
program that does not contain any SWM subprograms is executed.
The Start subprogram, can be executed in one of two ways, as outlined below.
(I).
(2).
Link the SWM sUbprograms. Refer to paragraph 3-43 for instructions.
5.
3-39. S W M Subprograms
3-40. All the subprograms for controlling the 4085M are included in the SWM program
file. These subprograms are much like BASIC keywords in that they can be called from a
user-written main program, or they can be executed from the keyboard. Explanations of
all the SWM subprograms are given below :
Start :
This subprogram initializes the 4085M and establishes the COM blocks use - d by the
other S W M subprograms and the diagnostics program (D1AG). Start must be
executed before any other SWM subprogram is executed.
Connect (Port adress, Pin num ber) :
This subprogram connects the specified port to the specified measurement pin. If
Port address is 0 , the specified m easurem ent pin is disconnected from whatever
port it is connected to.
Connect_th (Port address, First pin number, Last pin number l :
This sub program connects the specified port t o all measurement pins i n the
specified range.
This subprogram disconnects all m easurement ports from the m easurement pins.
This sub program displays, on the CRT of the computer, the connection status of
the port and m easurement pin.
(I)
after the computer and instruments are first turned on, (2) after
Load and run SWM.
LOAD "SWM"
Call the St!!rt subprogram at the beginning of your program .
If a BASIC ERROR occurs while the Start subprogram is running, the
instrum ents are probably not interconnected correctly. Check the
connections and then re-execute the Start subprogram .
N ote
Section IJI
3- 15

Advertisement

Table of Contents
loading

Table of Contents