Download Manuals - OMEGA Engineering

Transcript
Omega Model CYC325 Temperature Controller User’s Manual
Visual Basic IEEE-488 Interface Program Setup (Continued)
7.
In the Properties
window, use the
dropdown list to
select between the
different controls
of the current
project.
8.
Set the properties
of the controls as
defined in
Table 6-4.
9.
Save the program.
VB_GPIB_3.bmp
Table 6-4. IEEE-488 Interface Program Control Properties
Current Name
Label1
Label2
Label3
Text1
Text2
Command1
Form1
Property
Name
Caption
Name
Caption
Name
Caption
Name
Text
Name
Text
Name
Caption
Default
Name
Caption
New Value
lblExitProgram
Type “exit” to end program.
lblCommand
Command
lblResponse
Response
txtCommand
<blank>
txtResponse
<blank>
cmdSend
Send
True
frmIEEE
IEEE Interface Program
10. Add code (provided in Table 6-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 6-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 6-5.
11. Save the program.
12. Run the program.
The program
should resemble
the window to the
right.
13. Type in a
command or query
in the Command
box as described in
Section 6.1.5.5.
VB_GPIB_4.bmp
14. Press Enter or select the Send button with the mouse to send command.
15. Type Exit and press Enter to quit.
6-12
Remote Operation