Checkline J-CC User Manual

Page 5

Advertising
background image

Visual Basic

The communication control (MsComm) of VisualBasic must be applied :

Port opening

' Use COM1.

Comm1.CommPort = 1

' 4800 baud, even parity, 7 data, and 2 stop bit. Comm1.Settings = "4800,E,7,2"

' Open the port. Comm1.PortOpen = True

P

ower supply setting

' Simplex Cable' Form1.MSComm1.DTREnable = True

Form1.MSComm1.RTSEnable = True

' Duplex Cable' Form1.MSComm1.DTREnable = True

Form1.MSComm1.RTSEnable = False

Data request

' Simplex Cable' MSComm1.DTREnable = False

Timer1.Interval = 150

Timer1.Enabled = True

'Duplex cable + duplex instrument' MSComm1.Output = "?" + Chr$(13)

'Duplex cable + simplex instrument' MSComm1.Break = True

'Incremente Timer1.Interval in case of no transmission'

Timer1.Interval = 10

Timer1.Enabled = True

MSComm1.Break = False

Data reading

InString$ = Comm1.Input


For more information, refer to the help menu of MSComm in Visual Basic. Program available on
www.sylvac.ch web site.


Application program

OPTO-RS test

This program is available free of charge on the Sylvac web site or at your distributor. It is a Visual
Basic program with all source files for testing connections and transmission.


Winwedge

WinWedge is designed to transfer any data obtained using Käfer measuring instruments to a computer
application program running under Windows.

Different versions of the Winwedge program are available (light, professional, Windows CE). For
more information contact TAL Technologies, Inc. or consult the www.taltech.com web site.

A light version of WinWedge named GageWedge is available at your distributor. However, this program
version has restrictions regarding data transfer from the instrument.


Hyperterminal

This program is available as standard with Windows 95, 98, 2000 and Me (millenium). It can only be used with a
simplex cable and as data transmission from the instrument.

Advertising