Each of the following Rdbms Device extensions has an associated History Device Extension
that you can configure and use to perform exports and imports of data between Rdbms database and NiagaraAX history files:
You can use the History Import Manager or History Export Manager views to specify, configure, and execute the importing or exporting of files. For more detailed information about these views and importing and exporting histories, in general, refer to the “History Import Manager” and “History Export Manager” sections of the NiagaraAX-3.x Drivers Guide.
The following procedures describe how to import and export data between an Rdbms database and history files:
This procedure describes how to export history data to any of the following Rdbms database types:
The term rdbDatabase in the following steps, refers to any of the database types listed above.
To export history data to an Rdbms database, do the following:
Click the button. A second New dialog box appears with one or more export descriptors in the top pane.
Type in a meaningful name for this export descriptor.
Enter the station name and history name into these two fields
Select an execution mode from the option list. For Daily or Interval modes, choose the desired execution parameters for the specific mode.
Select true to enable or false to leave the export descriptor disabled.
The new history export descriptor(s) appears in the Database (lower) pane.
The status and time of the last export action is displayed in the Database pane, “Status” and “Last Success” columns, respectively. Also, each export descriptor appears under the node in the nav tree.
This procedure describes how to import history data to any of the following Rdbms database types:
In the following steps, the term rdbDatabase refers to any of the database types listed above.
To import history data into an Rdbms database, do the following:
Type in a meaningful name for each import descriptor.
Enter a station name and history name into these two fields.
Select an execution mode from the option list. For Daily or Interval modes, choose the desired execution parameters for the specific mode.
Select true to enable or false to leave the import descriptor disabled.
Set the desired maximum number of records to import.
This property allows you to choose what to do when the Capacity number is reached. The Roll option drops off the oldest record to make room for the newest record. The Stop option simply causes the history to stop recording.
This option allows you to choose between the following two options for setting a data import frequency.
This option does not specify a particular frequency for imports.
This option allows you to set an import action frequency in terms of hours, minutes, and seconds.
This property allows you to set units for the “Value Column” in the imported table.
Use this property to set the desired import-location time zone.
Type in the name or click on the search and replace icon to use the Batch Search and Replace dialog box to redefine the table name on import.
Type in the name or click on the search and replace icon to use the Batch Search and Replace dialog box to redefine the catalog name on import.
Type in the name or click on the search and replace icon to use the Batch Search and Replace dialog box to redefine the schema name on import.
Specify the Timestamp column for the imported data. If you did a Discover, then the table columns are displayed in the option list for you to choose from. Otherwise, type in the column name in the text field.
Specify the Value column for the imported data. If you did a Discover, then the table columns are displayed in the option list for you to choose from. Otherwise, type in the column name in the text field.
Select or clear the option box to specify if a status column is included in the imported data or not. If the None box is cleared, then specify the status column for the imported data. If you did a Discover, then the table columns are displayed in the option list for you to choose from. Otherwise, type in the column name in the text field.
This field allows you to insert a query predicate to filter the records that are imported. For example, you could type in “where Value > 100” to import only those records that have a “Value” that is greater than 100. Or, you could type in “where Value between 1 and 100” to import those records with Values between 1 and 100.
Select Enabled to import the full database (up to the specified limit) on each successive import action. Select Disabled to import (and append) only the new data on each successive import action.
After clicking the button, the new history import descriptor(s) appears in the Database (lower) pane.
The status and time of the last import action is displayed in the Database pane, “Status” and “Last Success” columns, respectively.
In addition, the imported histories appear in the nav tree under the History
node, organized by device
.
Copyright © 2000-2016 Tridium Inc. All rights reserved.