Code Monkey home page Code Monkey logo

Comments (4)

kungfu101 avatar kungfu101 commented on August 15, 2024

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.

kungfu101 avatar kungfu101 commented on August 15, 2024

It resolved the problem

from labjackpython.

 avatar commented on August 15, 2024

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.

 avatar commented on August 15, 2024

Didn't hear from you. Calling it good.

from labjackpython.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.