你好,首先谢谢你的帮助。可能我的描述不够准确。但是我不是要生成一个随机数,而是编写一个子vi,可以接受动态数目的输入个数。比如此VI可以接受1个输入,2个输入,等等。
thank you for your kindness.but what I want is a vi witch can accept different number of inputs,for example 1,2,or 3 inputs,and so on.The vi you passed to me can produce a random number,I cant understand.
Thank you very much.The vi is really helpful.I think maybe I can creat an array with all the inputs of the same type,and the subvi accept an array.Then,in the subvi,I can use the Array-size function to get the size of the input array.Thus it maybe also a way for inputs of the same type.
But what if the inputs are of different types?
Cluster, for example, can be Flatten To String, passed to sub-vi , and recovered with Unflatten From String. I maybe wrong but this, however, seems to work only with known cluster (with know set of diff. data type).