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:

Compact high precision magnetometer
Future Electronics Test & Measurement
Bosch Sensortec has introduced the BMM350, a compact 16-bit, 3-axis magnetometer engineered to deliver high accuracy, low noise, and exceptional energy efficiency in space constrained designs.

Read more...
Ultra compact NTC thermistors
RS South Africa Test & Measurement
Murata Manufacturing Co. has expanded its compact NCU03 series of NTC thermistors with two ultra-small 0603M devices tailored for consumer and automotive designs.

Read more...
Omniflex uses LoRaWAN to track water usage
Omniflex Remote Monitoring Specialists Test & Measurement
Omniflex has helped New South Wales Ports improve its ability to track water usage by installing remote monitoring to 38 water meters at its Port Kembla site, sending the data to the NSWPorts web portal.

Read more...
Surviving the extremes: Understanding shock and vibration in MEMS sensors
Altron Arrow Editor's Choice Test & Measurement
By considering factors such as mechanical headroom, damping, and system-level robustness, designers can ensure that the chosen sensor not only survives, but performs reliably over time.

Read more...
Advanced pressure monitoring sensor
EBV Electrolink Test & Measurement
The Infineon KP497 is an advanced, highly integrated digital pressure sensor designed for demanding automotive and industrial applications, with a particular focus on battery management systems.

Read more...
Panasonic TOUGHBOOK 33 2-in-1 detachable
Vepac Electronics Computer/Embedded Technology
The Panasonic TOUGHBOOK 33 is a fully rugged 12-inch 2-in-1 detachable notebook designed to deliver unmatched flexibility, durability, and performance for mobile professionals working in demanding environments.

Read more...
MIL-Spec DC-DC power converters
Vepac Electronics Power Electronics / Power Management
PowerGood has introduced a range of 15 W to 600 W military DC-DC power converters engineered for mission critical defence applications.

Read more...
Robust power for mission-critical systems
Vepac Electronics Power Electronics / Power Management
PowerGood’s latest range of DC-DC brick-type converters is engineered specifically for high-end applications, providing a versatile power output from 50 W to 600 W.

Read more...
Slimline 150 W bench PSU
Vepac Electronics Test & Measurement
The PeakTech P 6222 is the company’s new, slim laboratory power supply that offers precisely adjustable output values of 30 V and 5 A with a continuous power output of 150W.

Read more...
Redefining edge intelligence in RF analysis
Vepac Electronics Test & Measurement
The HAROGIC PXR Series bridges the gap between benchtop-grade RF performance and high-performance edge computing.

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