# Predefined Variables

There are certain variable structures in **FileGlobals** and **StationGlobals**, which need to be present for a LTT testplan to work properly. A LTT testplan need to have an item named **LTT** and of type **LTT\_Client\_Data** placed in its FileGlobals.

![FileGlobals](/files/XWFZEn17R3t5hKwMQ3TO)

The `FileGlobals.LTT.CFG` container contains variables representing the current test configuration. Those variables are automatically filled at start.

**TestStation, DutName, DutType, Group, OrderName, QualName**

Those variables are filled with the data entered in [F11 dialog](/ltt/documentation/ltt-gui-manual/lttgui/dialogs/f11testconfiguration.md) of LTT GUI.

**BasePath**

Path to the directory where your LTT sequence file is located.

**PS\_Index, PS\_Indizes, TS\_Index, TS\_Indizes**

A DUT belongs to a [test group](/ltt/documentation/ltt-gui-manual/lttgui/dialogs/f3projectwizard/testgroupsconfiguration.md) and a test group can have one or more power supplies and temperature sensors assigned. The *X\_Index* variable holds the **zero based (!)** index of the assigned power supply/temperature sensor, whereas the *X\_Indizes* array holds all assigned indexes. You rarely need to use those since the assigned PS and TS are automatically controlled and usually do not need your further assistance.

![FileGlobals CFG](/files/npVwZ1OCcWj26yQt8Y4M)

The `FileGlobals.LTT.RV` container contains variables representing various runtime values which get updated frequently during testplan execution.

**Runtime, Cycles**

The current runtime of this test in seconds. The current [cycles](/ltt/documentation/ltt-gui-manual/teststand/customsteptypes/cyclestartend.md) of this test.

**OpModeSeq, OpMode**

The currently executing operation mode. Note that the variable *OpModeSeq* holds the exact sequence name, whereas the variable *OpMode* holds the name of the operation mode (without the sequence prefix).

**HW**

`FileGlobals.LTT.RV.HW` contains voltages and currents of all configured power supplies as well as the temperatures of all configured temperature sensors. Use the `FileGlobals.LTT.CFG.XX_Index` variables to determine which PS/TS is relevant for that particular DUT.

**HW\.TCC**

The current TCC value. Please note that this value is not [masked](/ltt/documentation/ltt-gui-manual/lttgui/dialogs/f3projectwizard/testgroupsconfiguration.md). It represents the value of all 8 bits of the TCC input.

![FileGlobals RV](/files/DVfa3OqNlkxIHHMwHYSv)

A LTT testplan need to have an item named **LTT** and of type **LTT\_Global\_Settings** placed in its StationGlobals.

![StationGlobals](/files/KfV2OH0eYumusdaPAHes)

The `StationGlobals.LTT` container is mainly used for internal parameters which you do not need to know or modify, nor should you. An exception is the `StationGlobals.LTT.MESSY` container. In that you will find some variables of relevance.

| Variable     | Description                                                                                                                                                                                                                                                               |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ENABLED      | If false no MesSy setup is performed in LTT process model. This can be used to run a LTT testplan without MesSy. Be aware that if you have MesSy API calls in your testplan those will fail. You can, however, check this variable as a precondition in every MesSy step. |
| ERR\_TOL\_MS | TODO: description. (for MesSy V1 compatibility)                                                                                                                                                                                                                           |
| TIMEOUT\_S   | MesSy communication timeout.                                                                                                                                                                                                                                              |
| VERSION      | MesSy version: 1 or 2. This is set by GUI!                                                                                                                                                                                                                                |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.irs.systems/ltt/documentation/ltt-gui-manual/teststand/predefinedvariables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
