Python™ Support for MCC DAQ Products

 

Python™ Support for MCC DAQ Products

Python™ Support for MCC DAQ Products

 

 

KEY HIGHLIGHTS

Python is a powerful object-oriented programming language. Many MCC products – including most USB, Ethernet™, and Bluetooth® hardware – are supported under the open-source MCC Universal Library Python API.

The mcculw package contains an API (Application Programming Interface) for interacting with Universal Library. This package was created and is supported by MCC.

The package is implemented in Python as a wrapper around the Universal Library C API using the ctypes Python Library.

Source code and examples are available in the MCC GitHub repository:
www.github.com/mccdaq

Additional documentation can be found in the Universal Library Help:
https://www.mccdaq.com/PDFs/Manuals/Mcculw_WebHelp/ULStart.htm

Contact MCC directly for products not listed.

This API is currently supported on Windows OS. Support for Linux and Mac OSX systems is under development.



Part Number Description Qty Price
Python™ Support for MCC DAQ Products Python™ Support for MCC DAQ Products

Product Reviews


2.5 / 5
Ease of Use
2.5 / 5
Value
3 / 5
Techincal Support
5 / 5

50% of new reviewers recommend this product


Python™ Support for MCC DAQ Products
October 17, 2017
Python support on Windows is not Python support

Python support on Windows is a great start, but you're still leaving out many developers and applications! True python support should be more portable between platforms. What is your timeline for adding support on OS X and *NIX platforms?

  • Job Title: R&D Engineer
  • Industry:
  • Application:
Response from MCC
Measurement Computing,
October 25, 2017
Thank you for your feedback. Developing an API for interacting with Universal Library in Python is an ongoing project, and Windows OS support is the first offering available. Our team is working on expanding this support to other Operating Systems, including Linux and Mac OSX. If you have an immediate need for assistance, please reach out to our support team.”
  • From: Somerville, MA
  • Company Size: 1-100
  • Software Used: Other

  • Ease of use
  • Value
  • Techincal Support

Was this review helpful? Yes (0) / No (0)

Python™ Support for MCC DAQ Products
October 13, 2017
Finally, Python Support!

We are currently using several of the USB series DAQs (USB-204/USB-1208) in our production process, love the product. Just wanted to drop a quick line to say a big thank you to MCC for releasing the Python wrapper for the universal library. We are moving towards more automated testing (with Python), so the addition of Python support to your product has been a huge help. Many thanks for all the good work you guys are doing.

  • Job Title: Manufacturing Engineer
  • Industry: Lasers
  • Application: Manufacturing test/verification
  • From:
  • Company Size: 1-100
  • Software Used: Other

  • Ease of use
  • Value
  • Techincal Support
Yes, I recommend this product!

Was this review helpful? Yes (0) / No (0)




I have installed Instacal and using universal Library for help, I am not able to communicate with this module. All I have to do is to make FIRSTPORTA to static High/Low. Do you have any code which works for USB-DIO24?

  • Job Title: POST SILICON VALIDATION ENGINEER
  • Industry: Engineering
  • Application: Trimming algorithm for Operational amplifiers
1 months ago
Sai Bangalore, India


Answers

from mcculw import ul from mcculw.enums import ULRange from mcculw.ul import ULError # d_config_port(board_num, port_type, direction) # board_num -> can be found in InstaCal, port_type -> FirstPortA/FirstPortB/FirstPortCL/FirstPortCH =10/11/12/13, direction -> In/Out = 2/1 ul.d_config_port(0,10,1) ul.d_config_port(0,11,1) ul.d_config_port(0,12,1) ul.d_config_port(0,13,1) # d_out(board_num, port_type, data_value) # Data value to be written in decimal[0-255] ul.d_out(0,10,15) # FIRST FOUR BITS ARE TURN ON IN FirstPortA[MAX 8 BITS] ul.d_out(0,11,15) # FIRST FOUR BITS ARE TURN ON IN FirstPortB[MAX 8 BITS] ul.d_out(0,12,15) # FirstPortCL IS CONTROLLED USING NIBBLES[MAX 4 BITS] ul.d_out(0,13,15) # FirstPortCH IS CONTROLLED USING NIBBLES[MAX 4 BITS] plesae refer universal library for help https://www.mccdaq.com/PDFs/Manuals/Mcculw_WebHelp/ULStart.htm

1 months ago
Sai Varun

Was this answer helpful? Yes (0) / No (0)

Hello Sai - Our Python support, including examples programs, are available at: https://github.com/mccdaq. Try running the console example program named: digital_out.py

1 months ago
Measurement Computing

Was this answer helpful? Yes (1) / No (0)

I'm looking to use your Linux driver and am wondering if the python support works with it

  • Job Title: Engineer
  • Industry: Water Treatment
  • Application: pump monitoring
2 months ago
JR Boston, MA


Answers

Our Python support is implemented as a wrapper around our Universal Library C API. Current support is for Windows only.

2 months ago
Measurement Computing

Was this answer helpful? Yes (2) / No (0)

1 Year Warranty

1 Year Warranty

All products are backed with a one year warranty. Buy with confidence.

30 Day Money Back Guarantee

30-Day
Guarantee

If you aren’t happy, simply return the product for a full refund (U.S. customers only).

Live Help

Live Help

Having trouble deciding which product is right for your application? Chat with one of our sales engineers.