01-17-2016 01:44 PM
I have a program that uses a lot of different data, and I have them in clusters. Well, I tried to bundle them by name, but I just get the default name. Is there a way to set a label for a cluster indicator without manually changing it in the block diagram?
01-17-2016 01:47 PM
If the cluster indicator contans only labeled objects, just right-click the terminal and create constant. Now wire that constant to the top of the "bundle by name" node and all terminals will be named accordingly.
If this does not solve your problem, please attach a simplified version of your VI. Do all cluster elements have a label?
01-17-2016 02:14 PM
If you look at "Bundle by Name", there's an input on the right edge near the top. This is where you wire something that includes the Cluster definition (it could be a Constant, or if you are modifying data on an existing Cluster Wire, you can bring that wire in on the top and take it's modified "result" out the right-hand connector). Look at Help for Bundle by Name.
Bob Schor
P.S. -- the LabVIEW Help system has lots of useful information -- I refer to it all the time ...
01-18-2016 02:05 AM
You cannot change a label of an indicator. You can set the Caption, if you e.g. want to have different language interfaces.
/Y
01-18-2016 09:22 AM
As previously stated by Yamaeda, you cannot change label test during runtime. However, you can set the Caption text to whatever you'd like, and use a property node with one property for label visibility (set to false) and one property for caption visibility (now set to true). I have attached a VI to show you an example of this. If this is not what you are looking for, please post the code you are having trouble with.
Cheers,
01-18-2016 09:42 AM
From the replies to this question, it is clear that the Responders (including myself) have differing ideas about what the Poster is asking. He mentions "different data ... in clusters", and bundling by name. Then he talks about "set a label for a cluster indicator". What, exactly is he (or she) trying to do? A simple "bundle by name"? A "renaming" of a Cluster Control? A "renaming" of an element of the Cluster?
Balloman -- could you please post a VI that includes your Cluster and put text on the diagram so that it is clear to us what it is that you want to do? Altenbach and I think that what you want to do is easy, Yamaeda and Hazen_berg think it is impossible. Let's assume we can't all be right -- one (or more) of us doesn't understand the question. Please help us by showing us the problem ...
Bob Schor