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:

Single channel, programmable PSU
Electrocomp Express Test & Measurement
Rohde & Schwarz’ NGC101 is a NGC100-series power supply with a wide range of functions that make them ideal for use in development labs and industrial environments.

Read more...
Next-gen LineScan camera
Eagle Africa Technology Test & Measurement
New Imaging Technologies has launched the new LiSaSWIR, its next-generation SWIR LineScan camera and sensor.

Read more...
Ultra-portable spectrum analyser
Vepac Electronics Test & Measurement
The PXN-400Z from Harogic is a handheld spectrum analyser covering a frequency range of 9 kHz to 40 GHz with a 100 MHz analysis bandwidth.

Read more...
Why your next oscilloscope should be PC-based
Comtest Test & Measurement
For decades, traditional benchtop oscilloscopes have been a cornerstone of engineering, offering reliability, precision, and familiarity. However, as technology evolves, so do the tools we rely on.

Read more...
Versatile 3-in-1 instrument
Vepac Electronics Test & Measurement
The ARB Rider AWG-2000 is the cost-effective and powerful two or four channel arbitrary function generator and two or four channel arbitrary waveform generator with advanced sequencer functionality.

Read more...
Analyser and voltmeter capability added to portable instruments
Tamashi Technology Investments Test & Measurement
Anritsu Company had added Vector Network Analyzer and Vector Voltmeter measurements to their industry standard Site Master instruments.

Read more...
EEPROMs for industrial and military markets
Vepac Electronics DSP, Micros & Memory
Designed to ensure the data retention and the secure and safe boot of digital systems, the memory product line includes small and medium density EEPROMs from 16 kb to 1 Mb.

Read more...
Marktech’s latest LEDs and photodiodes
NuVision Electronics Test & Measurement
Designed for precision sensing and emission tasks, Marktech’s optoelectronic lineup serves medical, industrial, aerospace, and environmental markets.

Read more...
MEMS air quality sensor
Future Electronics Test & Measurement
Bosch Sensortec’s BME690 is the latest-generation gas sensor that combines advanced monitoring capabilities with innovative artificial intelligence functionality.

Read more...
Multi-channel downconverter
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
The Downconverter from Crane Aerospace is a converter that operates from 2 to 18 GHz and delivers a noise figure of 11 dB with an attenuation range of 25 dB.

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