From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
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.
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
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.
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.
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.