[SciPy-user] reading (labview) binary data

Michael Graber michael at ini.phys.ethz.ch
Wed Jul 15 09:00:25 EDT 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