Spectrum Instrumentation test and measurement (T&M) instruments present lineup gets brand-new open-source Python package called “spcm.” The new package offers quicker and easier programming for all 200+ instruments, with sampling speeds ranging from 5 MS/s to 10 GS/s.
By offering a high-level Object-Oriented Programming (OOP) interface created especially for the Spectrum Instrumentation Digitizer, AWG, and Digital I/O devices, the new spcm package enables users to fully utilize the Python programming language. It comes with several thorough examples and the entire source code. Under the terms of the MIT license, spcm is freely accessible on GitHub.
What Makes Python So Popular:
Python is well-known for its ease of use, adaptability, and flexibility. It also has a large library and framework collection (including NumPy) that greatly shortens the time it takes to write new code.
The automatic opening and shutting of cards, groups of cards, and Ethernet instruments, as well as memory allocation for data flow to and from these devices, are safely handled by Spectrum’s Python package.
Easy-to-use classes include all of the functionality unique to each device. This covers direct memory access (DMA), card synchronization, hardware channel settings, clock and trigger settings, and product features including DDS, pulse generator, and block averaging.
The Brand-New Open-Source Python Package Called “spcm” Supports:
- Use of real-world physical quantities and units (e.g. “10 MHz”).
- Enables the user to directly program driver settings in their preferred unit system.
- Removes the need for tedious manual conversions to cryptic API
- This spcm Open-Source Python Package includes support for calculations with NumPy and Matplotlib.
- Allow the user to handle data coming from, or going to, the products with the vast toolbox provided by those packages.
- Detailed examples can be found in the GitHub repository.
Installing the package is easy, thanks to its availability in the pip repository. Simply install Python and then the package with a single command: $ pip install spcm
Users can clone the repository to add more features or integrate the Spectrum Instrumentation Python package in their own apps. Spectrum engineers personally maintain the program, and updates containing bug fixes and new features are frequently provided.
The example in the photo shows the opening of the first analog-output card (AWG) and programming of a simple 10 MHz sine-wave output using the DDS option.
To Get The Spectrum Python Repository, CLICK HERE