LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove VI Dependency

Hi there,
 
I am developing a Labview application for an RF testing with Labview 7.1. In the process, I have copied my VIs from my C drive to a shared drive. When I save my global variables in the new folder, the application works fine but when I close and reopen my application, the new values in the global variables are not retained. I am trying to find a way of disconnecting the new VI in the new folder from the previous VIs in my C drive. I remember when a VI is copied from one location to another in Labview 7.1, the new VI still retains (or inherits) its values from the main VI from which is was copied. Could you help how I can disconnect this inheritance?
 
Thank you in advance,
 
A novice.
0 Kudos
Message 1 of 4
(2,884 Views)
Do "Make Current Value(s) Default" and save the global.

Now the values should be retained.

Regards,

André
Regards,
André (CLA, CLED)
Message 2 of 4
(2,873 Views)

Thanks,

I have them retain the new values now.

Regards,

A Novice.

0 Kudos
Message 3 of 4
(2,869 Views)
Unless you are using them for a static look-up table, you really should not be using globals.  Due to the inherent parallel nature of LabVIEW code, race conditions are trivial to create when using them.  Debugging race conditions is an exercise in frustration requiring some fairly advanced techniques.

There are several ways to eliminate globals.  First, try just using wires and passing data into and out of your subVIs.  If you really need a reference object, for something like a close flag used by multiple, parallel loops, you can make a "safe" one (implements a mutex-like locking) in a couple of ways.  You can find a tutorial on this subject on this thread - Reference Objects in LabVIEW - LabVIEW 8.5 Update.  There is code there for LabVIEW 7.1 and 8.2.

Let us know if you have further questions.
0 Kudos
Message 4 of 4
(2,842 Views)