Comments (4)
I would suggest something like this:
class U6(Device):
""" A Python class that represents a U6 """
def init(self, handle=0, localId = 0, serialNumber = None,
ipAddress = "", devType = 6, debug = False):
"""
Name: U6.init(self, debug = False)
Args: debug, Do you want debug information?
Desc: Your basic constructor.
"""
Device.init(self, handle, localId, serialNumber, ipAddress, devType)
####self.devType = 6
self.firmwareVersion = 0
self.bootloaderVersion = 0
self.hardwareVersion = 0
#####self.serialNumber = 0
self.productId = 0
#####self.localId = 0
self.fioDirection = [None] * 8
self.fioState = [None] * 8
self.eioDirection = [None] * 8
self.eioState = [None] * 8
self.cioDirection = [None] * 8
self.cioState = [None] * 8
self.dac1Enable = 0
self.dac0 = 0
self.dac1 = 0
#####self.handle = 0
self.calInfo = CalibrationInfo()
self.productName = "U6"
self.debug = debug
from labjackpython.
It resolved the problem
from labjackpython.
Made the changes to u3.py, u6.py, and ue9.py. Thank you for reporting this.
Let me know if I broke something else in the process, otherwise I'm going to close this issue.
from labjackpython.
Didn't hear from you. Calling it good.
from labjackpython.
Related Issues (20)
- liblabjackusb.so: undefined symbol: DigitalIO HOT 1
- reading zero values HOT 4
- Why does labjackpython package still enforce python=2.7? HOT 3
- NullHandleException() condition: None < int is syntax error HOT 2
- No examples for U12? HOT 3
- struct.pack error at low sample rates HOT 11
- I2C: not possible to wait for ACK HOT 3
- close() method does not release the device on Windows 10 HOT 3
- Output frequency on u3 HOT 1
- LabJack T7 Support HOT 3
- Some assistance needed with u3 and SPI HOT 1
- handling multiple labjacks on the same computer HOT 3
- Labjack U6 set dutycyle PWM16 HOT 2
- _openWirelessBridgeOnWindows() uses undefined names deviceType and handleOnly HOT 1
- i2c response handling differs on u6.py only HOT 1
- UE9.streamData() uses undefined name retResult HOT 1
- Index Error HOT 5
- Better packaging HOT 12
- Unable to find "labjackud" when running from Cygwin HOT 1
- SIGALRM in outputSinDac.py not found HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labjackpython.