LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pushing Control Captions into a subVI

Solved!
Go to solution

Hello everyone!

 

I am using LabVIEW 2015. I am working on a subVI that takes a variable and checks if it's between the upper and lower limits. Yes, I am aware there is a built-in "In Range?" function, and if you look at my VI that is exactly what I use. The difference is that this subVI displays a message to the user indicating it's an invalid input and to what value it was coerced. I'd like to be able to programmatically have the Variable control (whatever I connect to it, anyway) to have its label or caption passed through so that no matter what it's called the message will notify which control was coerced.

 

Any help appreciated!

0 Kudos
Message 1 of 2
(2,786 Views)
Solution
Accepted by topic author 000011101010

You'll have to pass a reference to the variable instead of just the value. Or you could add a String control input that contains the caption text from the input. Either way, you can't get that information from the Variable DBL that you have input because all that is is a numeric value and contains no information about where the DBL came from.

Variable Ref.png

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 2
(2,780 Views)