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:

Precision power for electronics testing
Vepac Electronics Test & Measurement
The PeakTech 6168 switching power supply is a versatile and reliable solution designed for professional applications in laboratories, development environments, service centres, and training facilities.

Read more...
200 W of power in a space-saving design
Vepac Electronics Manufacturing / Production Technology, Hardware & Services
The Hakko FX-972 Soldering Station delivers high-performance soldering in a compact package, making it suitable for a wide range of soldering applications.

Read more...
Cabinets for industrial applications
Vepac Electronics Enclosures, Racks, Cabinets & Panel Products
Verotec’s VERAK cabinets addresses the most stringent enclosure requirements providing both IP65 environmental protection and EMC screening.

Read more...
12-bit 1-wire temperature sensing
RS South Africa Test & Measurement
The DS18B20 digital thermometer from Analog Devices provides 9-bit to 12-bit Celsius temperature measurements in the range -55°C to 125°C.

Read more...
Ultra-fast wideband RF insight
Vepac Electronics Test & Measurement
The Harogix PXE-200 is a high-performance real-time spectrum analyser designed for demanding RF environments up to 20 GHz.

Read more...
Field calibration made easy
Instrotech Test & Measurement
Built around modern component technology, an intuitive interface, and a rugged IP54-rated housing, Instrotech’s Calog series is engineered for the demands of real industrial field calibration work.

Read more...
Rugged two-pole voltage tester
Vepac Electronics Test & Measurement
A key advantage of the PeakTech 1094 is its battery-free operation, ensuring the tester is always ready for use whenever required by professional electricians or maintenance personnel.

Read more...
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...









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