Skip to content

This repo contains the documentation for an application for editing and managing the settings and events in the database. This repo was migrated from the one in tekniker's GitLab, the url is: https://gitlab.tekniker.es/publico/3151-lsst/documentation/maintenancedocuments/settings-database-editor

Notifications You must be signed in to change notification settings

lsst-ts/ts_tma_tma-documentation_maintenance-documents_settings-database-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Settings Database Editor

Requested by: AURA
Doc. Code
Editor: Julen Garcia
Approved by: -

Index

Introduction

This document contains the documentation for the SettingsDatabaseEditor application. This application can be used to modify, create or remove settings in the database, as well as events, therefore, this application can be used only by maintenance level users.

IMPORTANT: modifying, creating or removing either settings or events could affect the performance of the system. Therefore a good understanding of the code is needed before changing anything using this low level configuration tool.

Application location and launch

The application is installed in the MCC, the server that runs both the EUI and the database itself. This application can be found at /usr/local/TMA_SettingsDatabaseEditor and is called SettingsDatabaseEditor.

Once the application is launched the first window looks like the following image, just wait until the user is requested.

Application start window

Only if the application fails for not finding the users definition file, press the button that says: Press here to choose user configuration file path...

If everything goes as expected, a user and password are requested, see image below. To manage the database the logged in user must be a user with M_Maintenance privileges.

User log in window

If the provided user is not a M_Maintenance user the application will return an error pop-up.

Once the user is entered correctly the settings and events management window is displayed, see image below.

Database Editor Main window

Application usage

The application has 5 tabs, this means 5 different sections for different actions, these actions are explained in independent sections below.

Database Editor Main window with tabs selected

Settings tab

This is the default tab and is launched first by default, here settings can be modified, created or removed.

Database Editor Main window with A and B sections selected

Modifying existing setting

  • Select the desired setting from the Setting list on the right, this will load the related information on the left:

    • Name: this is the setting name.
    • Unit: for specifying units, when needed.
    • Description: this is displayed in the EUI to help the users understand the settings purpose.
    • Visible: this is a true/false switch, for making these restricted or not.
      • Visible = true -> this setting is visible to all users.
      • Visible = false -> this setting is visible to high privilege users only, M_Maintenance users.
    • Type: this is an enum with three options, depending on the selected type, the controls below, in sections A and B fom the image above, will change accordingly.
      • Double: for double float settings.
        • Numeric: this is the value of the setting, this updates the saved value of the setting.
        • Validate: this is a true/false switch, when on the value entered in the EUI for the setting must be in between the provided range by Lower Limit and Upper Limit.
      • Boolean: for true/false settings
        • Boolean: this is a true/false switch for the setting value, this updates the saved value of the setting.
      • String: for string settings
        • String: this is a string control for the setting value, this updates the saved value of the setting.
    • Statechart: this is an enum defined in the Statecharts tab and related to the code in the PXIs, as each statechart is a different code module in the PXI code.
    • Instance: this is an enum defined in the Instances tab and related to the code in the PXIs, each instance is an instance of the related statechart code module.
  • Once the left part is updated to the desired values press the Edit button on the right.

    Edit button selected

  • If more than one setting is going to be modified, repeat the first two steps.

  • When all the settings are modified press the Save button, top right of the application.

    Save changes selected

Create new setting

  • Fill all the fields needed from the left

  • Once the left part is updated to the desired values press the Create button on the right.

    Create setting selected

  • This will create the new setting

  • If more than one setting is going to be created, repeat the first two steps.

  • When all the settings are created press the Save button, top right of the application.

    Save changes selected

Remove existing setting

  • Select the desired setting from the Setting list on the right.

  • Press the Delete button on the right.

    Delete setting selected

  • If more than one setting is going to be removed, repeat the first two steps.

  • When all the settings are modified press the Save button, top right of the application.

    Save changes selected

Events

Here the events managed by the event system can be modified, created or removed.

Events tab

Modifying existing event

  • Select the desired event from the Event list on the right, this will load the related information on the left:

    • Name: this is the event name.
    • Area: this is for tracing the event, it must contain a number from the same series of the commands, then dot (.) and then the abbreviation for the subsystem.
    • Description: this is the explanation of the event that will be displayed in the EUI when tripped.
    • Type Event: this is an enum with two options, this updates the section below according to the selected type.
      • Boolean: for evaluation strings that result in a boolean true/false outcome.
        • Evaluation String: this is the evaluation string, that admits names from the related settings for the subsystem, when setting names are detected are painted red, and names that are provided in the code when sending the data to the event system are black.
        • Type DBL/Boolean: this is the type of checking done with the outcome of the evaluation string and compared to the BOOL Ref value. This is an enum with three values: EQUAL, CROSSING FROM, CROSSING TO.
        • BOOL Ref: this is the value that is compared to the outcome of the evaluation string depending on the type.
      • Double: for evaluation strings that result in a double numeric outcome.
        • Evaluation String: this is the evaluation string, that admits names from the related settings for the subsystem, when setting names are detected are painted red, and names that are provided in the code when sending the data to the event system are black.
        • Type DBL/Boolean: this is the type of checking done with the outcome of the evaluation string and compared to the DBL Ref value. This is an enum with four values: HIGHER, LOWER, EQUAL, NOT EQUAL.
        • DBL Ref: this is the value that is compared to the outcome of the evaluation string depending on the type.
        • Deadband: this is the deadband for the comparison when using the EQUAL or NOT EQUAL options from the Type DBL/Boolean enum. For example for a DBL ref value of 0, a type DBL of EQUAL and a deadband of 1 would mean that values between -1 and 1 will trip the event.
        • Hysteresis: this is the hysteresis for the comparison when using the HIGHER or LOWER options from the Type DBL/Boolean enum. For example for a DBL ref value of 0, a type DBL of HIGHER and a hysteresis of 1 would mean that values above 0 trip the event, but they must be below -1 to deactivate the event.
    • Eventsystem: this is an enum defined in the Event Systems tab and related to the code in the PXIs, as each eventsystem is related to a different code module in the PXI code.
  • Once the left part is updated to the desired values press the Edit button on the right.

    Edit button selected

  • If more than one event is going to be modified, repeat the first two steps.

  • When all the events are modified press the Save button, top right of the application.

    Save changes selected

