1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
好吧,我正在使用局域网上的SCPI命令从远程工作VSA。
使用'tcpip'函数通过matlab建立连接。 最近,该公司在服务器上安装了新版本的VSA(新版本为15,旧版本为13)。 所以目前这两个版本都安装在服务器上。 现在,当我试图建立局域网远程连接时(我总是以同样的方式),我一直连接到15版本(我想连接到13版本)。 我尝试更改SCPI端口,但它没有帮助......另外,我看到版本有不同的tcp / ip端口。 如何配置matlab将连接到哪个版本/端口? 谢谢,阿米尔 以上来自于谷歌翻译 以下为原文 HI all, I'm working on VSA from remote, using SCPI commands over LAN. The connection is being made through matlab, using the 'tcpip' function. Recently, the company installed new version of VSA on the server (new version is 15, the old one is 13). So currently both versions are installed on the server. Now, when I'm trying to establish the LAN remote connection (in the same way I always did), I keep getting connected to the 15 version (and I want to connect to 13 version). I tried changing the SCPI port, but it doesn't help... In addition, I see that the versions have different tcp/ip port. How do I configure, to which version/port the matlab will connect? Thanks, Amir |
|
相关推荐
3个回答
|
|
来自VSA SCPI参考... SYSTem:VSA:STARt命令/查询如果尚未运行,则启动89600 VSA的实例。
命令语法:: SYSTem:VSA:STARt [newInstance] [,version] [,hostname] [,port] [,waitSecs] [,createOptions] [,commandLineArgs] :: = 0 | 1 :: = String :: = String :: =整数number :: =整数number :: =整数number :: = String查询语法:: SYSTem:VSA:STARt? 返回:: = 0 | 1备注:newInstance:值为1或0的布尔值。默认值为1. version:要启动的89600 VSA软件的版本。 默认为空字符串,表示选择最新的可用版本。 hostname:主机名的字符串(当前为localhost或空字符串是唯一有效的值)。 默认为空字符串,表示使用localhost。 waitSecs:超时前等待多少秒。 使用小于或等于0的值无限期等待。 默认值为0(无限期等待)。 port:要使用的89600 VSA软件的整数端口号。 默认值为-1,表示使用默认端口号60189.createOptions:启动选项的整数位字段(有关详细信息,请参阅等效的.NET API文档)0 =无1 =使用32位应用程序2 =使用 64位应用程序默认值为0,它使用89600 VSA软件中的启动首选项。 commandLineArgs:命令行参数的字符串。 默认为空字符串。 有关更多详细信息,请参阅等效的.NET API文档。 版本15.0中添加了可选参数支持。 以上来自于谷歌翻译 以下为原文 From the VSA SCPI Reference... SYSTem:VSA:STARt command/query Starts an instance of the 89600 VSA if one is not running already. Command Syntax: :SYSTem:VSA:STARt [newInstance] [,version] [,hostname] [,port] [,waitSecs] [,createOptions] [,commandLineArgs] ::= 0 | 1 ::= String ::= String ::= Integer number ::= Integer number ::= Integer number ::= String Query Syntax: :SYSTem:VSA:STARt? Returns ::= 0 | 1 Remarks: newInstance: Boolean with value of 1 or 0. Default is 1. version: Version of the 89600 VSA Software to start. Default is empty string which indicates to pick the latest available version. hostname: String of the hostname (currently localhost or an empty string are the only valid values). Default is empty string which indicates to use localhost. waitSecs: How many seconds to wait before timing out. Use a value less than or equal to 0 to wait indefinitely. Default is 0 (wait indefinitely). port: Integer port number of the 89600 VSA Software to use. Default is -1 and indicates to use the default port number which is 60189. createOptions: Integer bit field of the startup options (see the equivalent .NET API documentation for more detail) 0 = None 1 = Use 32-bit application 2 = Use 64-bit application Default value is 0 which uses whatever the startup preferences are in the 89600 VSA Software. commandLineArgs: String of command line arguments. Default is empty string. See the equivalent .NET API documentation for more detail. The optional arguments support was added in version 15.0. |
|
|
|
谢谢大卫,但似乎没有帮助......我曾经在MATLAB中创建一个VSA对象,只需使用tcpip函数。
我输入的唯一参数是IP和端口。 我尝试更改13.0版本中的端口,但它们都改变了......每当我现在使用fopen时,IDN? 结果总是显示与15.0版本的连接(我想连接13.0)。 有谁知道如何选择我想连接的vesion? 以上来自于谷歌翻译 以下为原文 Thanks David, but seems like it doesn't help... I used to create a VSA object in MATLAB, simply using the tcpip function. The only parameters I'm entering, are the IP and the port. I tried changing the port in the 13.0 version, but it changes in both of them... Whenever I use fopen now, the IDN? result always shows connection to the 15.0 version (and I want to connect 13.0). Does anyone knows how to choose the vesion I want to connect to? |
|
|
|
zouqinxiang 发表于 2019-6-3 07:42 * IDN? 返回SCPI转换器模块的版本,而不是VSA的版本。 以下代码按预期启动VSA 13.0。 t.timeout = 120; %给VSA启动最多120秒(典型启动时间远短于2分钟)fprintf(t,':SYSTem:VSA:STARt 1,“13.0”'); 查询(吨, '* OPC?'); t.timeout = 10; %将超时重置为10秒isCreated = true; idn = query(t,'* IDN?'); fprintf(idn); %确保应用程序窗口可见fprintf(t,':DISPlay:ENABle 1'); 以上来自于谷歌翻译 以下为原文 *IDN? returns the version of the SCPI Translator Module, not the version of VSA. The following code starts VSA 13.0 as expected. t.timeout = 120; %Give VSA up to 120 seconds to start (typical startup times are much shorter than 2 minutes) fprintf(t, ':SYSTem:VSA:STARt 1,"13.0"'); query(t,'*OPC?'); t.timeout = 10; %Reset the timeout to 10 seconds isCreated = true; idn = query(t, '*IDN?'); fprintf (idn); % Ensure the application window is visible fprintf(t, ':DISPlay:ENABle 1'); |
|
|
|
只有小组成员才能发言,加入小组>>
1279 浏览 0 评论
2371 浏览 1 评论
2187 浏览 1 评论
2061 浏览 5 评论
2945 浏览 3 评论
1099浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
748浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
917浏览 0评论
1282浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 22:55 , Processed in 1.118882 second(s), Total 62, Slave 52 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号