Overview

The CSV output facilitates publishing collected records to comma-separated values files.

Configuration

See the General Object Configuration guide for assistance configuring the General tab.

CSV Tab

File Name

The name for the published file.  The default is "$$Source.Name$$$$Archive.TypeName$$.csv"


To select additional tokens, click in the edit box field to display the Property Specific option  in the tool bar, click on Property Specific and select the appropriate token under Insert Token Item.

The listing of available tokens and how they can be used is covered in the article called Substitution Tokens

Path Name

The destination for the published files.  The default is "\HistoryData\CSV\ "

Row Format

Example:
Row 1 <Timestamp> <180.63><76.85>
Row 2 <Timestamp><198.75><79.00>

Example:

Row 1 <Timestamp> <Pressure><180.63>
Row 2 <Timestamp><Temperature><76.85>
Row 3 <Timestamp><Pressure><198.75>
Row 4 <Timestamp><Temperature><79.00>

Field Selection

Field Selection defines which fields in a historical record are included in the output of the publisher. Generally this includes all of the fields retrieved from the device when historical records were collected. This option and the "Field Map" option allow customization of that list to include more fields using information 'Tokens', or to reduce the number of fields by listing only the fields that are desired.

Field Map

Field Map Data is where a Collection is entered. A collection provides a way to include additional fields in the output record, or to give existing fields a different column name.

Configure the Field Map Data by clicking Edit Collection... 

  1. Click Add to enter the appropriate number of New Record items 
  2. Click Remove to delete any unwanted New Record items 
  3. Click Tabular Display to view all New Record items at once 
  4. Select the appropriate New Record item 
  5. Click on Field Identifier. The name of the field as published by the protocol module. Select the identifier from the Selection form when the edit icon is selected.
  6. Click on Output Field. Enter the appropriate name or leave blank. 
  7. Click on Record ID and enter the appropriate name. 
  8. Click Close to leave dialog

File Delimiter

Select the desired file delimiter to use.

Quotation Marks

This option may be necessary when the data is likely to contain the Microsoft Excel default delimiter (the comma). Using this option will cause the publisher to surround data with quotes. This will assist Microsoft Excel in interpreting the difference between commas meant to delimit and commas meant to be in the data.

Quote options can be configured to:

Include Column Header

Default = Selected.

Use Custom Header

Default = Not selected. Use Custom Header in CSV file.

Customer Header

If "Use Custom Header" is selected, fill in the desired header for the published CSV.

Customization Tab

Use Generated Timestamp

Default = Selected. Include the record timestamp in the published output. (Some protocols may also provide a timestamp as a field in the record).

Use Predefined Column Names if Available

Default = Not selected. Select to use predefined column names if available, otherwise use names provided by the protocol driver. 

Use Translated Values

Default = Not selected. Select to use EFM Translated values for fields instead of the raw value from the protocol. Example: Turbine instead of 0.

Flowing Time Unit

Select the desired units for the Flowing Time value.

Record Span

This setting determines whether timestamps are left as provided by the flow computer or all records are converted to leading time stamps.

Contract Time

Timestamp Adjustment

Bias Minutes

The number of minutes to apply to the record time stamp. e.g. CST to GMT = 360, CST to Mountain = -60. Default is 0.

Remove DST Bias

Default = Not selected. Remove the DST bias from record stamps that fall within Daylight Savings Time.  Only do this if the source records follow Daylight Savings Time.

Single Precision

Default = Default.  Select Custom to enter a value for Precision. See Numeric Precision.

Double Precision

Default = Default.  Select Custom to enter a value for Precision if Custom is selected. See Numeric Precision.

Records Tab

History Period Time

Select the time period of the record types to be written to the file.

Period Time

Default = 60 (minutes). If "Other" is selected above, the publisher will use this value to publish only those records that have a matching period value.

Check all required record types to be published.

How To

Add an empty column to a published csv file

Add a constant value to every row in a specific column in a published csv file

Use a field’s value as part of the file name in a published csv file