LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data in binary file

Solved!
Go to solution

Hi,

 

I have 700 2D double array to save and i would like to save them in 700 differents files with .dat (binary) extension. I know that i can save an array in binary format but by using a dialog box which opens a window so that i can choose the file. Since there are 700 array i don't want to be oblige to select the right path every time.

 

I'm using a dialog box to create a folder where i want to save the 700 files. For the time being i save the 700 arrays in 700 differents text file by using the VI "write to spreadsheet file" and i works well but it creates text files..

 

Is there any way to make the same thing but by saving the data in binary file and without using a dialog bow for every single file?

 

Thank you in advance

0 Kudos
Message 1 of 2
(3,239 Views)
Solution
Accepted by topic author a0720

Use write binary file vi to write in binary. http://zone.ni.com/reference/en-XX/help/371361J-01/glang/write_file/

You could ask the user to select the folder as you do below and then programatically build file paths, something like this:

create files.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 2
(3,228 Views)