The Tsentry HMI libraries are composed of a set of objects to facilitate the creation and usage of real-time HMI screens on the Tsentry Windows NT/2000/XP platform.
...
Expand | ||
---|---|---|
| ||
The TPRI.DDVarSelect object acts as a simple text entry to allow the user to type in a valid variable name from the data dictionary. Alternatively, the user may click on the '*' button in the upper right-hand corner of the text box to bring up the Data Dictionary browserBrowser. Once the user selects a value from the data dictionary browser, it is automatically loaded into the text box of the TPRI.DDVarSelect object. Use of the TPRI.DDVarSelect object requires that a separate TPRI.DataDict object exist elsewhere on the screen. Typically a TPRI.DataDict object is dropped in an unused portion of the screen and made invisible so that the object itself is not displayed on the form. Only one TPRI.DataDict object is required to service all of the TPRI.DDVarSelect objects on a screen. |
...
Expand | ||
---|---|---|
| ||
At run-time, the TrendCtrl itself is used mainly as a display to provide feedback about the data being trended. The top two rows of the TrendCtrl object display the dates and times for trended data. The remaining rows are broken up by axis, with the trended variables shown for each axis. The information displayed for each variable, in columns from left to right, are:
Trends are configured via the Trend Setup form. This form can be accessed at design-time via the TrendInfo property of the TrendCtrl object or at run-time by calling the TrendSetup() method of the TrendCtrl object. In the top portion of the form, the user can set various parameters to define the trend graph as a whole:
The middle 'Trend Axes' section of the form allows the user to add, delete, and configure each of the trend axes. Several columns are provided to configure each axis:
The parameters for a given axis can be modified in one of two methods. First, the user can highlight the desired axis and single-left-click on the parameter to be modified; within a few moments the field will become editable and the user can make the appropriate selection. Alternatively, once highlighting the desired axis the user can right click anywhere on the axis entry to display a popup menu of options. This menu contains several commands to edit the various axis properties. This popup menu also presents commands to insert and delete an axis and to enable or disable the Normalize Axis Percentages option mentioned above.
The bottom ‘Trend Variables’ section of the form allows the user to configure each individual variable for trending. Variables are divided up according to the axis with which they are associated. Several columns are provided to configure each variable:
Like the trend axis parameter, the parameters for a given trend variable can be modified in one of two methods. First, the user can highlight the desired variable and single-left-click on the parameter to be modified; within a few moments the field will become editable and the user can make the appropriate selection. Alternatively, once highlighting the desired axis the user can right click anywhere on the variable entry to display a popup menu of options. This menu contains several commands to edit the various variable properties. This popup menu also presents commands to insert, delete, copy, and paste a variable or group of variables.
When editing the Source for a given variable, the user may either simply type in the appropriate source or alternatively click on the asterisk (*) to bring up the Select Trend Source dialog. This dialog allows the user to select from the available trend sources. It is described in detail in the TrendSrcSelect [LINK] section of this manual.
Similarly, when editing the Variable name for a given variable, the user may either simply type in the appropriate name or alternatively click on the asterisk (*) to bring up the Data Dictionary dialog. This dialog allows the user to browse through the available data dictionaries to find the appropriate variable in the desired source. It is described in detail in the Data Dictionary section of this manual. Note that if the data dictionary is used to select a variable, and a variable is chosen from a data dictionary that is different from the currently selected trend source, the trend source for the current variable will be updated to the new source accordingly.
Finally, there are several buttons in the lower right corner of the Trend Setup form.
|
...
Expand | ||
---|---|---|
| ||
The TPRI.TrendCom object is responsible for automating communications for all trends on a screen. On initialization it searches for any TrendCtrl objects on the screen and begins to request data on their behalf from the host system. As responses are received, the TrendCom object feeds the data back to the appropriate TPRI.TrendCtrl [LINK] objects. |
Expand | ||
---|---|---|
| ||
In most cases, all operation of the TPRI.TrendCom object is fully automated by the https://teleprodocs.atlassian.net/wiki/spaces/Tsentry/pages/2755198999/Screen+Development+Libraries#TPRI.BaseScreen [LINK] TPRI.BaseScreen framework. While connected to the data host, the TrendCom object will display green and indicate the date/time of the most recent trend data response from the host. Before the initial connection and any time the TrendCom object disconnects from the host, the display will turn orange and will indicate the date/time of the most recent connection attempt; the TrendCom object should attempt to reconnect every 3-5 seconds. Finally, there are three cases in which the TrendCom object will turn red: If the TrendCom object has not been supplied a hostName to which it should connect, the object will turn red and display a message indicating that there is no host specified. If the TrendCom object is unable to find any TrendCtrl objects on the screen or none of the TrendCtrl object specify any variables to be trended, the object will turn red and display a message indicating that there are no trend items configured. If the TrendCom object encounters an unrecoverable error the object will turn red and display an error indication. |
...
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
The TPRI.TriggerEd object acts purely as a run-time user interface for interacting with the historical trend system. The buttons along the top row of the screen allow the user to create a New trigger definition, Load an existing trigger, Save the current trigger, Activate the current trigger, or Deactivate the current trigger. Below the row of buttons are a set of fields to configure general information about the trigger.
Below the general information fields are two columns of variables. The left column of Trigger Variables allows for specification of all variables that define the trigger. Each line in this list defines a Boolean operation; the trigger is considered active when every one of these operations is satisfied. Each operation is defined by a variable name, a comparison operator and comparison value selected; hence the operation is considered true when the associated variable on the host system meets the specified criterion. In order to facilitate variable selection, each of the variable name entry fields are TPRI.DDVarSelect [LINK] objects; clicking on the '*' in the upper right hand corner of the text box will load the data dictionary browser form. The right column of variables, the Trend Variables, specifies each of the variables that should be recorded while the trigger is considered active. Like the Trigger Variable names, the data dictionary browser can be loaded by pressing the '*' in the upper right hand corner of any of the Trend Variable entry text boxes. |
...