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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Global variable ref generatning script

Solved!
Go to solution

Hi all!

I want to create a script for:
-create a new vi (its OK)

-create global variable reference for an exist vi-s global variable. - i need help with this.

 

I think i need to load the global_variables_vi to the new vi and check for variables and then create them.

pls help

Download All
0 Kudos
Message 1 of 4
(2,834 Views)
Solution
Accepted by topic author mogergog

Instead of specifying the style (Global Variable), specify the path to the globa. VI.

 

Create Global.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 4
(2,781 Views)

Thanks! Its working fine! 🙂 
One more problem:
I have more than one global variable. Can i select it by index or something?

0 Kudos
Message 3 of 4
(2,757 Views)

Ok founded.With Property Node and Control Name.

 

0 Kudos
Message 4 of 4
(2,747 Views)