title: Reading data from data acquisition unit (measurement computing)
body: <p>I have a data acquisition unit (USB-2408 from Measurement Computing) and am trying to write Python code to display that data in as close to real-time as I can, but obviously that's limited, so I'll take what I can get.  I ran across a man that has <a href="http://wiki.scipy.org/Cookbook/Data_Acquisition_with_PyUL" rel="nofollow">already done this, almost</a>. </p>
  
  <p>So I found his <a href="https://code.astraw.com/PyUniversalLibrary/" rel="nofollow">PyUL site</a> and tried some of the example code he has (copied and pasted it straight into a .py file and threw it in my relevant directory. When I call the code through cmd (<code>...\Python27\Lib\site-packages\sciypy&gt;python example1.py</code>) I get an error code :</p>
  
  <pre><code>C:\Program Files (x86)\Python27\Lib\site-packages\scipy&gt;
  Traceback (most recent call last):
    File "daq-scipy1.py", line 3, in &lt;module&gt;
      import UniversalLibrary as UL
    File "C:\Program Files (x86)\Python27\lib\site-packaget__.py", line 36, in &lt;module&gt;
      from UniversalLibrary import *
    File "C:\Program Files (x86)\Python27\lib\site-packagersalLibrary.py", line 53, in &lt;module&gt;
      import numpy
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\__init__.py", line 168, in &lt;module&gt;
      from . import add_newdocs
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\add_newdocs.py", line 13, in &lt;module&gt;
      from numpy.lib import add_newdoc
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\lib\__init__.py", line 22, in &lt;module&gt;
      from .npyio import *
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\lib\npyio.py", line 4, in &lt;module&gt;
      from . import format
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\lib\format.py", line 141, in &lt;module&gt;
      import io
    File "C:\Program Files (x86)\Python27\Lib\site-packages\scipy\io\__init__.py" line 85, in &lt;module&gt;
      from .matlab import loadmat, savemat, whosmat, byteo
    File "C:\Program Files (x86)\Python27\Lib\site-packages\scipy\io\matlab\__init__.py", line 13, in &lt;module&gt;
      from .mio import loadmat, savemat, whosmat
    File "C:\Program Files (x86)\Python27\Lib\site-packages\scipy\io\matlab\mio.py", line 10, in &lt;module&gt;
      from scipy.lib.six import string_types
    File "C:\Program Files (x86)\Python27\lib\site-packages\scipy\__init__.py", line 77, in &lt;module&gt;
      from numpy import oldnumeric
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\oldnumeric\__init__.py", line 24, in &lt;module&gt;
      from .compat import *
    File "C:\Program Files (x86)\Python27\lib\site-package\numpy\oldnumeric\compat.py", line 14, in &lt;module&gt;
      from . import functions
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\oldnumeric\functions.py", line 9, in &lt;module&gt;
      from .typeconv import convtypecode, convtypecode2
    File "C:\Program Files (x86)\Python27\lib\site-packages\numpy\oldnumeric\typeconv.py", line 7, in &lt;module&gt;
      oldtype2dtype = {'1': np.dtype(np.byte),
  AttributeError: 'module' object has no attribute 'dtype'
  </code></pre>
  
  <p>Is there a file or module maybe that I haven't installed that would keep this from running or similar solution/workaround?  I ran this code just to see if I could handle the data coming from the unit in a way separate to the software they provide with the unit. If thereis a better way, please inform me. I have already tried pySerial, pywinusb or d2xx and others like pywin32 to no avail. The unit is listed in device manager these days as a completely new device class: DAS Component, older units used to be under USB Human Interface Devices.</p>
  
  <p>Relevant Info: Python2.7 (32-bit) on Windows 8</p>