Installing the pyrwi package
- Install all the support libraries and tools listed on http://drlock.com/projects/pyrwi/docs/install.php
- Compile the nidaqmx package (Requires the tools from the "to develop for PyRWI?" section)
- The DAQmx DLL is built with MSVC which makes linking to a GCC project difficult. The current solution requires building a GCC compatible library.
- Install pexports http://www.emmestech.com/software/pexports-0.43/download_pexports.html by copying the EXE into C:\msys\1.0\bin
- In MSYS change to nidaqmx/gccLib
- Run the ./build.sh script. This script will make many intermediate files, but the end result is libnidaqmx.a this is the new version of the library.
- This only has to be done once, unless you install a new version of DAQmx.
- Now the nidaqmx python module can be built and installed.
- Change to the nidaqmx directory.
- Edit the build.sh scipt so that paths are correct for your installation.
- Run ./build.sh This will use SWIG to generate C & Python code and then use GCC to compile the final package.
- Edit the install.sh scipt so that paths are correct for your installation.
- Run ./install.sh which will copy of nidaqmx.py _nidaqmx.pyd into the Python site-packages directory.
- The PyRWI project is in its early stages, so there isn't an installer.
- You will have to copy the files to the Python library. This is usually at c:\python26\lib\site-packages or something similar
- Copy the pyrwi directory (the one containing __init__.py)
- If you are willing to help setup a distutils installer, please contact us through the mailing list.
- You can test the installation by starting IPython or IDLE and typing:
import nidaqmx as DAQmx
import pyrwi
- If they import without error, you are all set.
64 bit Notes
Most of the libraries needed to run on 64bit seem to be available, but I am seeing many comments hat SciPy 64bit may be hard to come by pre-compiled. Here are a couple articles on how to compile yourself: