06-04-2013 09:55 AM
Hi,
This is the first time I've ever setup a loop with a visa driver session in it. I am attempting to collect an array of flux data. The array indexes correspond to physical (x,y) locations on the item i'm measureing the flux of. This is why i need the data to be read in as a 5x7 array of flux. The 5x 7 matrix is collected 3 times (at 3 different z heights). However, I can't figure out why I am getting three 6x7 matrices instead of a 5x7. I can't tell if it is my shift register setup, where my visa session is implemented, etc. I just can't figure it out.
Could someone look at my attached code ( it's pretty simple, just 3 nested for loops with the visa session inside, and that data is fed out to 3 matrices, which is then stripped down further which can be ignored)
Thank you very much,
chelsea
Solved! Go to Solution.
06-04-2013 10:11 AM
First of all, I don't see a point in any of those sequence structures. All they are doing is creating clutter.
Secondly, why are you appending the second to last results to the whole results? That is where your extra index is coming from. Get rid of that shift register and the Build Array.
06-04-2013 10:17 AM
The sequences are there because I cut out all the code I know works so that whomever was going to reply didn't need to look that hard at my code unnecessarily. The sequence structures were just leftovers from cutting out the other stuff, since they were obviously not impacting the rest of the code I simply just left them in to save me time. But thanks for the solution to the array issue, I figured I was just over thinking it.