> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-supervisor/administration.md).

# Set up Supervisor for your operators

For DATRAN administrators: set which Supervisor buttons each security level gets, change alarm colours, open screens from a command line, filter lists, and auto log off.

{% hint style="info" %}
**Applies to:** DATRAN Supervisor V3.6x with DATRAN VI V6.75 or later. For administrators.
{% endhint %}

## Choose which buttons each operator gets

The buttons can be configured to be displayed for operators that have a certain level of security (the operator's **Remote Group**). The default properties for the buttons are set to start at 9999 and stop at 9999. In other words, unless you specify a lower level of security, by default the buttons will only display for an operator with the highest level of security.

1. Log on as an operator with the highest security level (highest **Remote Group** value) e.g. 9999.
2. The buttons can be configured for all operators via the **DATRAN Explorer** pane. Right click on the server node and select **Edit Buttons...**.
3. Select from one of the options in the combo box or change the value directly in the cell. Click **OK**.
4. After clicking OK, the DATRAN VI TCP Server will be restarted. DATRAN Supervisor will be disconnected for a few seconds and will automatically re-establish connection.
5. If you change the configuration of the buttons, you must restart all DATRAN Supervisors currently connected to the TCP Server for the change to have an effect.

**Example:** suppose you have two operators, one with Remote Group = 9000 and one with Remote Group = 2000. The operator at 2000 can only see the Current Alarms screen and acknowledge multiple alarms but not acknowledge all alarms. Also, they must put in some notes whenever they acknowledge any of the alarms. So we edit the buttons so they are:

| Button              | Levels       |
| ------------------- | ------------ |
| Open Current Alarms | 0 to 9999    |
| All other screens   | 2001 to 9999 |
| Mandatory Notes     | 0 to 8999    |
| Acknowledge All     | 9000 to 9999 |

From V3.64, new security levels were added into the TCP Server properties: **Alarm Suspend** Start/Stop. This gives administrators the ability to allow specific operators to Suspend an alarm but not Disable or Enable.

## Alarm colours (renderings)

Renderings are under **\<Computer Name>\Applications\TCP Server\Renderings** in DATRAN Browser. From V3.62, the ability to vary colour/rendering of alarm by alarm class was added.

### Add a rendering

1. Start DATRAN Browser and go to **\<Computer Name>\Applications\TCP Server\Renderings**. If the **Renderings** node is not there, insert one.
2. Right click on the **Renderings** node and select **New Rendering**. Provide a name for the rendering and click the **OK** button.
3. Double click on the newly created rendering node. Use the **Rendering Back** combo box to change the colour of the background. Use the **Rendering Fore** combo box to change the colour of the foreground (text).
4. Apply the rendering by clicking on the **Apply Rendering** button.

The following are the colours that are recognised in alphabetical order: Black, Blue, Brown, Cyan, Dark Blue, Dark Cyan, Dark Green, Dark Grey, Dark Magenta, Dark Red, Dark Yellow, Green, Grey, Light Blue, Light Cyan, Light Green, Light Magenta, Light Yellow, Magenta, Orange, Pink, Red, White, Yellow.

If the TBD file is an existing TBD file which belongs to a DATRAN system that has DATRAN Console installed previously, go to **\System Scripts\Remote Table Manager\Tables\Rendering\\*****Remote\_Table*****\Rows**, copy one of the renderings/nodes under Rows, and paste into the **Renderings** node. Repeat for the other renderings that you require. You might need to restart TCP Server for the renderings to be recognised.

### Colour of acknowledged alarms

Alarm Acknowledgments are displayed as Yellow by default in version 3.65 or later. Changes to the default rendering colour are made in the DATRAN TCP Server node. Under the **\<SERVER NAME>\Applications\TCP Server\Renderings** node create the new rendering with the name `AlmAck`. Choose the new colours and click apply rendering then ok. To activate the change restart the DATRAN TCP Server service.

## Open screens from a command line

To start DATRAN Supervisor and automatically open a few particular screens, e.g. if you are starting DATRAN Supervisor from QTech Data Systems DATRANVue, Wonderware InTouch WindowViewer or Intellution iFIX, use the following command line, followed by the screen names:

```
"C:\Program Files\QTech\DATRAN Supervisor\QTechDataSystems.DatranVI.Supervisor.exe" "Current Alarms"
```

| Argument                                                  | Opens                 |
| --------------------------------------------------------- | --------------------- |
| `"Current Alarms"`                                        | Current Alarms        |
| `"Alarm Enable"`                                          | Alarm Enable          |
| `"Alarm History"` or `"Historical Alarms"`                | Alarm History         |
| `"Custom Alarms" "<annunciator name>" "<window caption>"` | A custom alarm screen |
| `"Event History"` or `"Events History"`                   | Events History        |
| `"Site List"`                                             | Site List             |
| `Site "<site name>"`                                      | That site's screen    |
| `"Channel List"`                                          | Channel List          |
| `"Operator List"`, `"Operator Roster"`                    | Operator screens      |
| `"Sent SMS Messages"` or `"Sent Text Messages"`           | Sent SMS Messages     |

You can list several screens; they open in the order listed. The installation allows you to change where DATRAN Supervisor will be installed.

### Open Current Alarms with a filter

From V3.62, command line arguments allow you to filter screens. To start DATRAN Supervisor with the "Current Alarms" screen and filters, type:

```
"Current Alarms" "filter:Alarm Class:=:Data Alarm:AND;Description:Like:*ASH*"
```

In this case: `filter` is the name of the command line argument; `Alarm Class` is a \[Column] in a Current Alarms table; `=` is a \[Condition]; `Data Alarm` is a \[Value] you need to filter; `AND`/empty is the \[parameter] needed if you wish to use more than one criteria. All values in one criterion must be separated by a colon \[:]. Each criterion needs to be separated by a semicolon \[;].

## Filter a list

1. Left click on the **Filter** button at the bottom status bar of the screen.
2. Right click on the Filter grid which is usually located at the bottom left corner of the screen. Select **Insert Criteria** to add a criteria into the Filter grid.
3. Select one of the columns listed in the **Column** combo box and one of the operators listed in the **Operator** combo box. Double click the **Value** text box to change the text inside it.
4. Click on the **Apply Filter** button or press the keys Ctrl+F. Remove the filter by clicking on the **Remove Filter** button or press the keys Ctrl+R.

| Operator             | Means                                                                                                                                                                                                                                                  |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `=`, `<>`            | `=` Equals to is used by strings and numerals. `<>` Not equal to                                                                                                                                                                                       |
| `<`, `<=`, `>`, `>=` | `<` Less than. `<=` Less than or equal to. `>` More than. `>=` More than or equal to                                                                                                                                                                   |
| Like, Not Like       | Like - Used only for strings. Use the \* wild card character e.g. N\* for any strings that starts with the letter 'N'. Not Like - Used only for strings. Use the \* wild card character e.g. N\* for any strings that do not start with the letter 'N' |
| Blank, Not Blank     | Blank - Meaning the value does not exist. Not Blank - Meaning the value does exist                                                                                                                                                                     |

DATRAN Supervisor remembers the criteria that you used from a previous session. From V3.63: Get Top 100 sites, alarms, etc. just like in SQL Server Management Studio 2008.

## Other settings

* **Date and time format:** click on the **Properties** tab, click on the text box right of **Date and Time Format:** and change the format within, then click on the **Change** button to apply the new format.
* **Auto log off:** the Auto Log off option was added in V3.62. From V3.65, the Logon screen is brought to the front of Supervisor to make it clearer a logon is needed for a new session.
* **Prevent accidental closing of Supervisor:** administration level users can stop lower access users being able to close Supervisor and lose the visual indication of alarms.
* **Migrating from DATRAN Console:** there are at most three steps: set up the TCP Server to display the buttons in DATRAN Supervisor; get the TBD file to show the Site List screen's DLP column values (no change is required with the TBD file); set up the TCP Server to know about the custom renderings (only relevant if your DATRAN Console has been set up with custom renderings before).
