Skip to main content
Version: 2.8

CSV Publisher Configuration

The publisher is used to report datasets (values or alarms) to the csv file. To check the possibilities of publisher configuration, please check the Common DataLogger Configuration manual.

The file path string must be set in the property "Connection". Example: $(AppConfig:CommonAppPath)\Test.csv

The following table contains the specific properties of the CsvDataLogger Publisher configuration. It extends the general DataLogger publisher configuration documented in Common DataLogger Configuration.

ParameterDescriptionData Type
SeparatorCsv separator character. Predefined values are (semicolon, tab, space). Or any other character. Default is semicolon (;).System.String
PrintHeaderFlag to print the header in the csv fileSystem.Boolean

Payload Scripting

The Csv data logger does not support any scripting.

Example

{
"Disabled": false,
"Publishers": [
{
"Id": "608BB9CC-29A3-4F35-9439-6B132207BFE1",
"Name": "TestDataLogger",
"Connection": "$(AppConfig:CommonAppPath)\\Test.csv",
"Separator": "tab",
"PrintHeader": true,
"DataSets": [
{
"Name": "test",
"Type": "DataNode",
"NodeFilter": "",
"Fields": [
{
"Name": "Id",
"DataType": "System.Guid",
"Query": "item.GlobalId"
},
{
"Name": "TimeStamp",
"DataType": "System.DateTime",
"Query": "item.TimeStamp"
},
{
"Name": "Value",
"DataType": "System.Double",
"Query": "item.Value"
},
{
"Name": "State",
"DataType": "System.Int32",
"Query": "item.DataState"
}
]
}
]
}
]
}