09-12-2014 10:12 AM
Dear all,
i did build a custom subVI. I use it at different places of my main VI and I want to label those identical subVIs according to their different purposes. However, if i try Properties -> Appearence -> Label, the label string is greyed out and I cannot edit it.
Does anyon knows how i can enable this label string? having 10 SubVIs with the same label doesnt make it easier 🙂
Thanks in advance.
best,
luffi
09-12-2014 11:27 AM
Use free labels. If you have 2013 or newer, you can "attach" a free label to any node.
09-12-2014 12:46 PM
The label is given by the filename of the subVI. Anything else would just confuse.
Hide the label and use diagram comments as already suggested.
09-15-2014 02:05 AM - edited 09-15-2014 02:22 AM
Would there be a solution for the 2012 SP1 version? My company uses this one. When cleaning up the craph, the free labels lose their icons and become meaningless.
>>The label is given by the filename of the subVI. Anything else would just confuse.
I really am not an experienced labview user, but isnt it two quite different things, filname and label? especially for graphical representation?
I am seting up a DAQ-VI for some experiment, with about 40 signals to be read and processed. until i attach the actual hardware, i "simulate" the Signals with a custom made random generator sub-VI for each signal. now, to me it seems more confusing having them all displayed as "custom_random_generator.vi" instead of "signal1", "signal2",...
btw, why are my sub-VIs treated differently than any function (or control or where i can easily manipulate the label?
thanks for advice!
best,
-luffi
09-15-2014 02:09 AM - edited 09-15-2014 02:14 AM
Hi luffi,
you really want to use this subVI in 40 places? Why not use a loop and just one instance of your RandomGenerator?
- Labels are names given at editing time. Controls/indicators are identified by their label (very simplified scheme). subVIs are loaded by their label aka filename (simplified scheme). With controls/indicators you can use the caption to give instances "user friendly" names, subVIs don't allow this. I would be irritated when the same subVI will have different names in the BD… (When you call functions in text based programming languages the function name also is the same with every call!)
- to keep comments with your VI you could draw a sequence frame around both. It's a quick & dirty workaround…
09-15-2014 02:29 AM
>>you really want to use this subVI in 40 places?
i intended to replace the random generators by the appropriate physical devices once the facility is set up. they are just "mock ups". to me it seemd natural to have independent generators, as the signals have different characteristics that i could implement that way. but i see your point 🙂
the sequence frames indeed keep the labels & icons together, thanks. but they add so much messiness to the already existing mess 😄