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:

SIGLENT launches new 8 GHz DSO
Vepac Electronics Test & Measurement
SIGLENT has unveiled the enhanced SDS7000A/AP models, building on the success of its SDS7000A high-resolution digital oscilloscope series.

Read more...
Multi-functional high-res oscilloscopes
Coral-i Solutions Test & Measurement
RIGOL Technologies has launched two powerful additions to its oscilloscope portfolio that are tailored to meet the growing challenges of power electronics, automotive systems, and high-speed digital designs.

Read more...
TDK expands programmable PSU series
Accutronics Test & Measurement
With a 3U high chassis, the GAC and GAC-PRO provide extremely high-power density for a fully featured programmable AC power source.

Read more...
Mission-critical RF transceiver
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
The Iris SQN9506 from Sequans Communications is a wide-band RF transceiver that operates from 220 MHz to 7,125 GHz.

Read more...
Analysing magnetic fields
Accutronics Test & Measurement
The engineers at Narda Safety Test Solutions have achieved a breakthrough in isotropic measurement and analysis of low-frequency magnetic fields in the form of their latest digital H-field probe.

Read more...
Smallest 13th gen Intel SBC
Vepac Electronics Computer/Embedded Technology
At just 86 x 55 mm, the de next-RAP8 continues AAEON’s run of producing record-breaking single-board computers with embedded Intel technology.

Read more...
A new class of sampling scope
Comtest Test & Measurement
The PicoScope 9400A Series combines the huge analogue bandwidth of sampling oscilloscopes with the triggering architecture of real-time oscilloscopes.

Read more...
Versatile PoE extender
Vepac Electronics Computer/Embedded Technology
The GP-101ET PoE+ Extender is a 1-port Gigabit PoE extender with plug and play installation requiring neither configuration nor extra electrical power.

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









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