Understand Control Flow in Mech-MSR Projects

You are currently viewing the documentation for the latest version (2.1.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

What Is Control Flow?

In a Mech-MSR project, Steps are connected from top to bottom, and during execution, data flows sequentially from the first Step to the last, forming a complete vision processing workflow. In most cases, a project contains only one workflow. However, the software also supports configuring multiple workflows within a single project. One workflow can trigger the execution of another via control flow.

For example, in the figure below, when Step 2 is executed, it triggers the control flow to run Workflow A→B.

If a project contains multiple workflows, control flow must be configured; otherwise, the project cannot run.
control flow demo

How to Configure Control Flow?

In the graphical programming workspace of the home interface, when a Step is selected, you will see connection points on both sides of the Step card. These are used to define control flows. The right-side point of the Step card is the starting point of the control flow. The left-side point of another Step card is the receiving point. Connect the points as needed to form a control flow.

form control flow

Configuring control flows between Steps in the same workflow is allowed, but this operation will disable the sub-workflow starting from the Step receiving the control flow. In this case, any control flow-related parameters under Execution Flags will become invalid.

invalid sub process

Trigger Control Flow Given Output / Given No Output

When running a project, you can configure relevant settings to trigger other workflows to run, regardless of whether the Step that initiates the control flow produces any output.

In the graphical programming workspace of the home interface, select the Step and expand Execution Flags in the parameter configuration panel. There, you can choose either Trigger Control Flow Given No Output or Trigger Control Flow Given Output to define the desired behavior.

enable control flow

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.