Serial Interface Basic Programs - Omega CYD211 User Manual

Single input temperature monitor
Table of Contents

Advertisement

Message Flow Control (Continued)
NOTE: The serial interface will not function during front panel setup
operations. Do not use the front panel during serial communications.
Failure to follow these rules may result in inability to establish
communication with the instrument or intermittent failures in communication.
4.1.6

Serial Interface Basic Programs

Two BASIC programs are included to illustrate the serial communication
functions of the instrument. The first program was written in Visual Basic.
Refer to Paragraph 4.1.6.1 for instructions on how to setup the program.
The Visual Basic code is provided in Table 4-3. The second program was
written in Quick Basic. Refer to Paragraph 4.1.6.2 for instructions on how
to setup the program. The Quick Basic code is provided in Table 4-4.
Finally, a description of operation common to both programs is provided in
Paragraph 4.1.6.3. While the hardware and software required to produce and
implement these programs not included with the instrument, the concepts
illustrated apply to almost any application where these tools are available.
4.1.6.1
Visual Basic Serial Interface Program Setup
The serial interface program (Table 4-3) works with Visual Basic 6.0 (VB6)
on an IBM PC (or compatible) with a Pentium-class processor. A
Pentium 90 or higher is recommended, running Windows 95 or better, with
a serial interface. It uses the COM1 communications port at 9600 Baud.
Use the following to develop the Serial Interface Program in Visual Basic.
1. Start VB6.
2. Choose Standard EXE and select Open.
3. Resize form window to desired size.
4. On the Project Menu, click Components to bring up a list of additional
controls available in VB6.
5. Scroll through the controls and select Microsoft Comm Control 6.0.
Select OK. In the toolbar at the left of the screen, the Comm Control
will have appeared as a telephone icon.
6. Select the Comm control and add it to the form.
7. Add controls to form:
a.
Add three Label controls to the form.
b.
Add two TextBox controls to the form.
c.
Add one CommandButton control to the form.
d. Add one Timer control to the form.
8. On the View Menu, select Properties Window.
Remote Operation
Omega Model CYD211 User's Manual
4-5

Advertisement

Table of Contents
loading

Table of Contents