Skip to main content

Connector

To configure the connector, from the Project Explorer select Connect, Connectors.

  1. Click Add

  2. Select Text File, Discrete (time series)

  3. Click OK

    image1.png

The Source section defines the Folder where the text files are located and a Filter.

The File setting can be:

  • Fixed

    In this case, the connector will always use this file. This would be applicable in cases when the file is overwritten by new content.

  • Variable

    In this case, the connector will use the file name stored in the variable specified, File Name by default. The variable is usually set by the scheduler or from an on-demand report.

Usually, the first row of the file contains the headings and the remaining rows the data. If this is not the case, click the Settings button in the Source section and then refer to the File Setting chapter in the Text Historian.

Encoding

This setting is used to specify the encoding of the files. The default encoding options are ANSI, UTF-8 with BOM or UNICODE little endian. If one of these are detected Encoding is applied automatically, otherwise it is defaulted to ANSI.

Encoding can be specified directly by providing the code page. For example, if the file is encoded as UNICODE big endian, set Encoding to 1201. The code pages can be easily found on the internet.

Date and Time Columns

These settings define the column(s) containing the date and time for every record.