Example Code

Create Multiple VIs in Parallel

Code and Documents

Attachment

Overview

An operator may be required to interact with (for example) an unknown number of test stations. Calling VIs instances in parallel allows for this uncertainty and reduces the code required.

In this example, a simple VI is called and placed in a subpanel where the operator can interact with it, index controls allow the operator to move between running VIs.

When the main VI is stopped, all clone VIs are stopped and their references closed.

Description

A QMH design is used to interact with an array of open VI references which the user can index between. Interaction with the spawned VIs can be performed through the subpanel.

Steps to Implement or Execute Code

  1. Open project --> Run Main.vi

Requirements

LabVIEW 2014 SP1

Additional Images or Video



Ingram | CLA

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors