03-02-2018 10:32 AM
Is it possible to create a vi with a customizable number of same input type like the "Compound Arithmetic" vi? I mean a vi which if I expand it on the vertical dimension automatically add same type of input ports.
03-02-2018 10:51 AM
You could do it through xnodes and VI scripting, however it wouldn't be trivial to implement, especially if you don't have experience with either.. Why do you want this functionality? If the inputs will be the same type, why not just make the input an array?
03-02-2018 10:52 AM
Practical Answer: You would be very much better off by just accepting an array input.
Technically Correct Answer: Yes but it is not supported and poorly documented
https://lavag.org/files/category/10-xnodes/
03-02-2018 10:59 AM
I know that an array could be a good solution but I don't know the number of the inputs a priori.
03-02-2018 11:08 AM
What is your vi going to be doing with the inputs?
03-02-2018 11:08 AM
You can either build the arrays programmatically or you can just expand the build array function to multiple inputs and wire the output to your function.
03-02-2018 11:12 AM
My inputs are clusters with the same organizzation of data.
03-02-2018 11:13 AM
Maybe this could be the quik solution. Can I do it with clusters as input?
03-02-2018 11:14 AM
Again, what are you planning on doing with those clusters in your vi? If you have 3 input clusters, what would the code do? What about 10?
03-02-2018 03:34 PM
In every input cluster I have a density spectrum, two number which define a band and a number which defines a threshold. In output I want a boolean signal which tell me if the threshold for every spectrum in his defined band is passed.