|
|||||||||||||
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?
Right-click menu change...
There have been similar suggestions, but I think we need a clean, simple solution.
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.
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).
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.
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
You must be a registered user to add a comment here. If you've already registered, please log in. If you haven't registered yet, please register and log in.
Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
My Profile | Privacy |
Legal |
Contact NI
© 2011 National Instruments Corporation. All rights reserved. | E-Mail this Page
|
||

E-Mail this Page