LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create SubVI with unlimited input

Hi
I was wondering how can I create a subvi, where then I can add as many inputs as required?
For instance, let's say i want to create a subvi that calculates the mean of all the inputs connected to it.
Now, I could at one instance have 3 integers going in, at others, 5.
I know I can use an array to input numbers, but I want to be able to add scalars. (like for instance with Index Array, you can extend and enter as many indeces as you want)
Thanks
Kousha
Message 1 of 2
(2,834 Views)
Inputs need to be predefined.  For different data types you can use polymorphic.  You can define them and set them to a default value (like -1) and only use the inputs that are not equal to the default value.  
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 2
(2,825 Views)