LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

smallest file type....

anyone know about what is the smallest data file that can save in labVIEW?

because i think the *.txt too large for me...

hope get can answer as soon as possible... 🙂
0 Kudos
Message 1 of 6
(3,358 Views)
@,

I'm not sure I understand the question. If you're referring to binary versus ASCII text versions of a chunk of data, then the question makes sense and I would advise you to use functions like "Write File" instead of "Write to Spreadsheet File," since anything in spreadsheet file format implies the presence of ASCII text and delimiters that take up extra space.

But really, I don't think I understand what you're asking, because in this age of monster hard drives, it's less common for people to worry about the footprint of their datafiles. More information, please.

--John
0 Kudos
Message 2 of 6
(3,352 Views)
ASCII files store plain text data and are esily portable. There are many other file types one can use. One can select file type considering factors such as data size, portability etc. LabVIEW has its own internal dataformat. Usually it is called datalog format. Labview provides function to RW to datalog format directely. Refer Chapter 14 of Laview User manual for more details.
Hope this is a good starting point.
Message 3 of 6
(3,350 Views)
Hi, John...

sorry about confusing you about what i had post... actually what i wanna to know is which file type is suitable for saving data from waveform... because some of the reason so i need tp consider about the storage in hard disk...

any suggestion? no matter is ASCII or binary file type... 🙂
0 Kudos
Message 4 of 6
(3,328 Views)
Well, if space really is a problem, then you really do want to stick with binary formats. For instance, just wire your arrays or clusters or whatever into the Write File function, and voila! Binary storage.

But there's a good additional step you might want to consider if you really want to minimize the footprint of your data, and that is compression. Typical acquired datasets aren't particularly random, so they are good candidates to get crunched way down in size using compression, regardless whether you've saved in ASCII or binary format. It's simple to just compress the files offline using Winzip or an equivalent. But, if you want to work harder, you can zip and unzip files programmatically using LabVIEW: see the LabVIEW Windows Routines for Data Compression example here, or find similar libraries elsewhere.

Hope it helps,
John
Message 5 of 6
(3,319 Views)
thanks for your advise J.A.C...

i almost forget about the user manual... haha....

by the way thanks for your reply... 🙂
0 Kudos
Message 6 of 6
(3,309 Views)