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:

Multichannel AWGs for GHz signal generation
Vepac Electronics Test & Measurement
Spectrum Instrumentation has introduced its new flagship Arbitrary Waveform Generators with a maximum of 6 channels at 10 GS/s or 12 channels at 5 GS/s output speed.

Read more...
Shock-resistant connector series
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
ITT Cannon’s CA Bayonet connectors are a versatile and extremely reliable series with a proven ‘reverse bayonet’ coupling design that offers exceptional vibration protection.

Read more...
100ZR evaluation added to test instruments
Tamashi Technology Investments Test & Measurement
Anritsu Corporation has added 100ZR coherent optical transceiver evaluation to its portable Network Master Pro MT1040A/MT1000A testers, enabling comprehensive communication performance testing for the next-generation 100ZR standard.

Read more...
Multichannel digitisers
Vepac Electronics Test & Measurement
Spectrum Instrumentation has released new flagship digitisers with 12-bit resolution and a maximum of 6 channels at 10 GS/s or 12 channels at 5 GS/s acquisition speed.

Read more...
Aligning clocks over large distances
ASIC Design Services Test & Measurement
SkyWire technology from Microchip makes it easier to align and compare clocks within nanoseconds across geographic locations.

Read more...
Wi-Fi 6 USB dongle
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
Edimax has introduced the EW-7611UXB, a cutting-edge 2-in-1 Wi-Fi 6 AX900 and Bluetooth 5.3 USB adapter designed specifically for integration into IIoT and AIoT devices.

Read more...
Scalable power solutions up to 3 kW
Accutronics Test & Measurement
GAIA Converter has introduced the MGDM-500/P power module with a new parallel option for scalable power solutions up to 3 kW.

Read more...
DC PSU: The cornerstone for efficient solar-storage systems
Vepac Electronics Power Electronics / Power Management
PV energy storage systems are evolving and DC power supplies, with their technical characteristics that are naturally compatible with new energy, have become a key carrier for improving system energy efficiency.

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...
New technique for measuring DNA damage could improve cancer therapy
Test & Measurement
Scientists at the National Institute of Standards and Technology have developed a new technology for measuring how radiation damages DNA molecules.

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