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:

Programmable switching DC PSU series
Vepac Electronics Power Electronics / Power Management
The SPS6000X Series from Siglent is a programmable switching DC power supply with a wide range of single output and constant power features.

Read more...
PCB-mount 40 W converter
Vepac Electronics Power Electronics / Power Management
With an ultra-compact 2,5 x 2,5 mm package and a high-power density of 93 W/in3, these converters are optimised for efficiency and space-saving designs.

Read more...
InterCal introduces a new range of calibrators
Intercal Test & Measurement
Calibration is a critical process in numerous industries, from manufacturing to healthcare, ensuring that instruments and devices provide accurate and reliable measurements.

Read more...
Power Energy Meter for solar projects
Mimic Components Test & Measurement
The Mi550 Power Energy Meter is a handheld three-phase power quality analyser that connects externally with Rogowski coils or voltage-type CTs, allowing for testing without disconnection.

Read more...
MT8870A for NTN NB-IoT testing
Tamashi Technology Investments Test & Measurement
Samsung Electronics has selected the Anritsu Universal Wireless Test Set MT8870A for use on the mass-production lines of the Galaxy S25.

Read more...
XJLink-PF40 JTAG controller
ASIC Design Services Test & Measurement
XJTAG, a specialist in electronic testing, has released its new XJLink-PF40 JTAG controller together with version 4 of its popular PCB software testing suite.

Read more...
INTEGRA Biosciences’ reagent dispenser now supports SiLA-2 integration
Test & Measurement
This new functionality will make it even easier to integrate the WELLJET into automated laboratory workflows, helping labs to enhance their productivity and reproducibility.

Read more...
Computing in industrial environments
Vepac Electronics Computer/Embedded Technology
The Panasonic Toughbook CF-33/CF33 Tablet is a 12,0-inch fully rugged device with hot-swappable twin batteries and highly configurable capabilities.

Read more...
Advanced portable spectrum analyser
Vepac Electronics Test & Measurement
HAROGIC has introduced the SAE-200, a USB-based real-time spectrum analyser that operates from 9 to 20 GHz with a 100 MHz bandwidth.

Read more...
DDR5 DRAM series
Vepac Electronics Computer/Embedded Technology
Innodisk has announced its DDR5 6400 DRAM series featuring the industry’s largest 64GB single-module capacity.

Read more...