Engee documentation

Variable Window

The window "Variables» variables article 2 1 — This is an Engee tool designed to manage variables. It contains information about the variables created during the work.

A variable is a name associated with some value. A value is a number, string, matrix, or other data type. Variables in Engee are available in command prompt img 41 1 2, script editor interactive script icon and in the window itself "VariablesVariables can also be passed as parameters of blocks of the simulation environment.

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

  • Via the command line:

    variables article 1 en

  • Through the script editor. To do this, create a new script, 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 en

The variable window contains the following columns:

  • Variable name;

  • Variable value;

  • Variable data type (class);

  • The size of the variable.

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 en

Double-clicking with the left mouse button on the column separator automatically adjusts its width to the longest element:

variables article 2 2 1 en

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

variables article 2 4 en

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

variables delete 1 1 en

For more information about 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 en

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

variables delete 1 en

Button kernel reboot 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 characters from Unicode, for example, \delta. When entering the \delta character in the command line, pressing the Tab it is possible to get the corresponding symbol, which can be used as a variable name. The resulting symbol can be copied from the command line and pasted into the script editor for use.

Contents of variables

The value of a variable with the data type Vector or Matrix can be changed in the Vector and matrix editor in the variables window.

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

variables article 2 6 en

Adding a line with text to a matrix cell will change its data type to Any, which will allow the variable to contain values of any type. You can change the matrix at any time in the Vector and matrix editor.