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.”
Response from MCC
Measurement Computing,
October 11, 2018
Measurement Computing is happy to announce that we now have true Python support through our UL for Linux library. We now offer Open-source Linux support for the most popular MCC devices with interfaces for C and Python.
  • From: Somerville, MA
  • Company Size: 1-100
  • Software Used: Other

  • Ease of use
  • Value
  • Technical Support

Was this review helpful? Yes (4) / No (2)

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 (3) / No (1)




Does this python library support USB 5203/5201? I have these daq cards and am getting an error.

  • Job Title: engineer
  • Industry: hvac
  • Application:
1 months ago
karimi tyler, texas


Answers

Yes the USB-5200 series is listed as supported with Python on Windows. The USB-5200 models are primarily stand-alone logger. You must first manually configure a logging session in InstaCal (set sensor type, which channels to log, sample rate, etc). The logger cannot log to its memory card when connected to the PC. You disconnect the logger from the PC for all logging to the memory card. Normally folks then use InstaCal (or perhaps TracerDAQ), to quickly/manually convert the binary data files to text/CSV files for further analysis in Excel. There are UL datalogger calls that can be made to convert a data file, though these historically have not been popular. If a USB-5200 model is left connected to the PC 100% of the time, it does not behave like a stand-alone logger, but instead behaves like a USB-TC/TEMP, and data can be samples live via the TIn function. Again no data gets logged to the memory card when connected to the PC, so if you will use the logger always connected to the PC, then just call TIn (no need to call the Datalogger functions, which again, don’t setup or perform the data logging, they just extract data from a binary file).

1 months ago
Measurement Computing

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

  • Job Title: Sound Engineer
  • Industry:
  • Application:
5 months ago
Alex


Answers

It was decided to not include event support for that release. Today we have posted an unofficial example on our knowledgebase, that you can try: http://kb.mccdaq.com/KnowledgebaseArticle50769.aspx

5 months ago
Measurement Computing

Was this answer helpful? Yes (1) / 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:
16 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.

16 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
21 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

21 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

21 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
22 months ago
JR Boston, MA


Answers

MCC now has Linux support for the USB-DIO24 series, with our recent release of UL for Linux ver 1.1.0. The UL for Linux includes both Python and C/C++ support for MCC’s most popular USB devices.

5 months ago
Measurement Computing

Was this answer helpful? Yes (0) / 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.