Serial Interface Program Control Properties - Lakeshore 642 User Manual

Electromagnet power supply
Table of Contents

Advertisement

Current Name
Label1
Label2
Label3
Text1
Text2
Command1
Form1
Timer1
12. Add code (provided in Table 5-8).
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-8.
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-8.
d. Double Click on the Timer control. Add code segment under Private Sub Timer1_Timer() as shown in
Table 5-8.
e.
Make adjustments to code if different Com port settings are being used.
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.2.7.2.
16. Press Enter or select the Send button with the mouse to send command.
17. Type Exit and press Enter to quit.
Computer Interface Operation
Lake Shore Model 642 Electromagnet Power Supply User's Manual
Table 5-7 Serial Interface Program Control Properties
Property
Name
Caption
Name
Caption
Name
Caption
Name
Text
Name
Text
Name
Caption
Default
Name
Caption
Enabled
Interval
New Value
lblExitProgram
Type "exit" to end program.
lblCommand
Command
lblResponse
Response
txtCommand
<blank>
txtResponse
<blank>
cmdSend
Send
True
frmSerial
Serial Interface Program
False
10
5-25

Advertisement

Table of Contents
loading

Table of Contents