‎08-29-2013 12:08 PM
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
‎08-29-2013 12:21 PM
@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?
‎08-29-2013 12:27 PM
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
‎08-29-2013 01:07 PM
@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...
‎08-29-2013 01:14 PM
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
‎08-29-2013 01:15 PM
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.
‎08-29-2013 01:56 PM
The obvious alternative is to just pass the string into the subVI. This would require adding another input the the subVI.
‎08-29-2013 07:10 PM
Is the subvi reentrant?
‎08-30-2013 03:22 AM
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
‎08-30-2013 03:58 AM - edited ‎08-30-2013 04:02 AM
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)!