Use a channel wire to communicate between two (or more) parallel process loops contained within the same VI, and use a channel wire to stop parallel loops with one "stop" button. Requires LabVIEW 2016 or later version.
Communicate data, control, and status between two or more parallel process loops contained within the same VI (“VI-scoped”)
Make the latest value of a variable available to other process loops (tag)
Establish point-to-point lossless communication (stream)
Stop multiple parallel loops from a single control
IMPORTANT: Stream-style channel wire readers do not time out by default and will prevent process loops from stopping even when their “stop” condition is true. Either wire a time-out value to each reader or wire the “stop” condition wire to the “last element? (F)” input of each writer to close the stream.
LabVIEW block diagram elements
Channel wire endpoint writers and readers are subVIs created “on the fly” instead of existing in subpalettes. Simply right-click on an output terminal or wire and select “Create | Channel Writer” (similar to the way you create an indicator); right-click on a channel writer output or channel wire and select “Create | Channel Reader”.
Expect to see a noticeable delay as the subVI is constructed.
Connect your Academic RIO Device to your PC using USBLAN, Ethernet, or Wi-Fi. NOTE: Not all Academic RIO Devices have Ethernet and Wi-Fi connectivity options.
Channel Wires (http://www.ni.com/white-paper/53423/en/)
From the overview: "The channel wire, a new, feature in LabVIEW 2016, simplifies the programming involved in data transfer between parallel loops, such as the common producer/consumer pattern. This white paper provides an introduction to channel wires and highlights specific use cases".