Global Variable Manager

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Start the Feature

You can use the following methods to open the global variable management window:

  • In the parameter configuration panel of the Global Variables Step, click the Open the editor button to open the global variable management window.

  • Select Toolbox  Global Variable Management in the menu bar to open the global variable management window.

Interface Description

global variable management

The fields in this tool are described as follows:

Field Description

No.

The numeric ID of the global variable.

Variable name

The unique identifier of the global variable.

Comment

The comment set for the global variable.

Mode

Defines how data is stored in and retrieved from the variable.

  • Single result: The variable always holds only the latest recent result. New data overwrites the old one. The data in the variable can be retrieved multiple times.

  • Queue: The variable can store up to 10 results in the order they are saved. Each retrieval returns the earliest result and removes it from the variable (first in, first out).

Data type

The type of data stored in the variable. Select matches the data flow, String, Number, String [], Number [], or manually input the data type.

Initial value

The initial value set for global variables.

Initial values can be set only for global variables in the single result mode, and the data type of each global variable must be String or Number.

Current value

Displays the current value of the global variable. If the mode of the global variable is Queue, the current value displays the first result in the queue.

If the data type of the global variable is String or Number, change the current value manually.

Binding parameters

Step parameters that are bound to global variables in the current solution. The values of these parameters stay synchronized with the value of the global variable.

Step parameters can be bound only to global variables in single result mode, and the data type of each global variable must be String or Number, with support for any data dimension.

Communication

Select whether to allow an external device to set and read global variable values using commands after communication with the Mech-Vision is established.

Communication can only be enabled for global variables of type String and Number.

Common Operations

Add Global Variables

Click the Add a variable button in the upper right corner of the window to add a new global variable.

Delete Global Variables

Click the delete icon delete icon of each line to delete the corresponding global variable.

Clear Global Variables

In the Mode column, click the clear icon clear icon to erase the data stored in the corresponding variable.

Change Variable Order and Reset Variable IDs

You can change the order of variables first, and then reset all variable IDs with one click:

  • Change the order of variables: Click the move move icon icon on the left of each ID and drag it up and down to change the order.

  • Reset variable IDs: Click Reset variable IDs to renumber all global variables with one click.

Bind Parameters to Global Variables

Click the setting icon setting icon in the Bound Parameter column, and select the parameter to bind to the corresponding global variable in the pop-up window.

To unbundle parameters, perform the following operations:

  • To unlink a single parameter from a global variable: Clear the corresponding parameter in this window.

  • Unbind all parameters from global variables: Click the clear icon in the Bound Parameters column clear icon to unbind all parameters with one click.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.