0% found this document useful (0 votes)
41 views21 pages

DSARS0046377

This document provides instructions for setting up and using a datalogger and its RS232 interface to communicate with a PC. It describes the necessary hardware, software, and wiring setup. It then explains how to use the interface software to record data from the datalogger to the PC or vice versa, convert the data to Excel format, view graphs of the data, set the datalogger's sampling rate and time, and calibrate the datalogger using a standard reference.

Uploaded by

jean sanchez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views21 pages

DSARS0046377

This document provides instructions for setting up and using a datalogger and its RS232 interface to communicate with a PC. It describes the necessary hardware, software, and wiring setup. It then explains how to use the interface software to record data from the datalogger to the PC or vice versa, convert the data to Excel format, view graphs of the data, set the datalogger's sampling rate and time, and calibrate the datalogger using a standard reference.

Uploaded by

jean sanchez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Datalogger and RS232 Interface

RS232 Wiring Hardware ……………………………………………………………2


RS232 Code ………………………………..………………………………………3
Hardware Requirements and Setup ………………………………………………4
Software Requirements and Setup …………………..……………………………5
Communicating Operation …………………….……………………………………8
Run the Software …………………………………...…….………………….….8
Record………..……………………………………………………………………10
Download…...………………………..……………………………………………12
Data Convert....……….……………..……………………………………………14
Apply for Excel ……………………………………………………………………14
Apply for Graph……………………………………………………………………17
Sampling Time…………………………..…………………………..…………….18
RTC (Real Time Clock)…………………………..…………………………..…19
Auto Power Off…………………………………………………………………….20
Standard Reference Reading (Offset)………………………………………...21

1
RS232 Wiring Hardware
RS232 Wiring Diagram

PC Interface Cable
Meter side of PC Interface Cable

The RS-232 “phono” plug side of the PC Interface Cable connects to the meter’s RS-232 phono
jack. Refer to the diagram below for wiring information.

RX GND

TX

Computer’s Serial Port side of Interface Cable

The RS-232 “DB-9” side of the PC Interface Cable connects to the PC’s COM port. Refer to the
diagram below for wiring information. Note that a SERIAL to USB Adapter may be used.

RS232 Settings
9600, N, 8, 1

2
RS232 Code
Transmitting Byte Code
Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
02 Flags Humidity Celsius 03
Byte1 : Starting Byte ( 02 )
Byte2 : Flags Byte
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Don’t care HOLD REC Full

Byte3,Byte4 : Humidity
Byte3:
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Bt Humidity High Byte
Byte4:
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Humidity Low Byte

Byte5,Byte6 : Celsius Value


Celsius = (Byte5 * 256 + Byte6)/100 - 50

Data Logger Commands


“A” : 02 + Last Address + No.s of Recorded set + 03 + K
Follow K : :
“D” : R + R + B + T
+ DD + HH + MM + SS + Intv. + Rec.s + Humidity + Celsius
+ Humidity + Celsius
+................+ BTK
“X” :
DD + HH + MM + SS + Intv. + Rec.s + Humidity + Celsius
+ Humidity + Celsius
+...............(4096 Bytes)
Wait for K command(s) if 4096 more bytes

3
Hardware Requirements and Setup
PC HardWare Requirements :
HDD, CD Rom, 486 PC or above, with available COM port
EGA or higher monitor
4M bytes or more memory size

PC HardWare Setup :
1) Switch off all power related to the PC
2) Connect the socket (female) of RS232 cable to available COM port
3) Switch on all related power
4) Connect the phono plug end of the RS232 cable to the meter

4
Software Requirements and Setup
1) Start up windows 95 / 98 / 2000 / XP operating system
2) Close all application
3) Insert disk in CD drive
Wait for “Autorun” to start and follow on-screen instructions
(If “autorun” does not start, click on “Start” then “Run”. Type the drive letter and
“:\Disk1\Setup.exe” and click “OK” .)
1).

Setup program will run automatically.

2).

Click Next> button

5
3).

a. Click Next> button to setup on the default folder or


b. Click Browse…button to setup on a different folder

4).

Click Next> button

6
Setup is completed.

7
Communicating Operation
Run the software
1. Click "Start" form Start menu and then move mouse pointer to "All Programs" (or
“Programs”) then "HTMeter" and then click the "HTMeter" icon.

2.
Click an available COM port

8
3. Main software screen

If no connection, shows as below: “No COM”

Communication Distance
RS232: 15 Meters
RS485: 1000 Meters (Additional adaptor and cable are required.)

9
Record

Save to Hard Disk (PC)

Click button. The dialog box shown below will appear.

Input a file name and then click "Save" to begin saving data to the file just named.

Click button to stop recording.

10
Save to EEP Rom (Humidity Temperature Meter)

1. Automatically Record

Click or keep pressing the RECORD key on the meter for about 3 seconds till

RECORD symbol shows on the LCD. The meter begins to record data automatically.

Click or press the RECORD key momentarily to stop recording.

2. Manually Record

Click or press the RECORD key on the meter momentarily to store one reading.

The “RECORD” symbol will flash once.

11
Download Data
1. Download Data from EEP ROM

Click button. The Data Logger window, shown below, will open.

Click on a SET number to view the set’s details. For example, in the window above, there
are 3 sets from which to choose. The list below is an example of an opened set.

12
2. Download Data from Hard Disk

Click button. The Open window, shown below, appears

Input the file that was selected earlier and then click the Open button.

13
Data Convert
Apply for Excel
Open Microsoft Excel, find the file saved in Excel type, for example, test.xls.
or find any file already saved in HDD, for example, sample.txt

14
The "Text Import Wizard" then appears. Follow the steps 1 to 3 to complete.

Click Next> button

Click Next> button

15
Click Finish to complete.

16
Apply for Graph

Open a saved data in HDD or EEP ROM, then click to complete.

17
Sampling Time

Click on the Menu Bar.

PC Sampling Rate:
(rate at which the PC collects readings while connected to the meter)

In the Input Sampling Time dialog box, input a sampling time and then click
"OK" button to confirm.

Meter Sampling Rate:


(rate at which meter stores readings)

Input a sampling time and then click "OK" button to confirm.

Input a sampling time and then click "OK" button to confirm.

18
RTC ( Real Time Clock)

Click on the Menu Bar. The window shown below will appear.

Click to show PC System Time or to show Meter Time.

Click to set the meter time to PC system time.

19
Auto Power Off

Click on the Menu Bar.

As above, enter an expected time period and then click “OK” to confirm.

20
Standard Reference Reading (Offset)
Use standard humidity meter to verify the reading.
1. Click on the Menu Bar.

2. As above, enter the calibrated values and then click “OK” to confirm.

21

You might also like