About the history service

To use histories, each station must contain a single history service that provides http access to all of the histories in a station. This service is responsible for creating the history database, as well as enabling the collection and storage of histories in the database. If you do not have the history service in your active station, you can add it by dragging and dropping a copy from the History Palette, as shown in Figure 127.

Figure 127. Adding the history service


Adding the history service

The history service manages histories in ways that are not always visible to the user, including the following:

The history extension manager and the history property sheet are two views of the history service that provide ways to work with history extensions. Refer to the following sections for more information about these views:

About the history extension manager view

As the default view of the history service, the history extension manager shows all history extensions in the station and displays their current status. Using this view as both a management and navigational tool, you can double-click on any entry-row to go directly to the property sheet view of that extension. This table has the standard table features. Use the Table Options menu in the top right corner of the history table to modify the table view or to export the data in the view, as desired. Refer to Table controls and options for information about using the tabular view, including the Table Options menu.

Figure 128. History extension manager


History extension manager

You can also Enable, Disable, Rename, or (starting in NiagaraAX-3.4) Edit System Tags for any collection from this view by selecting the desired history extension in the table and using the History Ext Manager menu, popup menu, or toolbar icons, as described in the sections listed below:

NoteIf a history is disabled, its row is dimmed with a gray background in the history extension manager view.

About history service property sheet

The history service property sheet, shown in Figure 129, includes the following properties:

  • Max Open Time

    this is an editable parameter for setting the amount of time that the history database may remain open without being accessed before it is subject to being closed by the Close Unused Histories action. If the history is accessed more frequently than the Max Open Time, it is not closed when Close Unused Histories action is invoked.

  • History Groupings

    Starting in AX-3.5, this property is available for organizing histories according to history properties that you can designate and enable using the History Group component.

Figure 129. History service properties


History service properties

History service actions

History service actions are available from the popup menu when you right-click the HistoryService node in the nav side bar pane. Available actions include:

  • Save Db

    this action initiates a save of all histories to the history database.

  • Close unused histories

    this action closes any histories that have not been accessed within the Max Open Time (this time is set in the history service property sheet).