Metadata-Version: 2.1
Name: rskfd
Version: 0.7.2
Summary: Python Package for Instrument Control and Data Handling
Home-page: https://gitlab.com/ramian/rskfd
Download-URL: https://gitlab.com/ramian/rskfd/
Author: Florian Ramian
Author-email: gitlab@ramian.eu
License: MIT
Keywords: INSTRUMENT CONTROL,RAW SOCKET,I/Q DATA,WV,IQ.TAR
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.0
Description-Content-Type: text/markdown
License-File: license.txt
Requires-Dist: numpy

# rskfd

## Description

Python package for instrument control and I/Q data handling (R&S formats). Instrument control uses raw socket connections.

- Software is provided as is.
- Package APIs may change; pin the version you use.
- This is not an official Rohde & Schwarz package.

## Overview

Package layout:

```
rskfd/
- iq_data_handling/   # I/Q data and file handling
- remote_control/     # Remote connections to measurement instruments
- signal_generation/  # Signal generation
- helper/             # Additional utilities
- snp_handling/       # S-parameter file handling
```

## Installing

```bash
pip install rskfd
```

## Usage

### Instrument Control

Test connection to an instrument (default port 5025):

```python
import rskfd

myinstrument = rskfd.instrument("192.168.1.100")
myinstrument.Connect()
myinstrument.Write("*IDN?")
print(myinstrument.Read())
myinstrument.Close()
```

### iq.tar File Handling

Generate white Gaussian noise and save it as an `iq.tar` file (100 MHz sample rate):

```python
import rskfd

iq = rskfd.CreateWGNSignal(NoisePower=-40, RecordLength=10000, BandLimit=0.8)
rskfd.WriteIqTar(iq, 100e6, "demo.iq.tar")
```
