Avisaro AG - Wiki (en) > Script Manuals > Data Logging > MR1: RS232 data logging

MR1: Log RS232 data stream into a file

Description

Dummy

This script logs RS232 data into a file. All data coming in on the RS232 interface are stored in a file called “logdata.txt”. The data are not modified – ASCII or binary data are stored just as they are transmitted on the interface.

Download

Script

Download Script: MR1-8.txt (1,3 kB) (right mouse-button and 'save under ..' to download)

Initial Setup

Power Up and Connect to your device as described Mehr here in the User Manual section "First Steps".

Typically, this script is loaded when an Avisaro Logger product was purchased. Please see Mehr here for details on how to reload the script into the logger in case it was changed.

Configure the RS232 port, such as baudrate and stop bits, as described Mehr here using SD memory cards.

The default settings of the RS232 interface are:

RS232 default settings

Baudrate: 9600
No of bits: 8
Parity bits: none
Stop bits: 1
Flow control: none

Logging Data

After setup, the Logger is ready to operate. All data from the RS232 interface is now logged onto the SD memory card.

When log process is finished, extract the SD card and insert into a "All-In-One" reader connected to a PC. The logfile is called "logdata.txt". This file can be opened in a regular text editor. Alternatively, the file can be inported into another program such as Excel, MathLab, ... .

LEDs and Key

LED and KEY

Key:
Is used to start and stop logging process.
The logging process is automatically started or stopped when a card is extracted or inserted.
The logging process is also automatically started when the device is powered up.

Green LED:
Indicates power up.

Red LED:
Indicates that the logging process is active.