R&S CMW官方相关手册网址个人便签
百度了好久CMW的SCPI命令手册,然后突然发现官网有给手册网址,但是百度没有收录,故搬运粘贴到此。
关键文档网址:[主要为Python,其他语言也可以参考一下SCPI指令]
-基础: 【个人建议先看这个】
https://RsCmwBase.readthedocs.io/
-全球通用射频:
https://RsCmwGprfGen.readthedocs.io/
https://RsCmwGprfMeas.readthedocs.io/
蓝牙:
https://RsCmwBluetoothSig.readthedocs.io/
https://RsCmwBluetoothMeas.readthedocs.io/
- LTE:
https://RsCmwLteSig.readthedocs.io/
https://RsCmwLteMeas.readthedocs.io/
- CDMA2000:
https://RsCmwCdma2kSig.readthedocs.io/
https://RsCmwCdma2kMeas.readthedocs.io/
- 1 xevdo:
https://RsCmwEvdoSig.readthedocs.io/
https://RsCmwEvdoMeas.readthedocs.io/
- WCDMA:
https://RsCmwWcdmaSig.readthedocs.io/
https://RsCmwWcdmaMeas.readthedocs.io/
- GSM:
https://RsCmwGsmSig.readthedocs.io/
https://RsCmwGsmMeas.readthedocs.io/
- WLAN:
https://RsCmwWlanSig.readthedocs.io/
https://RscmwWlanMeas.readthedocs.io/
- DAU:
https://RsCMwDau.readthedocs.io/
示例:https://github.com/Rohde-Schwarz/Examples/
1.C:[原文件名:C SCPI包RsCmw.txt]
机器翻译结果:
Rohde和Schwarz的c# CMW仪器驱动程序。
驱动程序遵循仪器的scpi树结构。
例如,SCPI命令:
系统:参考:频率源
表示为:
Driver.System.Reference.Frequency.Source
支持仪器:CMW500、CMW100、CMW270、CMW280
示例:https://github.com/Rohde-Schwarz/Examples/
这些包托管在这里:https://www.nuget.org/packages?q=RsCmw
--------------------------------------------------------------------------------<
前提条件:—已安装R&S VISA 5.12+或NI VISA 18.0+
-如果您选择插件SocketIO,则无需安装VISA
-您的项目使用以下框架之一(或更新的)
- .NET Core 3.1
- .NET标准2.1
- .NET框架4.5
- .NET框架4.8
--------------------------------------------------------------------------------
安装:
选项1 -从 https://www.nuget.org 在线安装
-在你的Visual Studio中,进入顶部菜单Tools >NuGet包管理器->管理NuGet包的解决方案…
-在右上角,` Package source `选择` nuget.org `
-在左上角,选择选项卡` Browse `,在搜索框中,输入` RsCmw `。选择找到的所需固件应用程序。
-在右侧,选择要引用该包的项目,并点击Install按钮
选项2 -离线安装:
-最简单的方法是为NuGet包建立一个本地仓库(只是一个简单的文件夹)。
-创建一个文件夹并复制所有的*. txt文件。Nupkg文件在那里
-在你的Visual Studio中,进入顶部菜单Tools >NuGet包管理器->管理NuGet包的解决方案…
-在右上角的` Package source `控件附近,点击齿轮图标
—按“+”图标。给你的新仓库起个名字,例如:` Local `,并将` Source `导航到你创建的文件夹
-之后,将` Package source `更改为您的` Local `
-在左上角,选择“浏览”选项卡
-选择所需的包并将其安装到您的项目中。
原文:
Rohde & Schwarz CMW Instrument drivers for C#.
The drivers follow the SCPI-tree structure of an instrument.
For example, the SCPI command:
SYSTem:REFerence:FREQuency:SOURce
is represented as:
Driver.System.Reference.Frequency.Source
Supported instruments: CMW500, CMW100, CMW270, CMW280
Examples: https://github.com/Rohde-Schwarz/Examples/
The packages are hosted here: https://www.nuget.org/packages?q=RsCmw
--------------------------------------------------------------------------------<
Preconditions: - Installed R&S VISA 5.12+ or NI VISA 18.0+
- No VISA installation is necessary if you select the plugin SocketIO
- Your project uses one of the following Frameworks (or newer)
- .NET Core 3.1
- .NET Standard 2.1
- .NET Framework 4.5
- .NET Framework 4.8
--------------------------------------------------------------------------------
Installation:
Option 1 - online installation from https://www.nuget.org:
- In your Visual Studio go to the top menu Tools -> NuGet Packet Manager -> Manage NuGet Packages for Solution...
- At the top right, 'Package source' select 'nuget.org'
- At the top left, select the tab 'Browse' , in the search box, enter 'RsCmw'. Select the desired found firmware application.
- On the right side, check the project(s) in which you want to reference the package, and hit Install button
Option 2 - offline installation:
- The easiest way is to set up a local repository (just a simple folder) for NuGet Packages.
- Create a folder and copy all the *.nupkg files there
- In your Visual Studio go to the top menu Tools -> NuGet Packet Manager -> Manage NuGet Packages for Solution...
- At the top right, near the 'Package source' control, click on the cog wheel icon
- Press plus icon. Give your new repository a name e.g.: 'Local' and for the 'Source' navigate to your created folder
- After that, change the 'Package source' to your 'Local'
- At the top left, select the tab 'Browse'
- Select the desired package and install it to your project(s).
2.Python:[Python SCPI包RsCmw.txt]
机器翻译结果:
Rohde和Schwarz的Python CMW仪器驱动程序。
驱动程序遵循仪器的scpi树结构。
例如,SCPI命令:
系统:参考:频率源
表示为:
driver.System.Reference.Frequency.Source
支持仪器:CMW500、CMW100、CMW270、CMW280
文档:
-基础:
https://RsCmwBase.readthedocs.io/
-全球通用射频:
https://RsCmwGprfGen.readthedocs.io/
https://RsCmwGprfMeas.readthedocs.io/
蓝牙:
https://RsCmwBluetoothSig.readthedocs.io/
https://RsCmwBluetoothMeas.readthedocs.io/
- LTE:
https://RsCmwLteSig.readthedocs.io/
https://RsCmwLteMeas.readthedocs.io/
- CDMA2000:
https://RsCmwCdma2kSig.readthedocs.io/
https://RsCmwCdma2kMeas.readthedocs.io/
- 1 xevdo:
https://RsCmwEvdoSig.readthedocs.io/
https://RsCmwEvdoMeas.readthedocs.io/
- WCDMA:
https://RsCmwWcdmaSig.readthedocs.io/
https://RsCmwWcdmaMeas.readthedocs.io/
- GSM:
https://RsCmwGsmSig.readthedocs.io/
https://RsCmwGsmMeas.readthedocs.io/
- WLAN:
https://RsCmwWlanSig.readthedocs.io/
https://RscmwWlanMeas.readthedocs.io/
- DAU:
https://RsCMwDau.readthedocs.io/
示例:https://github.com/Rohde-Schwarz/Examples/
这些包托管在这里:https://pypi.org/search/?q=rscmw
原文:
Rohde & Schwarz CMW Instrument drivers for Python.
The drivers follow the SCPI-tree structure of an instrument.
For example, the SCPI command:
SYSTem:REFerence:FREQuency:SOURce
is represented as:
driver.System.Reference.Frequency.Source
Supported instruments: CMW500, CMW100, CMW270, CMW280
Documentation:
- Base:
https://RsCmwBase.readthedocs.io/
- Global Purpose RF:
https://RsCmwGprfGen.readthedocs.io/
https://RsCmwGprfMeas.readthedocs.io/
- Bluetooth:
https://RsCmwBluetoothSig.readthedocs.io/
https://RsCmwBluetoothMeas.readthedocs.io/
- LTE:
https://RsCmwLteSig.readthedocs.io/
https://RsCmwLteMeas.readthedocs.io/
- CDMA2000:
https://RsCmwCdma2kSig.readthedocs.io/
https://RsCmwCdma2kMeas.readthedocs.io/
- 1xEVDO:
https://RsCmwEvdoSig.readthedocs.io/
https://RsCmwEvdoMeas.readthedocs.io/
- WCDMA:
https://RsCmwWcdmaSig.readthedocs.io/
https://RsCmwWcdmaMeas.readthedocs.io/
- GSM:
https://RsCmwGsmSig.readthedocs.io/
https://RsCmwGsmMeas.readthedocs.io/
- WLAN:
https://RsCmwWlanSig.readthedocs.io/
https://RscmwWlanMeas.readthedocs.io/
- DAU:
https://RsCMwDau.readthedocs.io/
Examples: https://github.com/Rohde-Schwarz/Examples/
The packages are hosted here: https://pypi.org/search/?q=rscmw
Python控制示例代码:[原文件名:python控制代码.txt]
###############################################################################
#
# Rohde & Schwarz GmbH & Co. KG
# 1MA295 Characterization of LoRa Devices
# Production Testing with CMW100
#
#
###############################################################################
import visa
import math
# Variables #
c_frq = 902000000 # Center Frequency in Hz
att_out = 0.00 # External Attenuation (Input) in dB
lev = -30.00 # Level (RMS) in dBm
dga = 0.00 # Digital Gain in dB
# Arbitrary Waveform File #
arbfile = "C:\ProgramData\Rohde-Schwarz\CMW\Data\waveform\KW683_LoRa_125kHz_1frame.wv"
# User Information #
print("----------------------------------------------------------------------")
print("\nRohde & Schwarz GmbH & Co. KG")
print("1MA295 Characterization of LoRa Devices ")
print("Production Testing with CMW100")
print("----------------------------------------------------------------------")
# R&S CMW: General Setup #
print("----------------------------------------------------------------------")
print("R&S CMW100: General Setup.")
print("----------------------------------------------------------------------")
CMW.write("*RST") # Reset Device.
CMW.write("*CLS") # Clear Status.
CMW.ask("*OPT?") # Option Query.
CMW.ask("*IDN?") # Query ID String.
# R&S CMW: General Purpose Generator #
print("----------------------------------------------------------------------")
print("R&S CMW100: General Purpose Generator.")
print("----------------------------------------------------------------------")
# Select Connectors and Signal Paths:
CMW.write("ROUT:GPRF:GEN:SCEN:SAL R118, TX11")
# Activate/Deactivates RF Connectors:
CMW.write("CONF:GPRF:GEN:CMWS:USAG:TX:ALL R118, ON, ON, ON, OFF, OFF, OFF, OFF, OFF")
CMW.write("SOUR:GPRF:GEN:RFS:EATT " + str(att_out)) # Define External Attenuation.
CMW.write("SOUR:GPRF:GEN:RFS:FREQ " + str(c_frq)) # Define Center Frequency.
CMW.write("SOUR:GPRF:GEN:RFS:LEV " + str(lev)) # Define Base RMS Level.
CMW.write("SOUR:GPRF:GEN:RFS:DGA " + str(dga)) # Define Digital Gain.
CMW.write("SOUR:GPRF:GEN:BBM ARB") # Set Baseband Mode to ARB.
CMW.write("SOUR:GPRF:GEN:ARB:REP CONT") # Set Reputation to Continuous.
CMW.write("SOUR:GPRF:GEN:ARB:FILE '" + str(arbfile) + "'") # Select ARB File.
CMW.write("SOUR:GPRF:GEN:STAT ON") # Turn ON the Generator.
# User Information #
print("----------------------------------------------------------------------")
print("Executing Script finished!")
print("----------------------------------------------------------------------")
说明:
1.本文章原文为R&S官方网站上所找到的;
2.为什么文章类型为原创,额,因为我找不到之前下载文档的网页了;
注:本文章只是个人便签以及方便后来人查找相关资料,并没有其他目的,如有侵犯请联系本人删除。