http://labviewartisan.blogspot.in/2009/03/bulk-creation-of-controls-and.html
10 comments:
antoine.chalons March 5, 2009 at 3:20 AM nice ! do you really have to hide the block diagram ? :( Reply
antoine.chalons March 5, 2009 at 3:27 AM and could you make a version that only creates the "required" inputs. and as a continuation, add the possibility to set an output terminal as "required" (to enforce error handling that would be cool), this was dicussed some time ago on LAVA :-o Reply
Anonymous March 5, 2009 at 10:02 AM NICE WORK DARREN!!! *tear* -Jason Reply
Anonymous March 5, 2009 at 11:32 AM Very cool. Could you create a LV 8.5 version??? Jaegen Reply
Phil March 5, 2009 at 12:19 PM I haven't tried the code, but isn't what you're decribing already coded into LabVIEW as
1 of 3
12-Dec-13 12:05 PM
http://labviewartisan.blogspot.in/2009/03/bulk-creation-of-controls-and.html
Darren Nattinger
Antoine: Sorry, any VIs I post with scripting must be password-protected, since the feature is still considered internal. We're investigating ways to make it more accessible. Jaegen: I posted a version saved in 8.0 on the NI Forums: http://forums.ni.com/ni/board /message?board.id=170&view=by_date_ascending&message.id=392086#M392086 Phil: This utility helps when you have one or more objects on the diagram with multiple unwired terminals, and you want to create controls and indicators for those terminals. It's mainly useful for debugging, like passing values into a function/subVI and examining the outputs. Create SubVI is mainly useful when you have a bunch of stuff already wired up and you want to turn it into a subVI. Reply
Anonymous March 5, 2009 at 4:10 PM DSpeaking of Create SubVI... Is there an INI token to have the default pattern set to 12 terminals? You mentioned a token for setting the default pattern for new VIs for folks using older versions of LabVIEW. (It would be great if Create SubVI would also wire the error clusters in the bottom terminals and auto run "Cleanup" -- I'll file suggestions for those.) Aside: You mentioned LabVIEW Scripting. What exactly is this? Do you use G or ... -Jason Reply
Darren Nattinger
Jason: There is currently no way to assign a default connector pane pattern to VIs created with Create SubVI...I've certainly requested that feature be added a number of times, though! LabVIEW Scripting is an internal feature that gives you a G interface to interrogating, creating, and modifying VIs. Some enterprising users on lavag.org have discovered some of its secrets...you can learn more there for the time being. Reply
Anonymous March 12, 2009 at 7:59 AM DThanks for the explanations. I've added my voice to yours with the following product suggestion (posting it here in case there folks who want to join us): Create SubVI: I almost never use this function... but it could be so nice! Imagine being able to develop code on the mainVI diagram, check functionality in line, and quickly generate a subVI. We're so close with "Create SubVI", but in 7 years, I've never really used it. May I suggest a few tweaks?
1) Use default connector pane (12 terminals) 2) If there are error clusters, wire them to the bottom terminals. 3) If there are error clusters, auto create a case structure and put the code in the No Error case. Wire the error cluster through the Error case. 4) If there are in and out references (e.g. File In, File Out), wire these to the top terminals. 5) Run Clean Up Diagram.
2 of 3
12-Dec-13 12:05 PM
http://labviewartisan.blogspot.in/2009/03/bulk-creation-of-controls-and.html
3 of 3
12-Dec-13 12:05 PM