LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spreadsheet string to array function - what am I doing wrong?

Solved!
Go to solution

How are you presenting those values to the user so they can choose one?  Why not use a Menu Ring control?  

aputman
0 Kudos
Message 11 of 15
(2,006 Views)

The menu ring control is going to be in the main VI, this is merely a sub VI with corresponding value at a designated "spot" that can be recalled when actions in the main VI are taken.

 

The reason why I'm creating a sub VI for such simple code is due to it needing to be repeated 4 times.

0 Kudos
Message 12 of 15
(2,002 Views)
Solution
Accepted by Caleb963

@Caleb963 wrote:

 

The reason why I'm creating a sub VI for such simple code is due to it needing to be repeated 4 times.


Perfect.  You might want to do a search for Functional Global Variable (FGV).  It's basically a way to store a value in an uninitialized shift register that can then be recalled later in other locations.  

aputman
Message 13 of 15
(1,990 Views)

A Labview global variable could also be a good solution here if it is a "write once, read many" situation.  The problem with Labview globals happens when you are writing to them from many different locations and the value you expect to be in the global variable is sometimes not what you expect.  Very difficult to debug in large applications.  

aputman
Message 14 of 15
(1,981 Views)

I agree with aputman, if it is "write once read many" than a global variable is good solution. Global variables are useful, and this is a useful case for one.

 

mcduff

Message 15 of 15
(1,973 Views)