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:

Generate waveforms at 10 GS/s
Vepac Electronics Computer/Embedded Technology
New flagship arbitrary waveform generator cards from Spectrum Instrumentation generate waveforms with 2,5 GHz bandwidth and 16-bit vertical resolution.

Read more...
60 MHz 16-bit AWG
Vepac Electronics Test & Measurement
Siglent’s SDG1000X Plus series function/arbitrary waveform generator offers a maximum output frequency of 60 MHz, 16-bit vertical resolution, 1 GSa/s sampling rate, and 8 Mpts arbitrary waveform length.

Read more...
AC programmable power
Accutronics Test & Measurement
TDK Corporation has announced the introduction of the TDK-Lambda brand GENESYS AC and GENESYS AC PRO series of 2 kVA and 3 kVA rated programmable AC power sources.

Read more...
SBC with Intel N-series processor
Vepac Electronics Editor's Choice
The UP 710S represents the evolution of the credit card-sized form factor, adding new, sought-after features and performance.

Read more...
A perfect match for next-gen computing
Vepac Electronics AI & ML
Teguar’s collaboration with Hailo marks a significant step forward in their mission to provide powerful and reliable computing solutions for a wide range of industries.

Read more...
AAEON introduces Amston Lake to processor options
Vepac Electronics AI & ML
Embedded computing company AAEON has launched the PICO-ASL4 and GENE-ASL6, both featuring the new Intel Atom x7000RE processor series for the edge.

Read more...
QA introduces large chisel tip style probes
Techmet Test & Measurement
The two new probes have a larger diameter to provide better contact reliability.

Read more...
Open-source flexibility for IoT gateway
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
The SRG-CM4 brings all the open-source flexibility of the Raspberry Pi OS and ecosystem to AAEON’s signature rugged, durable gateway design to create a truly industry-ready, modular system.

Read more...
HTML5 WebPanel with Linux, Android, or AutomationBrowser
Vepac Electronics Opto-Electronics
Having a front protection rating of IP65, and additional features such as Wi-Fi, Bluetooth, USB, RS232 integrated, these panels are an excellent solution for most industrial applications.

Read more...
Digital PSU with four variable outputs
Vepac Electronics Test & Measurement
The PeakTech 6215 is a laboratory power supply with four separate voltage outputs, each one infinitely variable using the rotary controls on the front of the unit.

Read more...