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.
When using python 32bit, change the library in "DTOL_prototypes.py" to the 32bit version:
dll = ctypes.CDLL(find_library('oldaapi32'))
dll2 = ctypes.CDLL(find_library('OLMEM32'))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 protoype function are outsoruced in the DTOL_prototypes.py and DTOL_defs.py files.
DTOL_test_cont.py is a first test for continious 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