Rs-232 output – Fluke Biomedical 05-450 User Manual

Page 20

Advertising
background image

05-450

Users Manual

12

RS-232 Output

With the CAL MODE dipswitch in the left position, the Product dumps RS-232

data onto pin 4 of the 9-pin connector every 2 seconds.
An example program which shows how an IBM compatible PC can be used to

collect the data follows:

‘Demonstration Program
‘Model 05-450 communication program written for QuickBasic
‘This program causes the computer screen to display the data being dumped
from the Model 05-450.
‘Needs the following cable:

Model 05-450

PC (9-pin)

PC (25-pin)

pin

4

TXD

pin

2

pin

3

pin

2

GND

pin

5

pin

7

‘Cable connector has male pins on Model 05-450 side
‘Cable connector has female pins on PC side

‘open up communications with serial port #1

‘at 2400 bps (baud), no parity, 8 data bits, 1 stop bit

‘no handshaking, buffer size of 8k

OPEN “COM1: 2400,n,8,1,bin,CS0,DS0,CD0,RB0” FOR INPUT AS #1

‘open

up

filename

• for output

CLS

‘clear the screen

LOCATE 1
PRINT

‘Press Esc key to stop reading data.

COM(1) ON

‘enable coml trapping

ON COM(1) GOSUB Getcomport

‘if something comes in coml, then get it

WHILE (1)

‘loop until Esc key is hit

comment

•= INKEY•

IF comment

• = CHR• (27) THEN GOTO endloop

WEND
endloop:
COM (1) OFF
CLOSE#1

‘CLOSE COM port.

END
Getcomport:
WHILE LOC(1) <>0

ComportInput

•=INPUT•(1,#1)

‘bring in data from serial port

PRINT ComPortInput

•;

‘pint data to screen

WEND
RETURN

The RS-232 data includes the current radiation readings and the current

condition of the status lights. The data is presented in the following format:

BYTE1

0

x

BYTE2

x

x

BYTE3

x

OR

x

BYTE4

x

x

BYTE5

.

.

BYTE6

x

0

BYTE7

Audio

Status

=1=on

BYTE8

High Alarm Status

=1=on

BYTE9

Low Alarm Status

=1=on

BYTE10

Over Range Status

=1=on

BYTE11

Monitor Status

=1=on

BYTE12

Error

Code

BYTE13

Carriage Return (ODH)

BYTE14

Line Feed (0AH)

Advertising
This manual is related to the following products: