LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Merging Multiple Arrays

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(126 Views)
Highlighted
Solution
Accepted by topic author Bob_Schor
03-21-2019 11:12 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…)

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 3
(124 Views)

The Build Array Function has solved the problem and I have tidied it up too!

 

Thanks,

K

Message 3 of 3
(80 Views)