03-20-2019 03:52 AM
I've been given some old code to develop, that in the end gathers lots of information and saves it in a .csv file.
As you can see from the attached image, the code is not the prettiest. The problem I am having is that if I increase the number of values that one of the arrays has on the left hand side and increase the index number (39) by the same amount, the .csv file does not display the values and can even stop saving other values.
I can't understand why this occurs?
Also if there is a better, cleaner way of merging all and saving these array values to a .csv file that would be great information to have.
Thanks
K. Ellis
Solved! Go to Solution.
03-20-2019 03:55 AM - edited 03-20-2019 03:56 AM
Hi K.,
The problem I am having is that if I increase the number of values that one of the arrays has on the left hand side and increase the index number (39) by the same amount, the .csv file does not display the values and can even stop saving other values.
You use the Interleave1DArray function. Did you read its help?
Also if there is a better, cleaner way of merging all and saving these array values to a .csv file
Why not use BuildArray instead of InterleaveArray? (The array elements will be in a different order…)
the code is not the prettiest.
Why don't you cleanup?
(For me it is also scaled too large: I have to shrink the image to ~33% to get "normal" display size…)
03-20-2019 09:07 AM
The Build Array Function has solved the problem and I have tidied it up too!
Thanks,
K