LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data encoding

how is it possible to une a "function generator" to compress a text string?
0 Kudos
Message 1 of 3
(2,867 Views)
let me make sure i understand you right - you want to run some sort of in-memory Zip type compression on a large text string?

if that's the case, one simple method is to write it to a file, then call some sort of external program like "gzip" to compress the file, then read the compressed file back into memory.

if you want to get a little trickier you can try giong to http://www.gzip.org/zlib/ and downloading a zlib library that might allow you to do the compression entirely in memory. i haven't played with it myself, i'm just venturing a guess.

how long are these text strings you are talking about?

micah
0 Kudos
Message 2 of 3
(2,867 Views)
Dan,

If you are looking for string compression there are VIs in the OpenG Zip Tools for doing this. The zlib library has been packaging inside of a nice set of VIs.

http://opengtoolkit.sourceforge.net >> Zip

-Jim
0 Kudos
Message 3 of 3
(2,867 Views)