Data Acquisition (DAQ) and Control from Microstar Laboratories

New Data Acquisition Support for Python

Available Now with DAP Boards and DAPtools Basic

For more information, contact
marketing@mstarlabs.com

DAPtools for Python integrates the flexibility of Python with the real-time rigor of DAPL. Python image: Julien Tromeur/Shutterstock.com

Review the manual

Bellevue, WA, April 28, 2016 -- Microstar Laboratories, Inc., maker of Data Acquisition Processor (DAP) systems for PC-based high-performance measurement applications, has released DAPtools for Python, a software API extension that enables high-performance data acquisition applications written using the Python programming language. This is not a reduced or specialized language variant -- it supports the complete, full-featured Python environment. Typical applications would be ad hoc quick tests, or configurable scripting for test automation not bound to specific large application platforms.

Critical Data Acquisition Under Python? -- Maybe Not Crazy

Python is probably not the language you would first consider for an application where late service to a data acquisition or control process means a system failure. Like the fabled hare, Python can be quick, but never as reliable as the fabled tortoise.

In contrast, the DAPL operating system running on-board in a Microstar Laboratories Data Acquisition Processor system is dedicated to taking care of critical real-time details: never late, and never missing a sample. The high-rate, multi-channel data capture operations run in parallel with the host environment supporting the Python system. The DAPL system provides automatic data buffering and supports all data transfers. The Python system can receive the data on its terms, at whatever moments it is ready. About the only major concern is that eventually the Python application script must either accept all of the data it asks for, or clean up the leftovers.

The Programming Interface

The DAPIO programming interface behind DAPtools for Python provides the same stable connections to the DAPL system that C, C++, C#, Basic, Excel, and various other high-level programming environments have used over the last 20 years. It is packaged in DLL form, allowing access from the Python environment through the ctypes library. The special objects and data types of that library can be awkward for programmers to use directly. DAPtools for Python merely "wraps" the actual low-level interface, exposing a simple "interface object" and some utility functions that make the DAP interactions work like familiar Python objects and functions. The programming is a lot like connecting to a networked resource: open a connection, specify the data acquisition and preprocessing activity to perform, run the configuration, take the requested data, and close the connection when finished.

Availability

The DAPtools for Python interface is available now with the DAPtools Basic software package. This is provided at no added charge with purchase of any DAP or xDAP data acquisition system from Microstar Laboratories, and upgrades are available for download from the Web as they are issued. There are no ongoing maintenance subscription fees, no license renewal requirements, and no deployment restrictions for applications you develop. DAPtools for Python works with the DAPL 2000 system and DAP boards for PCI and PCI-X host systems, and also with the DAPL 3000 system and the xDAP data acquisition engines, on host systems operating Windows 10, Windows 8, Windows 7, Windows XP, or Windows Server. Contact Microstar Laboratories to obtain a copy of DAPtools Basic with the DAPtools for Python interface.

Resources

Conclusion / Editorial Overview

The DAPtools for Python API module from Microstar Laboratories extends capabilities previously accessible in C, C++, C#, Basic, and other programming environments, so that data acquisition applications operating under strict time constraints can be developed using the Python language. It is supplied as part of the DAPtools Basic Software that is provided with each DAP or xDAP product. This combines the best of both worlds, the regularity and precision of DAP systems, with the software flexibility of the Python environment.

# # #

Note to the Editor:

Microstar Laboratories suggests this text as a caption for the available image:

DAPtools for Python integrates the flexibility of Python with the real-time rigor of DAPL.

Snake image: Julien Tromeur/Shutterstock.com

Microstar Laboratories, Inc. Microstar Laboratories, Data Acquisition Processor, DAP, xDAP, DAPcell, DAPIO, DAPtools, DAPL, and DAPL 3000 as trademarks. Microsoft has registered Excel, Windows, and Windows Server as trademarks. "Python" and the Python logos are trademarks or registered trademarks of the Python Software Foundation. Other organizations may claim – or may have registered as trademarks – other trade names, logos, and service marks that appear in this document but not in the list above.

Microstar Laboratories makes it a practice to use an appropriate symbol at the first occurrence of a trademark or registered trademark name in a document, or to include trademark statements like this with the document.