VR001 Mide Technology Corporation, VR001 Datasheet - Page 9

VIBRATION DATA LOGGER

VR001

Manufacturer Part Number
VR001
Description
VIBRATION DATA LOGGER
Manufacturer
Mide Technology Corporation
Series
Slam Stick™, Volture™r
Datasheets

Specifications of VR001

Featured Product
Slam Stick™ Vibration Recorder
Accessory Type
Vibration Characterization Device
Lead Free Status / Rohs Status
Lead free by exemption / RoHS compliant by exemption
For Use With/related Products
Volture™ Vibration Energy Harvesters
For Use With
V25W - PIEZOELECTRIC ENERGY HARVESTERV20W - PIEZOELECTRIC ENERGY HARVESTERV21BL - PIEZOELECTRIC ENERGY HARVESTERV21B - PIEZOELECTRIC ENERGY HARVESTERV22BL - PIEZOELECTRIC ENERGY HARVESTERV22B - PIEZOELECTRIC ENERGY HARVESTER
PYTHON GRAPHIC UI
USING AND CUSTOMIZING SLAM STICK VIEWER
(PYTHON SOURCE)
Executing
To run the Slam Stick Viewer GUI standalone, run slamview.py without any arguments. 
Reading and Writing Files
Slam Stick file read and write functions are provided by ss_read.py, and can be called from an 
external script (requires NumPy). 
ss_reader(parent=None, filename=None, recording_num=None)
Reads  a  vibration  file  in  Slam  Stick  native,  Slam  Stick  ‘split’,  or  CSV  format  (depending  on  file 
extension). parent is the parent Tk window (if any).  If no filename was provided, a file selection 
dialog will first be spawned. If a Slam Stick file contains multiple recordings and recording_num 
is not specified, a selection dialog will be spawned. 
Returns  a  tuple  consisting  of  (datalist, fActual, recording_time_actual),  where 
datalist  is  a  4‐by‐n  NumPy  array  consisting  of  t,  X,  Y,  Z;  fActual  is  the  exact  sampling 
frequency, and recording_time_actual is the exact elapsed time of the recording. 
ss_writer(parent=None,
filename=None,
theData=None,
heading=None,
dialect='excel')
Writes  a  .CSV  file  consisting  of  the  contents  of  theData,  a  list  or  NumPy  array  containing  the 
numeric data to write. parent is the parent Tk window (if any).  If no filename was provided, a 
file selection dialog will first be spawned. Please refer to the Python ‘csv’ module documentation 
for details. 
Adding custom plots
A generic plotting class is available in ssplot.py; each of the builtin plot types is a subclass of 
ssplot.  Each ssplot  object  expects  an  instance  of  ‘notebook’  (notebook.py,  providing  a 
simple tabbed interface) as an input argument, and will add its plot and corresponding name to 
the notebook. 
Its main methods are: 
Constructor (__init__) -  Creates  a  Tk  frame to  hold  the  plot  and  its  controls.  Creates  a 
matplotlib Figure, axes (subplot), drawing canvas and matplotlib toolbar, and adds itself to the 
notebook. Calls set_plot_type, create_line_controls, create_axis_controls. 
set_plot_type(self)  –  Sets  the  appropriate  plot  title  and  axis  labels,  plus  any  plot‐specific 
options  required  by  the  subclass  (for  example,  a  default  windowing  function  for  FFT  plots). 
Returns an appropriate tab name for this plot in the notebook. 
create_line_controls(self)  –  Create  plot‐specific  plot  (line)  controls.  The  default 
create_line_controls,  for  line  plots,  creates  checkboxes  to  show  or  hide  each  line.  For  other  plot 
types, this method should be overridden. 
9
Python Graphing UI
|
Version 1.1
|
Slam Stick High Speed Portable Data Logger
|
www.mide.com

Related parts for VR001