ocesou / hooke

Automatically exported from code.google.com/p/hooke
GNU Lesser General Public License v3.0
0 stars 0 forks source link

New PicoForce file format (Version: 0x07200000) #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate a playlist of new version files

What is the expected output? What do you see instead?
Expected: Playlist with imported curves
Instead: error message in picoforce.py on line 219

The current PicoForce driver Hooke is looking for something like:

\@4:Z scale: V [Sens. ZSensorSens] (0.0003051758 V/LSB) 20.00000 V

but the 'new' files have:

\@4:Z scale: V [Sens. Freq. 1] (0.3906250 kHz/LSB) 25600.00 kHz

Original issue reported on code.google.com by illy...@gmail.com on 13 Nov 2009 at 4:36

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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: