6.2 File-Recorder

The File-Recorder logical device provides a simple facility to write measurement or state values in regular intervals to a file. In user configurable intervals, the File-Recorder writes a line consisting of a time stamp and up to 4 measurement values to the file. A file size limit may be defined to prevent the File-Recorder from creating arbitrary sized files.

Device window pages

The following table shows which device window pages are available with this individual device type. Tool-bar functions not mentioned here are described at the general description of device windows .

Configuration parameters

At the maintenance page of the device window there are a couple of configuration parameters which must be set to interconnect the File-Recorder device with the devices which origin the measurement values to record.

File Format

The File-Recorder writes the sample to a file 'XXXX.txt', where 'XXXX' is the device name of the File-Recorder device. The file is placed in the Server's base directory unless the 'directory' configuration setting is set to a subdirectory of this.

The file entirely consists of lines, separated by CR/LF pairs. Each line contains a set of measurement values, preceeded by a time stamp. Columns are separated by semicolons, no space characters are inserted between the columns.

Reading A File From Remote

The file written by the File-Recorder (also the backed up data file, if size limiting is enabled) may be read from a remote computer via http. The URL to read the file is:

http://xxx.xxx.xxx.xxx:2007/XXXX.txt or http://xxx.xxx.xxx.xxx:2007/XXXX. old.txt respectively.

Hereby 'xxx.xxx.xxx.xxx' is the IP Address or host name of the M&C / VLC server, 'XXXX' is the name of the File-Recorder device on this machine.

If the 'directory' configuration setting is set to e.g. 'somedir', the URLs to read the files are:

http://xxx.xxx.xxx.xxx:2007/somedir/XXXX.txt or http://xxx.xxx.xxx.xxx:2007/somedir/XXXX.old.txt respectively.

Variables defined by this device driver

name type flags range
info.driver TEXT R/O StringRange R/O
info.type TEXT R/O StringRange R/O
info.frame TEXT R/O StringRange R/O
info.directory TEXT R/O StringRange R/O
config.channel1Id TEXT SAVE SETUP StringRange
config.channel2Id TEXT SAVE SETUP StringRange
config.channel3Id TEXT SAVE SETUP StringRange
config.channel4Id TEXT SAVE SETUP StringRange
config.interval INTEGER SAVE SETUP IntegerRange (1 .. 2592000)
config.liveInterval INTEGER SAVE SETUP IntegerRange (1 .. 2592000)
config.maxSize INTEGER SAVE SETUP IntegerRange (0 .. 100000)
config.directory TEXT SAVE SETUP StringRange
liveView TEXT R/O StringRange R/O
directory TEXT R/O StringRange R/O
faults.01 ALARM R/O AlarmFlagRange R/O (Invalid directory)