Hi
I want to do somehing similar, so I thought you might be able to help. I've included my VI so you can follow along. Understanding the code on the left isn't necesssary, I don't think. I have successfully read two 1-D arrays (X and Y) from a data file, and performed a series of conversions on them, resulting in two new 'Converted' X and Y arrays. We only need to consider the X values here. What I want to do is separate these X values into those positive, and those negative, making a separate array for each. (I feel a sorting VI will not work, as the values must be maintained in order.) I have had some limited success, as you will see by running the VI. What I observe to be happening is that my VI doesn't insert each new X value into a ne
w element in its respective >0 or <0 array. Rather, it only allows 1 element in the array, always writing over what's previously in that element. If you notice, the values showing in the X > 0 and X < 0 indicators are exactly the last positive and negative X values read, respectively.
Is this simply a matter of a misplaced For-loop, or some other incorrect code? If you can offer any help, it would be much appreciated. Thanks!