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 for Windows. Linux support is available as part of the MCC Universal Library for Linux package.

The mcculw package contains an API (Application Programming Interface) for interacting with Universal Library in Windows.

The uldaq package contains an API for interacting with Universal Library for Linux.

Both packages are implemented in Python as a wrapper around the Universal Library C API using the ctypes Python Library. Both were developed and are supported by MCC.

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

Contact MCC directly for products not listed.



Part Number Description Qty Price
Python Support for MCC DAQ Products Python™ is a powerful object-oriented programming language. Open-source Python™ support is available for many MCC DAQ products.

Product Reviews


2.5 / 5
Ease of Use
2.5 / 5
Value
3 / 5
Technical 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
  • Technical 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
  • Technical Support
Yes, I recommend this product!

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




Hi, I'm trying to run the example codes using a USB-1608FS-PLUS but I don't know which is the PID number for this daq, so I get a 'Could not find a supported device.' message.

  • Job Title: Student
  • Industry:
  • Application:
3 months ago
YM


Answers

If by PID you mean the hardware model’s “Product ID” that can be found using Window’s Device Manager: Locate the USB-1608FS-PLUS under DAS components. But none of our Python examples specifically ask for a PID/device ID. For our Console examples, you do not have to first run our InstaCal utility. You need only have the device attached to USB port of the PC, and then try running one of these examples: a_in.py, a_in_foreground.py, v_in.py If you are running one of our GUI examples, you must first run InstaCal to have the hardware added to its board list. Then try running one of these examples: ULAI01.PY, ULAI03.py, VIn01.py.

3 months ago
Measurement Computing

Was this answer 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
8 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

8 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

8 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
9 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.

9 months ago
Measurement Computing

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

Universal Library Help     


Supported Products        

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.