[SciPy-user] reading (labview) binary data

Michael Graber michael@ini.phys.ethz...
Wed Jul 15 08:00:25 CDT 2009


hi all,


i'm looking for the fastest way to read (labview) binary files.

i figured out a method which is basically the same as described on:

http://www.shocksolution.com/2008/06/25/reading-labview-binary-files-with-python/

that is:

binaryFile = open("Measurement_4.bin", mode='rb')
(data.offset,) = struct.unpack('>d', binaryFile.read(8))

but this is terribly slow. to read 12 MB takes about 80 seconds.  
matlab is orders of magnitude faster ..

is there a better, i.e. faster way to read in (labview) binary files?


thanks,
michael


More information about the SciPy-user mailing list