Hello, I have initialised an array of a certain size (different pending on user input) to construct a Z matrix to be sent to a 3D surface graph. The array is filling with my z values in the right order(using replace array subset function), the problem is that upon recieving a new value the previous value automatically goes to zero. I finish with an array the right size but with only one value in it. Has anyone come across this problem before? I have attached the relevant vi, Thanks Dave
Please attach your code. Could it be that you forgot to add shift registers carrying your array? You must ensure that the new value is replaced in the modified array and not in the original array (This would happen if you use a plain tunnel on the left).
See attached example showing the correct and wrong way.
The vi is not there. However, I suspect that you are using a tunnel instead of a shift register to pass your data into your loop. The tunnel will read the initial value passed into the loop upon each iteration whereas the shift register is designed to pass data from one iteration of the loop to the next.
If this isn't the problem then try attaching the code again.
P.S. It looks like Altenbach got this one while I was typing.