Developer walk-through for the "rt_functional-global-variable" LabVIEW project available for download at https://learn-cf.ni.com/teach/riodevguide/code/rt_functional-global-variable.html that covers this topic: "Use a functional global variable (FGV) to communicate between two parallel process loops contained within different VIs under the same target, and use a FGV to stop parallel loops with one "stop" button. The "functional" nature of the FGV means that you can create additional functionality beyond that of a basic global variable, e.g., counting and calculations that operate on the stored value."
See the "RIO Developer Essentials Guide for Academia" available at https://learn-cf.ni.com/teach/riodevguide for more video tutorials related to programming, architecting, and networking with LabVIEW and NI Academic RIO products.