Open GoogleCodeExporter opened 8 years ago
Could you quickly check if there's any version info in the file? If yes, a
simple if
switch should be enough :)
Original comment by devicera...@gmail.com
on 17 Nov 2009 at 8:54
The version information is found on line 2 of the file:
\*Force file list
\Version: 0x07200000
\Date: 12:47:02 PM Fri Feb 06 2009
...
Original comment by illy...@gmail.com
on 18 Nov 2009 at 1:45
Attachments:
Fixed in my branch
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/hooke/rev/1669dd45c675
Original comment by tvrkng@gmail.com
on 4 Jun 2010 at 12:04
Hmm, I can import the curve anyway. I'm having problems finding the Z scan
data.
There are three slightly different traces that all look like deflection data...
>>> import numpy as n
>>> z = buffer(file("test/data/vclamp_picoforce/0x07200000", "rb").read())
>>> a = n.ndarray((1024,), dtype=n.int16, buffer=z, offset=40960)
>>> b = n.ndarray((1024,), dtype=n.int16, buffer=z, offset=43008)
>>> c = n.ndarray((1024,), dtype=n.int16, buffer=z, offset=45056)
>>> print a
[-2571 -2574 -2579 ..., -3189 -3212 -3206]
>>> print b
[-2571 -2574 -2579 ..., -3189 -3212 -3206]
>>> print c
[-2571 -2574 -2579 ..., -3189 -3212 -3206]
>>> import pylab as p
>>> p.plot(a, 'r.', b, 'b.', c, 'g.')
>>> p.show()
Most of the deviation appears at the odd spike in the middle. So, where is the
Z data?
Original comment by tvrkng@gmail.com
on 4 Jun 2010 at 5:17
Attachments:
Original issue reported on code.google.com by
illy...@gmail.com
on 13 Nov 2009 at 4:36