Test & Measurement


Python package for digitisers and generators

31 July 2024 Test & Measurement

Spectrum Instrumentation has released an open-source Python package, named spcm, that is now available for the current line of all Spectrum Instrumentation test and measurement products. The new package makes the programming of all 200+ instruments, offering sampling rates from 5 MS/s to 10 GS/s, faster and easier.

Python, popular for its simplicity, versatility and flexibility, boasts an extensive collection of libraries and frameworks that significantly accelerates programming development cycles. The new spcm package allows users to take full advantage of the Python language by providing a high-level Object-Oriented Programming (OOP) interface that is specifically designed for the Spectrum Instrumentation Digitizer, AWG and Digital I/O products. It includes the full source code and many detailed examples. Available on GitHub, spcm is free of charge under the MIT licence.

Spectrum’s Python package safely handles the automatic opening and closing of cards, groups of cards and Ethernet instruments, and the allocation of memory for transferring data to and from these devices. All the device-specific functionality is capsulated in easy-to-use classes. This includes clock and trigger settings, hardware channel settings, card synchronisation, direct memory access and product features such as Block Averaging, DDS and Pulse Generator.

The package supports the use of real-world physical quantities and units (for example, ‘10 MHz’) enabling the user to directly program driver settings in their preferred unit. This removes the need for tedious manual conversions to cryptic API settings. Moreover, this package also includes support for calculations with NumPy and Matplotlib, allowing the user to easily handle incoming data using known tools. Detailed examples can be found in the GitHub repository.

The package is directly maintained by Spectrum engineers, and updates are released regularly offering bug-fixes and new features. It is available in the pip repository and is installed with a single command: $ pip install spcm


Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

IO-Link compatible fibre-optic sensor
Vepac Electronics Interconnection
The DFS71 is a digital fibre-optic sensor with configurable outputs: single output with remote input, redundant, complementary, and classic, which can all be configured as PNP (source), NPN (sink), or push/pull.

Read more...
GHA series expands with addition of 700 W
Vepac Electronics Power Electronics / Power Management
COSEL’s open-frame high power density, 700 W, 3 x 5-inch power supply is optimised for efficient cooling, making it suitable for use in demanding medical and industrial applications.

Read more...
Accurate laser measurement
Avnet Silica Test & Measurement
Online Teaser: Panasonic Industry’s laser sensor has a resolution of up to 0,5 µm, a linearity of ±0,05% FS, and a high-speed sampling of 100 µs.

Read more...
Handheld analyser with wide frequency range
Vepac Electronics Test & Measurement
The PXN-400 from Harogic is a handheld spectrum analyser that covers a frequency range of 9 kHz to 40 GHz, with an analytical bandwidth of 100 MHz.

Read more...
High-amplitude pulse generator
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
The innovative hardware architecture of the Pulse Rider Series provides the possibility to generate multiple pulse sequences, such as double, triple or quad pulses, with fully independent timing parameters.

Read more...
Real-time portable spectrum analyser
Vepac Electronics Test & Measurement
The SA series from HAROGIC Technologies is designed as a compact USB real-time spectrum analyser using low SWaP principles.

Read more...
Computers built for tough environments
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
Teguar’s waterproof computers are built for tough environments, where waterjets or strong chemicals are used for cleaning. They are fully dustproof and waterproof, ideal for food and beverage manufacturing, ...

Read more...
Space-qualified DC-DC converter
Vepac Electronics Power Electronics / Power Management
The MFL2828S from Crane Aerospace & Electronics is a space-qualified DC-DC converter with an input voltage range of 16 to 40 V, and an output voltage of 28 V.

Read more...
Decoding the world of DMP with OMRON
Omron Electronics Test & Measurement
OMRON has unveiled its latest breakthrough, the V450-H ultra-rugged handheld scanner, which is tailored specifically for industrial direct part mark reading.

Read more...
Three-phase high-efficiency PSU
Vepac Electronics Power Electronics / Power Management
COSEL has announced the launch of the HFA3500TF, a low-profile, 3-phase, 3-wire 3500 W AC/DC enclosed power supply design optimised for industrial equipment such as semiconductor manufacturing, laser processing machines and robotics.

Read more...