Lake Shore Model 642 Electromagnet Power Supply User’s Manual
Computer Interface Operation
5-17
Table 5-4. IEEE-488 Interface Program Control Properties
Current Name
Property
New Value
Label1 Name
Caption
lblExitProgram
Type “exit” to end program.
Label2 Name
Caption
lblCommand
Command
Label3 Name
Caption
lblResponse
Response
Text1 Name
Text
txtCommand
<blank>
Text2 Name
Text
txtResponse
<blank>
Command1 Name
Caption
Default
cmdSend
Send
True
Form1 Name
Caption
From IEEE-488
IEEE-488 Interface Program
12. Add code (provided in Table 5-5).
a. In the Code Editor window, under the Object dropdown list, select (General). Add the statement: Public gSend
as Boolean
b. Double Click on cmdSend. Add code segment under Private Sub cmdSend_Click( ) as shown in Table 5-5.
c. In the Code Editor window, under the Object dropdown list, select Form. Make sure the Procedure dropdown
list is set at Load. The Code window should have written the segment of code: Private Sub Form_Load( ). Add
the code to this subroutine as shown in Table 5-5.
13. Save the program.
14. Run the program. The program should resemble the following.
15. Type in a command or query in the Command box as described in Paragraph 5.1.5.5.
16. Press Enter or select the Send button with the mouse to send command.
17. Type Exit and press Enter to quit.