Hanna Instruments PCA 300 Series User Manual

Page 55

Advertising
background image

55

INTERFACE WITH PC (PCA 300 and PCA 301 only)

A serial interface permits the PCA 300 and PCA 301 to
have direct connection with a computer. Connection with
a computer allows collecting, storing or printing of the
sample concentration data.

Data transmission from the instruments to the
PC is possible with the HI92000 Windows

®

compatible application software offered by
Hanna Instruments.

Refer to the drawing for proper wire connec-
tions.

Serial port set up is: 1200 baud, no parity, 8 bits per byte,
one stop bit (can not be changed by the operator).

A simple example written in Microsoft QBASIC shows how
to read/print concentration data from the analyzer:

OPEN “COM1: 1200,N,8,1,CD0,CS0,DS0,OP0,RS,
TB2048,RB2048” FOR RANDOM AS #1

CLS

PRINT #1, “1”

‘INITIALIZE PORT 1

COM(1) ON

‘ENABLE EVENT TRAPPING

‘ON PORT 1

ON COM(1) GOSUB ComHandler

‘PROVIDE INTERRUPT NAME

DO: LOOP WHILE INKEY$ <> “ “

‘LOOP UNTIL ANY KEY IS

‘PUSHED, THEN EXIT

COM(1) OFF

END

ComHandler:

‘INTERRUPT SUBROUTINE TO

‘PRINT THE VALUE

INPUT #1, value$

PRINT “Chlorine concentration is :”, value$

RETURN

Note

In PCA300A, PCA300AC, PCA301A and PCA301AC models
the RS232 terminal is not used / not connected.

Advertising