Python control of NI RF Signal Generators using NI-RFSG
Project description
nirfsg
Python control of NI RF Signal Generators using NI-RFSG
Installation
> pip install nirfsg
Or, after cloning repo:
> pip install .
Documentation
Currently supported models:
- PXIe-5654
> from nirfsg import PXIe_5654
> sig_gen = PXIe_5654(<resource>)
> sig_gen.rf_frequency = 2e6 # Hz
> sig_gen.rf_power = 0 # dBm
> sig_gen.initiate()
...
> sig_gen.close()
As a context manager:
> with PXIe_5654(<resource>) as sig_gen:
sig_gen.rf_frequency = 20e9 # Hz
sig_gen.rf_power = 13 # dBm
sig_gen.initiate()
# do some measurements
Context manager will close the session at exit, which will stop generation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nirfsg-0.1.3.tar.gz
(15.9 kB
view hashes)
Built Distribution
nirfsg-0.1.3-py3-none-any.whl
(17.9 kB
view hashes)