Create new event

  • Fill all the fields needed from the left

  • Once the left part is updated to the desired values press the Create button on the right.

    Create event selected

  • This will create the new event

  • If more than one event is going to be created, repeat the first two steps.

  • When all the events are created press the Save button, top right of the application.

    Save changes selected

Remove existing event

  • Select the desired event from the Event list on the right.

  • Press the Delete button on the right.

    Delete event selected

  • If more than one event is going to be removed, repeat the first two steps.

  • When all the events are modified press the Save button, top right of the application.

    Save changes selected

Statecharts

Here the statecharts that are going to be available for the settings are managed, created, modified and deleted.

Statechart tab

Modifying existing statechart

  • Select the desired statechart from the Statechart list on the right, this will load the related information on the left:

    • Name: this is the statechart name.
  • Once the left part is updated, the name is changed, press the Edit button on the right.

    Edit button selected

  • If more than one statechart is going to be modified, repeat the first two steps.

  • When all the statecharts are modified press the Save button, top right of the application.

    Save changes selected

Create new statechart

  • Add the name for the statechart.

  • Press the Create button on the right.

    Create statechart selected

  • This will create the new statechart.

  • If more than one statechart is going to be created, repeat the first two steps.

  • When all the statecharts are created press the Save button, top right of the application.

    Save changes selected

Remove existing statechart

Note that deleting a statechart causes all currently assigned instances and settings to be deleted. Event systems assigned to the related instances are not affected.

  • Select the desired statechart from the Statechart list on the right.

  • Press the Delete button on the right.

    Delete statechart selected

  • If more than one statechart is going to be removed, repeat the first two steps.

  • When all the statecharts are modified press the Save button, top right of the application.

    Save changes selected

Instances

Here the instances that are going to be available for the settings are managed, created, modified and deleted.

Statechart tab

Modifying existing instance

  • Select the desired instance from the Instance list on the right, this will load the related information on the left:

    • Name: this is the instance name.
    • Statechart: this is an enum defined in the Statecharts tab and related to the code in the PXIs, as each statechart is a different code module in the PXI code.
  • Once the left part is updated, the name is changed, press the Edit button on the right.

    Edit button selected

  • If more than one instance is going to be modified, repeat the first two steps.

  • When all the instances are modified press the Save button, top right of the application.

    Save changes selected

Create new instance

  • Add the name for the instance.

  • Select the related statechart.

  • Press the Create button on the right.

    Create statechart selected

  • This will create the new instance.

  • If more than one instance is going to be created, repeat the first two steps.

  • When all the instances are created press the Save button, top right of the application.

    Save changes selected

Remove existing instance

Note that deleting an instance causes all currently assigned settings to be deleted. Event systems assigned to the related instances are not affected.

  • Select the desired instance from the Instance list on the right.

  • Press the Delete button on the right.

    Delete instance selected

  • If more than one instance is going to be removed, repeat the first two steps.

  • When all the instance are modified press the Save button, top right of the application.

    Save changes selected

Event systems

Here the event systems that are going to be available are managed, created, modified and deleted.

Event system tab

Modifying existing event system

  • Select the desired event system from the Eventsystem list on the right, this will load the related information on the left:

    • Name: this is the event system name.
    • Statechart: this is an enum defined in the Statecharts tab and related to the code in the PXIs, as each statechart is a different code module in the PXI code.
    • Instances: this is an enum with the instances defined in the Instances tab, here select the instances that will be related linked to the event system.
  • Once the left part is updated, the name is changed, press the Edit button on the right.

    Edit button selected

  • If more than one event system is going to be modified, repeat the first two steps.

  • When all the event systems are modified press the Save button, top right of the application.

    Save changes selected

Create new event system

  • Add the name for the event system.

  • Select the related statechart.

  • Select the instances that will be related linked to the event system.

  • Press the Create button on the right.

    Create event system selected

  • This will create the new event system.

  • If more than one event system is going to be created, repeat the first two steps.

  • When all the event systems are created press the Save button, top right of the application.

    Save changes selected

Remove existing event system

  • Select the desired event system from the Eventsystem list on the right.

  • Press the Delete button on the right.

    Delete event system selected

  • If more than one event system is going to be removed, repeat the first two steps.

  • When all the event systems are modified press the Save button, top right of the application.

    Save changes selected

About

This repo contains the documentation for an application for editing and managing the settings and events in the database. This repo was migrated from the one in tekniker's GitLab, the url is: https://gitlab.tekniker.es/publico/3151-lsst/documentation/maintenancedocuments/settings-database-editor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published