Skip to main content

Rohde & Schwarz SCPI Driver

Project description

Rohde&Schwarz Python SCPI Driver

Project goals:

  • Example python drivers

    • FSW, Vector Spectrum Analyzer
    • SMW, Vector Signal Generator
    • NRP, Power Sensor
    • VSE, Vector Signal Explorer
    • VST, Vectro Signal Transciever (FSW/SMW calls)
    • OSP, Switch Driver
    • NRQ, Frequency Selective Power Sensor
  • Example code

    • Automated test example
    • Instrument speed/repeatability evaluation
    • Proof of concept/Demo code
  • RSSD is in development.

    • Package APIs may change.
    • We recommend users "freeze/save" package version prior to use.

Drivers Structure:

  • Driver Structure:
    • Common Driver Call: pyvisa → yaVISA.py → <instr>_Common.py →
    • Instrument Options: pyvisa → yaVISA.py → <instr>_Common.py → <instr>_<OptionName>_Kxx.py
  • yaVISA: pyvisa wrapper
    • yaVISA.jav_Open(sFileName, sLogFile): Open VISA link
    • yaVISA.write(sSCPI): Write SCPI command
    • yaVISA.query(sSCPI): Query SCPI command
    • yaVISA.jav_logscpi(): Turn on "SCPI to file"
    • yaVISA.jav_OPC_Wait(sCmd): Wait for longer commands.
    • Please see yaVISA.py for full list of commands.

Instrument Drivers:

  • FSW: Vector Spectrum Analyzer
    • Developed & Tested with FSW
    • FSW & VSE share many commands.
    • Possible compatibility: VSE; FPS; FSV;
  • SMW: Vector Signal Generator
    • Developed & Tested with SMW
    • Possible compatibility: SGS; SGT; SMB; SMBV
  • NRP: Power Sensor
    • Developed & Tested with NRPxxS/SN sensors
  • VSE: Vector Signal Explorer SW
    • Developed & Tested with VSE
    • Drivers represent VSE commands not in FSW code
    • OFDMVSA K96 code resides here as well
    • Possible compatibility: FSW
  • VST: Vector Signal Transceiver
    • Code that calls both SMW & FSW
    • Typically protocol such as: LTE & 5GNR
  • OSP: Open Switch and Control Platform
    • Developed & TEsted with OSP120

Getting Started

Installing

    python -m pip install rssd

Running

  • Load example files in <Python Install Directory>\Lib\site-packages\rssd\examples
  • Change IP address to match instrument(s)
  • Run

Example Code:

| FileName                | Descriptions                       |
|-------------------------|------------------------------------|
| FSW_ACLR_Timing         | ACLR in Spectral Mode              |
| FSW_ACLR_IQ_Timing      | ACLR in IQ Analyzer                |
| FSW_CCDF                | CCDF in Spectral Mode              |
| FSW_IQCaptureTime       | IQ Capture time looping Fs         |
| NRP_BufferedContAvg     | Bufferened NRP measurement         |
| SMW_LoadArb.py          | Load Arb file into SMW             |
| OSP_Debug               | Generic OSP example                |
| VSE_ADemod.py           | VSE/FSW Analog FM Demod            |
| VSE_Debug.py            | VSE Raw SCPI                       |
| VSE_OFDM_1CC_K96.py     | VSE Single OFDM Carrier EVM w/ K96 |
| VSE_OFDM_MultiCC_K96.py | VSE Multi  OFDM Carrier EVM w/ K96 |
| VST_5GNR_EVMSpeed       | FSW K144 speed tests               |
| VST_5GNR_K144_Read      | Read SMW/FSW 5G NR Parameters      |
| VST_Sweep.py            | SMW/FSW Frequency Sweep            |

Project

  • Code Repository: GitHub
  • Author: Martin C Lim
  • License: This project is licensed under the R&S License for Royalty-Free Products- see the LICENSE file for details

References

Driver Description User Manual Models
SMW Vector Signal Generator User Manual SMW; SMBV; SGT; SGS; SMA
FSW Vector Signal Analyzer User Manual FSW; FSVA;
VSE Vector Analysis Software User Manual VSE
CMW Basestation Emulator User Manual CMW500; CMW100
NRP Three Path Power Sensor User Manual NRP; NRPM
NRQ Freq Selective Pwr Sensor User Manual Options
OSP Switch Matrix User Manual OPS1xx; OPS2xx
VNA Network Analyzer User Manual ZVA; ZNA; ZNB

Acknowledgments

Acknowledgments

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

rssd-0.1.12.tar.gz (57.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page