Introduction
rs-mrt-dau-utilities
rs-mrt-dau-utilities package provides two convenient modules for Rohde & Schwarz Data Application Unit (DAU):
ip_analysis module for creating Polars dataframes from the SCPI results.
delay module for creating Polars dataframes from the centralservice.log file.
ip_analysis code:
from RsInstrument import *
import rs_mrt_dau_utilities.ip_analysis as ipana
cmx = RsInstrument('TCPIP::10.102.20.55::hislip0')
iden = cmx.query("*IDN?")
print(iden)
ip_analysis_res=cmx.query('FETCh:DATA:MEASurement:IPANalysis:RESult?')
parsed_sequences = ipana.ipanalysis_parse_scpi_result(ip_analysis_res)
list_of_dfs = ipana.ipanalysis_init_dataframes()
for sequence in parsed_sequences:
for message in sequence['json_messages']:
ipana.ipanalysis_update_dataframes(list_of_dfs, message)
print(list_of_dfs)
delay code:
import rs_mrt_dau_utilities.delay as delay
log_file_path = 'centralservice.log'
delay_df = delay.extract_delay_from_log(log_file_path)
print(delay_df)
Installation
You can install the package via pip:
pip install rs-mrt-dau-utilities
Note on Windows: You need the following additional dependencies if you get the error below: .. code-block:: bash
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/
You can install them with this command: .. code-block:: bash
vs_buildtools.exe –norestart –passive –downloadThenInstall –includeRecommended –add Microsoft.VisualStudio.Workload.NativeDesktop –add Microsoft.VisualStudio.Workload.VCTools –add Microsoft.VisualStudio.Workload.MSBuildTools
Check out the full documentation on ReadTheDocs.