https://github.com/laulauthom/usb-3101--measurementcomputing
Simple Python script to control analog and digital outputs for a USB-3101 from Measurement Computing
https://github.com/laulauthom/usb-3101--measurementcomputing
analog-devices daq measurement-computing universal-library
Last synced: 12 days ago
JSON representation
Simple Python script to control analog and digital outputs for a USB-3101 from Measurement Computing
- Host: GitHub
- URL: https://github.com/laulauthom/usb-3101--measurementcomputing
- Owner: LauLauThom
- Created: 2017-03-31T14:11:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T14:14:13.000Z (about 9 years ago)
- Last Synced: 2025-01-15T06:49:43.788Z (over 1 year ago)
- Topics: analog-devices, daq, measurement-computing, universal-library
- Language: Python
- Size: 2.66 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# USB-3101--MeasurementComputing
Simple Python script to control analog and digital outputs for a USB-3101 from Measurement Computing
This code allows to apply a given voltage to an analog output channel between 0 and 5V as well as to apply digital signals (0/+5V) on individual or all digital output channels.
For the analog output, the code can be modified to deliver a voltage between -10 to 10V.
WARNING : The parameter gain seems to be overwritten by the configuration defined in InstaCal (the default software to test the USB device)
Also the BoardNum should be read from InstaCal
UL.cbVOut(BoardNum,Channel,Gain,5) is not supported by the USB-3101.
Use UL.cbAOut instead in combination with cbFromEngUnits for conversion Volt to Bytes.
tested on Python 2.7 64-bit on a windows machine