NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
chris.b

View Cluster Constant as Icon

Status: Completed
by Member chris.b on ‎10-27-2009 04:59 PM

Clusters are powerful and necessary, but they can easily clutter up otherwise immaculate code.  Why not have a "View As Icon" option (a la Express VIs) for cluster constants?

 

3.png

 

Right-click menu change...

 

2.png

 

 

There have been similar suggestions, but I think we need a clean, simple solution.

Status: Completed
Available in NI LabVIEW 2010
Comments
by Active Participant RDR on ‎10-27-2009 05:02 PM
Great idea!
by Active Participant nrp on ‎10-27-2009 05:52 PM

Use a subVI?

 

That is what I always do. If you had to revert from the icon back to the cluster it would probably mess up the block diagram big time.

by Active Participant GregS on ‎10-27-2009 06:10 PM
I think I prefer Lavezza's suggestion here, which is essentially to provide an option for a Typedef'd control to show as an icon on the BD - unlike nrp's suggestion above, this means you only have to define a control, not a sub-vi as well.  Double-clicking opens the typedef as you would expect.
by Trusted Enthusiast ‎10-27-2009 06:12 PM - edited ‎10-27-2009 06:13 PM

YES!!!, but instead, hopefully use the user-created icon of the typedef. That way we could have meaningful graphics on the BD. Refer to my idea about Eliminating the Typedef Explosion. It has some good conversation, and the consensus of the contributors is that having an icon for the typedef is good. Look at my summary (the sixth post) of tst's and Lavezza's ideas.

 

 

 

Message Edited by JackDunaway (mechelecengr) on 10-27-2009 06:13 PM
by Trusted Enthusiast on ‎10-27-2009 06:15 PM
Greg, you beat me by 2 minutes! I'm just your Yes Man. And nrp -- that's the solution that many of us use, but I think it's a "hack" to need both a ctl file and a vi that has nothing but one output type of that ctl file.
by Member chris.b on ‎10-27-2009 10:43 PM

Good discussions!

Jack:  I like your Idea as well.  I do, however, think that Lavezza's suggestion and my "Idea" are more feasible and fit the LabVIEW paradigm more closely.

nrp:   I definitely use the subVI "hack" as well, but it's not idea for a number of reasons (unnecessary work, subVI overhead, and possible changes to inplaceness).

by Knight of NI on ‎10-28-2009 03:51 AM

It should be pointed out that this does *kind of* exist today.

 

If you use a control instead of a constant you get an icon in the BD. The obvious problem is that you now have a huge cluster on your FP (even if you make it invisible). Solution - the Control class in LV 2009 has a private method called Convert to Stub which converts the FP cluster into an icon. The result is that you have an icon in the FP and an icon in the BD. Not ideal, but better than having a huge cluster on your FP.

 

I haven't used this method, so I don't know how stable it is or how well it works, but it certainly seems like a step NI has taken in the direction of the idea suggested here.

 

Also, this is the third time in as many days that I'm linking to this, so I'm starting to feel a bit like a sales person, but I should point out that this could be used to cut the time needed for creating the subVI. We could have a modified version which, when invoked on a typedef, would create a stub VI for that typedef and give it the icon of the typedef, thus reducing the subVI generation to a couple of clicks.

by Member chris.b on ‎10-28-2009 07:58 AM
tst:  Good points!  As for as the "Convert to Stub" control, there is still more overhead for a control than a constant, and it eliminates any constant folding benefits.
by Member chris.b on ‎10-28-2009 08:04 AM

And if the cluster is a type def, you would see its icon when using "View As Icon"...

 

4.png

 

Thanks Lavezza!

by Active Participant Broken_Arrow on ‎10-29-2009 07:40 AM

Great idea.

 

chris.b Said:

> And if the cluster is a type def, you would see its icon when using "View As Icon"...

 

Also great! Except I would prefer that the icon not look too much like a VI. Also see this

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
131
86
72
65
60
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page