03-31-2015 05:36 AM
I am trying to have a cluster of 3 1D arrays as my input to a VI. I would like the arrays to be intialised with a programmagle length. Thank you 🙂
03-31-2015 05:40 AM
Can you show us what you have tried?
03-31-2015 06:00 AM
i know this setup doesnt work...as it always sets them to 0. I am not sure how i would get it to initialize when there is no input and and not do that when i give it a value.
03-31-2015 06:13 AM
Make sure the default for the cluster is 3 empty arrays. Then do a check to see if the arrays are empty. If they are, do your initialization. Otherwise keep you input value.
03-31-2015 06:14 AM
I'm not sure what you are trying to do here.
If you don't have anything in the file, the arrays will be initialized to 0 size. If you have something in the file then your arrays will be initialized with the size specified by the first column of the file content. Notice that the initialized array will have values of zeros, so the results of multiplication of "Impedance Noise" with column 2 will be zeros, and the results of the square of "Voltage Noise" will also be zeros.
What is the content of the file you are reading? The column description, and is there an equal number of rows for each column?
Michel