LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format of Array being sent to PDA

Hi,
I was wondering if anyone would have any advice regarding the format of an array being sent to a PDA. I'm currently using the build array function to take in several 1-D arrays of DBLs and combine them to one 2-D array so all values can be transmitted to PDA at once. The data transmission to the PDA is fine, the problem is that the build array function writes all the information to one coloumn in the 2-D array. I was wondering if it were possible to make it so that each 1-D array input would occupy a seperate coloum? This is possible using the build array function if i remove it from the for loop and turn off the concatenate option but this pads each coloumn of data with 0's in order to make each coloumn the same size,is it possible to turn off concantenating and padding?
Any help would be greatly appriciated.
Thank you
John
0 Kudos
Message 1 of 2
(2,449 Views)
Hi john,

Thanks fo posting, have you thought about initialising the array first of all and then replacing array subsets rather than using the build array function? Or is this not suitable? This method is usually much more memory eficient and essentially better programming practice, but obviously that depends on the application. The trouble is that creating a 2 -D array of data in any language means that the width or depth will default to the largest data set which is placed in, that is simply the inherent nature of how an array is created and operated in memory. If you wish to pass a 2-D array you could possibly turn the data into an array of strings (which all take a default size for each element), and then modify it back at the other end.....

Is this any good?


Rob L

NI Applications Engineer

UK & Ireland


It only takes a click to rate this message 😉
0 Kudos
Message 2 of 2
(2,420 Views)