This program exports selected history records from the Niagara station into a CSV file, using customizable formatting and time range filtering.

Readme

CSVexportHistory

This program exports selected history records from the Niagara station into a CSV file, using customizable formatting and time range filtering.

Installation

The ZIP file contains a single BOG file. Add the BOG to your Workbench User Home. Add it folder by dragging it from your files (My File System) to the station via the Niagara Workbench Nav Tree.

Usage

This program exports selected history records from the Niagara station into a CSV file, using customizable formatting and time range filtering.

Users can define timestamp format, column headers, field delimiter, and dynamic naming options for the output file.

The export includes:

- A configurable list of history points to include.

- Optional time-based filtering using a defined time range.

- A log file (log.txt) that records executed BQL queries for auditing/debugging.

CUSTOM FIELDS:

Trigger

Time-based trigger that schedules execution of the export task.

HistoriesToInclude

List of history points to be exported.

ExportTimeRange

Time range for filtering history records.

TsFormat

Date and time format for timestamps in the CSV.

CustomHeaders

Custom column headers for CSV output.

CsvDelimiter

Character used to separate values in the CSV.

AddBeforeFN

Date-time format to prepend to the CSV filename.

CsvFilename

Base filename for the exported CSV (without extension).

AddAfterFN

Date-time format to append to the CSV filename.

LogEnabled

Enables or disables logging to a log file.

LogAppendMode

If logging is enabled, determines whether to append to or overwrite the log.txt file.

Copyright 2025 Marco Binotto

Comment on this Package

This program exports selected history records from the Niagara station into a CSV file, using customizable formatting and time range filtering.

Watchers
1
Stars
1
68 views • 7 downloads
Package Details

Direct Link

Last Updated

5 days ago

Compatability

Niagara 4 Only