10-19-2015 10:15 AM
I was wondering if it is possible to create a subVi where its size (and imputs/outputs) can be extended. To be clear, something like the concatenate funcion, where you can change its size by making it bigger.
Solved! Go to Solution.
10-19-2015 10:24 AM
Right click subVI > uncheck "View as Icon"
10-19-2015 10:27 AM
@garrettmarsh wrote:
Right click subVI > uncheck "View as Icon"
That doesn't allow the drag to add more inputs, it just changes which inputs/outputs are visible. I think OP wants a subVI with an increasable size of inputs/outputs similar to Index Array or Concatenate Strings.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-19-2015 10:39 AM - edited 10-19-2015 10:40 AM
@James.M wrote:
@garrettmarsh wrote:
Right click subVI > uncheck "View as Icon"
That doesn't allow the drag to add more inputs, it just changes which inputs/outputs are visible. I think OP wants a subVI with an increasable size of inputs/outputs similar to Index Array or Concatenate Strings.
Good point, my suggestion really only offers a cosmetic change in the way your block diagram appears. OP, you could maybe look into XNodes to do what you are describing, although it will probably take some work. Last I heard they are a "use at your own risk" type of feature that is not officially documented or supported.
There is some info here to get you started:
http://forums.ni.com/t5/LabVIEW/what-is-an-xnode/td-p/1307516
10-19-2015 01:33 PM
@garrettmarsh wrote:
Last I heard they are a "use at your own risk" type of feature that is not officially documented or supported.
There is some info here to get you started:
http://forums.ni.com/t5/LabVIEW/what-is-an-xnode/td-p/1307516
All true, and while fun they are often way more trouble than they are worth. Usually there is a pretty simple workaround that just uses a bit more code than you originally wanted.
And, as always, a relevant XKCD.
10-19-2015 02:42 PM
Indeed there is, I will just stack single SubVi's, but I wanted it to be more space-efficient, just a matter of looks since others have to understand my code.
10-19-2015 02:43 PM
Seems it is the only way to achieve it, I will mark it as a good answer. Thank you.
10-20-2015 02:09 AM
Not really, no, the general solution to such scalability is arrays. Assuming you have a scalar or cluster input, place it in a wrapper and use an array of said cluster and loop through it.
/Y