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:

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...
Wi-Fi dongle supports 5 GHz band
Vepac Electronics Telecoms, Datacoms, Wireless, IoT
The Edimax IEW-7811UTC is a dual-band 802.11ac USB adapter with a USB 2.0 connectivity that enables network connectivity with high-speed rates of up to 433 Mbps.

Read more...
The importance of contrast in fibre-optic sensing
Vepac Electronics Opto-Electronics
Contrast refers to the difference between the light signal that is transmitted through the fibre and the light signal that is received at the other end, and allows for the detection and measurement of small changes in physical parameters.

Read more...
RF shield box to 12 GHz
Vepac Electronics Enclosures, Racks, Cabinets & Panel Products
The HDRF-1467-S from RF Electronics has a thick RF-absorbing foam that deadens standing waves and reflections to provide more than 100 dB of isolation.

Read more...
DC converter for Hi-Rel applications
Vepac Electronics Power Electronics / Power Management
The MFK2812S from Crane Aerospace & Electronics is a DC-DC converter with an input voltage range of 16 to 50 V and an output of 12 V at up to 2,08 A.

Read more...
Telemetry retrofit for sustainable resource management
CST Electronics Test & Measurement
AquaMeter is a cost-effective secure telemetry retrofit that can easily be added to hundreds of millions of legacy mechanical water meters.

Read more...