The repo contains some code to use the Data Translation AD/DA devices via python. It is mainly using python ctypes to call the C functions from the DT Open Layer SDK.
DT Open Layers SDK has to be installed on the PC. When you have installed the driver for your AD/DA device, you probably have this installed already.
analog_input_get_single_vals.py
and analog_output_set_single_vals.py
are two examples of how to use the code. The main class is defined in DTOL.py
, the ctypes prototype function are outsourced in the DTOL_prototypes.py
and DTOL_defs.py
files.
DTOL_test_cont.py
is a first test for continuous analog input and therefore a "live view" of the input channel(s). It is not fully working right now, still in progress.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT License