Download EnviroMon User's Guide

Transcript
How to...
8.10
97
How to export data from the command line
This feature can be used to generate a JPEG image or a comma separated value
(CSV) data file from stored EnviroMon data. This can be used for several purposes:
To create image and data files whenever needed
To automatically generate frequently used files at regular intervals
To display data on a 'live' web site
To download data from a logger and then generate two data files, the following
commands are required:
emw32 -d
emw -jmyfile.jpg -r20May02,27May02
emw -cmyfile.csv -r20May02,27May02
The first line downloads data from the logger. The subsequent lines each generate a
specified JPEG file. Here is a full list of data export options:
-d
Download data. This option does not require any further information. It must
not be used at the same time as any of the file generation options.
-j
Generate a JPEG file. This option is followed by a filename and up to three
numbers. If a filename contain spaces, the entire option must be surrounded
by quotes. For example:
-j"c:\Documents\Picture.jpg,400,300"
The numbers are:
width in pixels (default 640)
height in pixels (default 480)
image quality (default 75) - a higher number creates a better image, but a
bigger file
-c
Generate a CSV file. This option is followed by a filename.
-r
Specify the time range. This option is made up of a start date/time and an
end date/time, separated by a comma.
Important: the range must not contain any spaces.
The range can be specified as fixed dates (for example 20may02) or as
relative dates (today). The latter is useful when you wish to automate the
process of creating a standard set of JPEG images that reflect the current
position.
A date/time must contain a date, and can also contain a time and an offset. If
no time is specified, the time is assumed to be 00:00 (midnight). The
following combinations are therefore valid:
date
date-offset
date+offset
date@time
date@time+offset
date@time-offset
Copyright 2004-2008 Pico Technology Limited. All rights reserved.
emw.en