Managing the data sources

Data that has been historized with the Analytics Storage Provider can be used as a data source for the charts. The data sources can be managed directly via the dashboard.

Managing the data sources 1:

Automatic addition of historical sources during code generation

From TwinCAT Analytics Workbench version >= 49.0, all historical data sources from the project are automatically transferred to the dashboard during code generation. It does not matter whether these are actively used in the project or have merely been added as sources. Please note that live data sources cannot be used.

Open of the Data Source Management

Data sources can only be managed by users in the "__SystemAdministrators" or "Administrators" group. You can open the Data Source Management via the menu icon in the top right-hand corner: Menu - <username> - Data Source Management.

Managing the data sources 2:
Managing the data sources 3:
Managing the data sources 4:

Alternatively, you can also open Data Source Management via an existing Interactive Chart.

Managing the data sources 5:

Overview of data sources

All existing data sources are displayed in the Data Source Management. The status of each data source is also displayed. This has the following meanings:

Managing the data sources 6:

Creating a data source

New data sources can be added simply by drag and drop from the TargetBrowser. In the TcAnalytics tab, select Historical Data sources.
All symbols are automatically added to the data source.

If the parameters have been read successfully, the upload icon lights up green. Click on the upload icon to send the configuration to the server extension.

Managing the data sources 7:

If the Target Browser is not available on the device, you can create an empty data source using the plus icon in the bottom right-hand corner. This must be configured manually.

Configuring and changing a data source

You can use the arrow to the left of a data source to expand and edit it.

Managing the data sources 8:

The following parameters can be set:

Parameter

Description

Source ID

Unique ID of a data source. This is unique and is assigned by the server extension.

Message Broker

Address of the message broker

Broker Port

Port of the message broker

Topic

MQTT topic of the historical stream

„…/TcAnalyticsStorageProvider/…/Historical/Stream…“

StreamTopic

Original topic of the recorded stream.

Cycle Time

Cycle time of the data source in 100 nanoseconds.

Layout

Layout of the stream

Stream SystemID

SystemID of the recorded stream.

UserID

User name for accessing the message broker.

Password

Password for access to the message broker.

With certificates

If the value is checked, the selected certificate files are used.

CA

CA file (can be uploaded to the server extension).

CERT

CERT file (can be uploaded to the server extension).

KEY

KEY file (can be uploaded to the server extension).

Key Password

Password for the KEY file.

The changes can be sent to the server extension via the save icon (green). Alternatively, the changes made locally can be undone using the reset icon (blue). The status of the data source can be queried again via the refresh icon (gray).

Deleting a data source

A data source can be deleted using the corresponding delete icon (red). Please note that all charts using this data source will no longer work. If parameters are changed, such as the broker address or the renewal of certificates, it is advisable to adapt existing data sources and not to delete them.