User Tools

Site Tools


data_core:text_file_stream

Table of Contents

Text File Stream

The Text File Stream event source is used in situations where a SCADA is “printing” A&E data to a text file.

The event source monitors a specified directory, and will scan files for new rows.

Under the hood, the event source keeps a record of files in the directory, their “last modified” date, and how many rows it has already read. If the file is updated, the event source will pick up from the last row it previously read.

The complete row is passed to a Data Core event's “Message” property. That is, there is no parsing of the text file row other than where it starts and ends.

Key Settings

  • Import Folder
    Path to import folder.
  • Filename Filter
    Specify a file search filter. This parameter can contain a combination of valid literal path and wildcard (* and ?) characters. Comma separate multiple filters.
  • EOLn Terminator
    The EOLn termintor signifies the end of the message.

Tips

Archiving
To keep the event source lean, an independent process should archive files that no longer receive updates.

data_core/text_file_stream.txt · Last modified: 2024/04/05 13:05 by su