是德科技
直播中

章伟

7年用户 176经验值
私信 关注
[问答]

如何使用matlab remote命令获得限制测试结果

嗨,我尝试使用matlab远程命令从VSA获取极限测试结果时遇到问题。
这些命令工作app.Display.Traces.SelectedItem.Markers.IsLimitVisible = true;
app.Display.Traces.SelectedItem.Markers.LimitName =“Test01”;
但我不知道限制测试结果的命令。
有人可以帮忙吗?

以上来自于谷歌翻译


     以下为原文

  Hi, I have a problem trying to get the limit test result from the VSA using matlab remote command.

These command worked  
app.Display.Traces.SelectedItem.Markers.IsLimitVisible = true;
app.Display.Traces.SelectedItem.Markers.LimitName = "Test01";

but I don't know the command to get to limit test result.  Can anyone help?  

回帖(5)

章伟

2019-4-17 15:17:32
目前我正在使用matlab使用.NET API远程控制VSA,我如何在自动化测试过程中切换到该特定命令的SCPI命令。
我需要在.NET API中找到等效命令。
请帮忙。

以上来自于谷歌翻译


     以下为原文

  Currently I am using matlab to remote control the VSA using .NET API, how can I in the middle of an automated test switch over to SCPI command for that specific command.  I need to find the equivalent command in .NET API.  Please help.
举报

h1654155275.5814

2019-4-17 15:36:50
引用: qwe047 发表于 2019-4-17 20:46
目前我正在使用matlab使用.NET API远程控制VSA,我如何在自动化测试过程中切换到该特定命令的SCPI命令。
我需要在.NET API中找到等效命令。
请帮忙。

我提到了SCPI命令,因为我没有.NET API,因此我无法搜索等效命令。
尝试打开API帮助并搜索CLIMIT Spacecase

以上来自于谷歌翻译


     以下为原文

  I referred to the SCPI command since I don't have the .NET API, so I can't do a search for the equivalent command.

Try opening the API help and search for CLIMIT

Spacecase
举报

章伟

2019-4-17 15:50:52
引用: kasonandy 发表于 2019-4-17 21:05
我提到了SCPI命令,因为我没有.NET API,因此我无法搜索等效命令。
尝试打开API帮助并搜索CLIMIT Spacecase

我打开了.NET API帮助,它有一个名为LimitResultData的类,并且它具有以下公共特性:显示,名称,结果,X,Y。我尝试了以下命令result = app.LimitTest.SelectedItem.LimitLines。
SelectedItem.Result;
但是,matlab给出了以下错误:没有适当的方法,属性或字段'LimitTest'用于类'Agilent.SA.Vsa.Application'。
我附上了类图供您查看。
希望能帮助到你。
非常感谢。

以上来自于谷歌翻译


     以下为原文

  I opened up .NET API help and it has a class called LimitResultData, and in it it has the following public proprerties: Display, Name, Result, X, Y.

I tried the following command 
result = app.LimitTest.SelectedItem.LimitLines.SelectedItem.Result;

However, matlab give me the following error No appropriate method, property, or field 'LimitTest' for class
'Agilent.SA.Vsa.Application'.

I attached the class diagram for you to view.  Hope it helps.  Thanks a lot.

附件

举报

h1654155275.5814

2019-4-17 16:10:24
引用: qwe047 发表于 2019-4-17 21:19
我打开了.NET API帮助,它有一个名为LimitResultData的类,并且它具有以下公共特性:显示,名称,结果,X,Y。我尝试了以下命令result = app.LimitTest.SelectedItem.LimitLines。
SelectedItem.Result;
但是,matlab给出了以下错误:没有适当的方法,属性或字段'LimitTest'用于类'Agilent.SA.Vsa.Application'。

我认为这可能是在LimitTest级别的树上,也可能是在Measurement Data(Trace下)或Measurement Class下。
它返回* current *测量的通过/失败状态与设定的限制。
顺便说一句,如果一个或多个限制测试处于活动状态,它将返回聚合通过/失败。
Spacecase

以上来自于谷歌翻译


     以下为原文

  I think this would either be up the tree at the LimitTest level or it could be under Measurement Data (under Trace) or Measurement Class.

It returns the Pass/Fail status of the *current* measurement against the set limits.

BTW, if one or more limit tests are active, it returns the aggregate pass/fail.

Spacecase
举报

更多回帖

发帖
×
20
完善资料,
赚取积分