LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out the related Code Repository Files or visit the LabVIEW Wiki Development Environment Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Is it possible to create an expandable subVI?
Scatterplot
post Aug 25 2008, 04:33 PM
Post #1


One hit wonder!


Member
Posts: 1
Joined: 25-August 08
Member No.: 12368
Using LabVIEW Since:2008
LV:8.20 ,. ,.
United States Nothing Selected Nothing Selected


I have a need every now and then to create several instances of the same VI. I was wondering if it was possible (in order to save space and make program flow neater) to make a subVI that is expandable, similar to many of the array functions. For instance, "Build Array" can be expanded by the drag-down menu to make more inputs for you to build the array from. Is it possible to make my own subVI with that functionality?

I suppose I could make the subVI polymorphic with support for arrays of whatever data type I'm using, and when it sees an array of (data type X) repeat the operation on each element of the array, then return another array with the all of the elements operated on, which I could then index... but at that point it's become rather messy, defeating the desire to make an expandable subVI in the first place.

Thanks for your help!


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Aug 25 2008, 04:33 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Norm Kirchner
post Aug 25 2008, 04:49 PM
Post #2


Extremely Active
****

NI
Posts: 607
Joined: 8-December 03
From: Dallas, Texas
Member No.: 208
Using LabVIEW Since:2000
LV:8.6 ,8.2.1 ,7.1.1
United States us_texas us_ohio My Gallery


To make an 'infinitely*' expandable sub vi is not possible.
You can do some interesting things with right clicking a SubVI and changing the "View as Icon" context option.


You would need to make a VI w/ the most items on the connector pane, have them all wired up, have some fancy logic in your underlying code, and you would be limited by number of connectors on the pane..... but it might get you close to what visually you're looking for.

Now, if you want to go up in the attic of LabVIEW and are willing to get tetanus on a rusty nail, I suggest you look into XNodes.
I'm sure others will be chiming in soon w/ more info on that.

--------------------
Norman J. Kirchner Jr.
Automation Software Engineer

~,~ The Captain Was Here
Premium Blend


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 9th January 2009 - 01:19 AM