Engee documentation

Variable window

The Variables window variables article 2 1 is a Engee tool for managing variables. It contains information about the variables created during the workflow.

A Variable is a name associated (linked) to some value. The value is a number, string, matrix, or other data type. Variables in Engee are available on the command line, the script editor, and the Variables window. Variables can also be passed as parameters to blocks in the simulation environment.

To open the variables window, select the variables article 2 1 icon in the top left menu of the Engee workspace. Variables can be created:

  • Via the command line:

    variables article 1

  • Through the script editor. To do this, create a new script (named new in the example), add a code entry area and create variables by clicking on the green Run button variables article 2 1 1.

    variables article 2 1 1

The variables window shows the following columns:

  • Variable Name;

  • Value of the variable;

  • Data type of the variable (class);

  • Variable size.

You can move the columns of the variable window by dragging the header with the mouse. You can also change the width of these columns.

variables article 2 2

A double left-click on a column separator automatically adjusts its width to the longest element:

variables article 2 2 1

You can edit the value of a variable by double-clicking on the name or by invoking the right-click context menu to select Edit Value.

variables article 2 4

To edit a variable name, select the appropriate option from the context menu, either by right-clicking on the variable name or by double-clicking on the variable name:

variables delete 1 1

For more information on allowed variable names, see the article Variables.

You can copy the name or value of a variable by clicking on the name and selecting the Copy function in the context menu.

variables article 2 3

You can clear unnecessary variables by right-clicking and selecting Clear (the delete key is also used). To clear all variables, select the broom icon in the upper right corner.

variables delete 1

The kernel reboot button restarts the Engee kernel. The restart process will take some time and is useful in cases of system overload.

In the Julia programming language you can use not only Latin characters, but also Unicode characters such as \delta. When you enter the \delta character on the command line, pressing the Tab key, you can get the corresponding character, which can be used as a variable name. The resulting character can be copied from the command line and pasted into the script editor for usage.

Variable contents

The value of a variable with the Vector or Matrix data type can be changed in the Vector and Matrix Editor in the Variables window.

For example, put any number in any free cell of a matrix - the matrix will be automatically expanded (filled with zeros) to that cell. Entering a variable in the command line or script editor will show the changed matrix:

variables article 2 6

Adding a string of text to a matrix cell will change its data type to Any, allowing the variable to contain values of any type. You can modify the matrix at any time in the Vector and Matrix Editor.