LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read 2d array binary

Hello all....

 

I am trying to save some test results into a binary file for storage and then read it back at a later time, but I cannot seem to find a way how to do this... This must be a simple task but for some reason I cannot find a straightforward way to achieve this... I have attached a sample .txt file with the data so this gives an indea of the data that needs to get saved in binary....

0 Kudos
Message 1 of 3
(3,261 Views)

Your data has a fractional part and you seem to have 8+ decimal digits of resolution. This means you need to save the binary data as an array of DBL.

 

Since your file currently is an ASCII formatted table, you first need to read it as a 2D array of DBL (e.g. using read from spreadsheet file)  and then save it (and later read it) as a 2D DBL array in binary. This i trivially simple in newer versions of LabVIEW. This recent thread shows the general method. Simply substitute a 2D DBL array for the 3D I32 array in the given example.

 

What is your LabVIEW version?

Message 2 of 3
(3,246 Views)

eeks, I must have been lost in some thoughts

sorry for this post

Message Edited by devchander on 09-16-2008 01:39 AM
Message Edited by devchander on 09-16-2008 01:39 AM
Message 3 of 3
(3,243 Views)