M odel 4085M
Section IJI
4.
Run the Start subprogram included in the SWM file. The Start subprogram m ust
be executed
(I)
after the computer and instruments are first turned on, (2) after
the SCRATCH A or SCRATCH C command 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).
Load and run SWM.
LOAD "SWM"
(2). Call the St!!rt subprogram at the beginning of your program.
N ote
If a BASIC ERROR occurs while the Start subprogram is running, the
instruments are probably not interconnected correctly. Check the
connections and then re-execute the Start subprogram.
5.
Link the SWM sUbprograms. Refer to paragraph 3-43 for instructions.
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 SWM 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 measurem ent pin is disconnected from whatever
port it is connected to.
Connect_th (Port address, First pin number, Last pin numberl:
This sub program connects the specified port to all measurement pins in 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.
3-15