From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Creating Asynchronous "Clones" that Employ LabVIEW Channels

Code and Documents

Attachment

I'm an enthusiastic Early Adopter of the new LabVIEW Channels (a.k.a. "Channel Wires"), the Big New Feature of LabVIEW 2016.  One restriction of Channels is that they can not be passed into or out of sub-VIs called as part of a Start Asynchronous Call.  While the workaround for single loops is to just place the sub-VI on the caller's Block Diagram, if you need to spawn multiple "Clones" whose number is determined at Run Time, this is a problem.

The attached Zip File contains a demonstration Channel Clones Project, along with an eight-page Document describing the Project and how nicely it works.  Enjoy.

Bob Schor

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

Contributors