是德科技
直播中

胡皓

8年用户 193经验值
私信 关注
[问答]

DSO6014L如何发送参数?

大家好,我将使用DSO6014L中的掩码选项。
我的问题是我想不时将我的CVI应用程序中的MASK数据发送到示波器。
根据InfiiiVision 6000系列示波器程序员指南,可以使用:MTEST:DATA命令。
但我似乎无法找到,以正确的方式格式化MASK参数。
当我在示波器上制作自动MASK并使用:MTEST:DATA?
检索设置参数的命令,我得到的参数看起来与示波器生成的.msk文件中的相似。
有人举例说明如何发送参数吗?
亲切的,雅各布

以上来自于谷歌翻译


     以下为原文

  Hi all,

I am going to use the mask option in the DSO6014L.
My problem is that i want to send the MASK data from my CVI application to the Oscilloscope from time to time.
As per the InfiiiVision 6000 series Oscilloscope Programmer´s guide, the :MTEST:DATA command can be used.
But i can´t seem to find out, to format the MASK parameters the right way.
When i make a auto MASK on the Oscilloscope and using the :MTEST:DATA? command to retrieve the setup parameteres, i get the parameters looking close to as they look like in the .msk file generated by the oscilloscope.

Anybody having a example on how to send the parameters?

Kind regads, Jacob  

回帖(2)

张依弛

2019-5-7 07:56:03
嗨雅各布,参数:MTEST:DATA命令是二进制块格式。
我目前正在查看3000X编程指南(我假设6000A编程指南将有相同的内容),并且有一个关于如何在“编程示例”部分中以二进制块格式发送数据的示例。
以下是C#示例的片段://从文件中读取设置字符串。
strPath =“c:\ scope \ config \ setup.stp”;
DataArray = File.ReadAllBytes(strPath);
nBytesWritten = DataArray.Length;
//恢复设置字符串
myScope.DoCommandIEEEBlock(“:SYSTem:SETup”,DataArray);
Console.WriteLine(“恢复设置字节:{0}”,nBytesWritten);
您只需要使用mask test命令替换SCPI命令。
如果您仍有问题,请告诉我 - 然后我会提供完整的代码示例,专门用于上传掩码数据。
谢谢。编辑:ee_pro于2012年10月4日上午7:48

以上来自于谷歌翻译


     以下为原文

  Hi Jacob,

The parameter for :MTEST:DATA command is in binary block format. 

I'm currently looking at the 3000X programming guide (and I assume the 6000A programming guide will have the same thing), and there is an example on how to send data in binary block format in the "Programming Examples" section.  Here is a snippet of a C# example:

     // Read setup string from file.
      strPath = "c:\scope\config\setup.stp";
      DataArray = File.ReadAllBytes(strPath);
      nBytesWritten = DataArray.Length;

      // Restore setup string.
      myScope.DoCommandIEEEBlock(":SYSTem:SETup", DataArray);
      Console.WriteLine("Setup bytes restored: {0}", nBytesWritten);

You just need to replace the SCPI command with your mask test command.

Let me know if you still have problems -- I'll then come up with full code example specifically on uploading mask data.

Thanks.

Edited by: ee_pro on Oct 4, 2012 7:48 AM
举报

胡皓

2019-5-7 08:13:35
谢谢。
我从丹麦的安捷伦经销商处获得了一个代码示例,并将其付诸实施。
整个问题是你必须在.msk文件中添加一种标题,其中包含“#8 + .msk文件的大小,字符串必须用”0“填充,所以它将是9位长。然后
掩码字符串看起来像这样:#800003316 + .msk文件中的数据。问候雅各布。

以上来自于谷歌翻译


     以下为原文

  Thanks.
I got a code example from a Agilent dealer in Denmark and got it to work.

The whole problem is that you have to add a kind of header to the .msk file which contains "#8 + the size of the .msk file, the string must be filled with "0" so it will be 9 digit long. Then the mask string will look something like this: #800003316+the data from the .msk file.

Regards Jacob.
举报

更多回帖

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