https://github.com/laulauthom/ni-usb6008-analog-digital-outputs
This script allows to control analog and digital outputs of a NI-USB-6008 from National Instrument using the PyDAQmx module
https://github.com/laulauthom/ni-usb6008-analog-digital-outputs
analog-devices daq national-instruments pydaqmx
Last synced: 3 months ago
JSON representation
This script allows to control analog and digital outputs of a NI-USB-6008 from National Instrument using the PyDAQmx module
- Host: GitHub
- URL: https://github.com/laulauthom/ni-usb6008-analog-digital-outputs
- Owner: LauLauThom
- Created: 2017-03-31T14:39:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-12T07:35:18.000Z (almost 6 years ago)
- Last Synced: 2025-01-15T06:49:45.955Z (5 months ago)
- Topics: analog-devices, daq, national-instruments, pydaqmx
- Language: Python
- Homepage:
- Size: 671 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NI-USB6008-analog-digital-outputs
This script allows to control analog (any value between 0 and 5V) and digital (0 or 5V) outputs of the USB-6008 DAQ from National Instrument using the PyDAQmx module.
Additional outputs can be added following the same model.
Tested on Python 2.7 64-bit on a windows machine- First make sure that the DAQ is recognised by the computer, and that you can use the program provided by National Instrument (NI-MAX) to set the voltages.
- The script NI-USB-6008.py assigns a task to digital/analog pin of the device. Once a task is assigned you can use the task to set the voltage of the pin using one of the function of the code.
- To use the script, eventually modify the code to assign the task to your pin of interest, then run the code in your favorite editor like Spyder. After that, you can use the interactive command line to call the functions to set voltages.