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:

Robotics platform powers intelligent systems
Vepac Electronics AI & ML
The CEXD-INTRBL open robotics development system combines high-performance AI processing, sensor integration, and motion control into a compact embedded platform.

Read more...
Rapid IoT prototyping simplified
Future Electronics Test & Measurement
The STEVAL-MKBOXPRO from STMicroelectronics is a compact, ready-to-use wireless development kit designed to accelerate the creation of intelligent IoT and wearable applications.

Read more...
High reliability MRI RF tubes
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
MRI RF amplifier tubes and MRI IPA tubes play an essential role in keeping medical imaging systems stable and accurate.

Read more...
High speed precision digital multimeters
Vepac Electronics Test & Measurement
Siglent Technologies has expanded its precision measurement portfolio with the SDM4000A Series digital multimeters, delivering a powerful combination of speed, accuracy, and usability for modern automated test environments.

Read more...
Advanced Layer 2 industrial switches
Vepac Electronics Computer/Embedded Technology
The Raptor EP4200 and EP5200 series switches provide advanced Layer 2 switching capabilities with high performance and availability tailored for demanding critical infrastructure and energy applications.

Read more...
Non-contact linear position sensor
Electrocomp Test & Measurement
The Vishay 40 LHE Linear Position Sensor, designed for industrial motion control and automation, delivers robust, non-contact measurement performance using Hall effect technology.

Read more...
Aluminium case upgrade boosts performance
Vepac Electronics Power Electronics / Power Management
The SQBF Quarter Brick 300 W DC to DC Converter is now available in a newly upgraded metal case designed to deliver improved durability and superior electrical performance across demanding applications.

Read more...
Versatile outdoor waterproof connectors
Vepac Electronics Interconnection
The LP-20 outdoor waterproof connector series offers a versatile range of rugged, circular connectors with 2, 3, 4, 5, 7, 8, 9, 12 and 14-pin configurations.

Read more...
Rugged AI PC for industry
Vepac Electronics AI & ML
Designed to operate where conventional systems fall short, the TB-7145-MVS compact industrial PC supports advanced machine inferencing, real-time data handling, and high-performance graphics workloads without compromise.

Read more...
Real-time monitoring for smart power distribution
CST Electronics Test & Measurement
By leveraging high-precision measurement, high-speed wave-recording, and AI-enabled analytics, the InHand Wireless Overhead-lines System empowers power utilities to accurately identify line faults and perform comprehensive load analysis.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved