LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read label subvi

Hello,

 

im trying to read the label of a subvi.

I created a subvi, lets call it example.vi. When i add this subvi it shows its label over the icon.

When i now double click this text, i can change it to, ... test1.

And this is what i need as a string variable, this labeltext.

Is it possible to "read" this text inside the subvi?

 

Thank for your help

 

kr

Luke

0 Kudos
Message 1 of 13
(3,179 Views)

@Lukestar wrote:

Hello,

 

im trying to read the label of a subvi.

I created a subvi, lets call it example.vi. When i add this subvi it shows its label over the icon.

When i now double click this text, i can change it to, ... test1.

And this is what i need as a string variable, this labeltext.

Is it possible to "read" this text inside the subvi?

 

Thank for your help

 

kr

Luke


Have you tried using a property node?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 13
(3,175 Views)

Hey Bill,

 

yes i tried the propertynode but i can only find the option to read the vi name (example.vi) not the specific name i gave the subvi 

after addig it to my program

 

br

 

Luke

0 Kudos
Message 3 of 13
(3,171 Views)

@Lukestar wrote:

Hey Bill,

 

yes i tried the propertynode but i can only find the option to read the vi name (example.vi) not the specific name i gave the subvi 

after addig it to my program

 

br

 

Luke


I'm sorry - I completely misread your first post.  Let me go back and take another look at this issue...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 13
(3,160 Views)

Hey Bill,

 

no problem 😄

 

there could be an alternative solution:

when i could add a textfield (string) to the subvi, which i can read inside the subvi. 

 

i will test this now ...

 

br

Luke

 

0 Kudos
Message 5 of 13
(3,151 Views)

I have to admit I've never thought about doing this before.  I thought you were refering to the label of an object inside the subVI, not the label of the subVI object on the main BD.  Hmmmm, it's not obvious to me.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 6 of 13
(3,150 Views)

The obvious alternative is to just pass the string into the subVI.  This would require adding another input the the subVI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 13
(3,139 Views)

Is the subvi reentrant?

Message 8 of 13
(3,110 Views)

Hey,

 

sorry I am from Germany and I use a german version of LV.

I tried to translate "reentrant" with dict.leo but I could not find a translation whit that I could

give you the information.

 

can you describe what you mean.

 

br

Luke

0 Kudos
Message 9 of 13
(3,096 Views)

Hallo Luke,

 

"reentrant" heißt in der deutschen Version "ablaufinvariant" (VI-Eigenschaften -> Ausführung).

(Falls es für dich einfacher ist: es gibt auch das deutschsprachige www.LabVIEWforum.de !)

 

Why do you need that label inside the subVI at all? When you need that label as a parameter inside the subVI you should make it a regular input to the subVI (as has been suggested before)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 13
(3,087 Views)