LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using global variable VI files in selection

Hi,

 

I do not know if anyone try this scheme on labview, but I like to ask you anyway.

 

Here is my question.

 

Let say I have multiple .vi files with same set of global variables with different values.

So when I execute the labview program, I will have a option to select one of this .vi global

file, and apply the values I read in from this global file before running my labview application program.

Is this possible thing in Labview?  Do we have any example labview sources?

 

thank you in advance,

 

Do

0 Kudos
Message 1 of 4
(3,040 Views)

Are you truly talking about global variables as in the LabVIEW structure?  If so, you can't programmatically decide which global variable .vi files to use.

 

If you want to change what values you use in a program, you'll need to load them from a file where the program can choose which file to load.  Look at the Config File VI's for ideas.

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

Thank your reply.

As you may guessed, I am not an advanced Labview programmer like you,

so could you provide me with more detail info on how do I look into config VI file?

 

Thanks,

 

Do

0 Kudos
Message 3 of 4
(3,012 Views)
Look in the Example Finder for Read Configuration Settings File and its counterpart Write Configuration Settings File.
0 Kudos
Message 4 of 4
(3,004 Views)