LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to rescope global variables on a per-instance basis?

Solved!
Go to solution

I have an inherited app that unforutnatly makes lots of use of global variables (not the functional kind).  If we want to run two instances of the top-level VI simultaneously without having the global variables collide with each other, what is the least painful way to accomplish this *without* having to build it into an exe?


0 Kudos
Message 1 of 3
(1,863 Views)
Solution
Accepted by SeanDonner

I'm not sure if it'll work or not, but what would happen if you ran the VIs in two different projects?   I might have to try that when I manage to find some free time.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(1,862 Views)

@crossrulz wrote:

I'm not sure if it'll work or not, but what would happen if you ran the VIs in two different projects?   I might have to try that when I manage to find some free time.


 

And when you do, I suspect you will find you are correct.

 

 

Spoiler

Not that I know from experience seeing I never use those thingies.

 

 

 Smiley Wink

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(1,858 Views)