嗨雅各布,参数: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
嗨雅各布,参数: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
举报