是德科技
直播中

徐静

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

在本地USB棒上保存波形语法错误

我正在使用一套DSOX3SGM,分段存储器应用程序,用于3000 X系列示波器,由基于LabWindows的DAQ系统远程操作。
由于从所有示波器通过TCP / IP连接传输数据需要很长时间,我想将波形保存到我放在示波器上的相应USB驱动器上。
我可以手动完成。
但是,我想通过我的程序中的远程应用程序来完成它。
我使用以下语法:: SAVE:WAVeform:FORMAT ASCiixy:SAVE:WAVeform:LENGth max:SAVE:WAVeform:SEGMented ALL:SAVE:WAVeform:STARt \ u***  test.csv我的前三个命令成功执行,但第四个命令执行
永远不会工作
它说INST错误-101,无法识别的字符。
我正在使用C编码,我甚至printf我发送的命令,所有不同的选项,但没有成功。
请帮助我,我知道我在做一些愚蠢的错误。
非常感谢您的帮助。

以上来自于谷歌翻译


     以下为原文

  I am using a set of DSOX3SGM, Segmented Memory Application for 3000 X - Series Oscilloscopes remotely operated by a LabWindows based DAQ system. Since transfer of data from all the oscilloscopes through TCP/IP connection takes long time, I want to save the waveforms to the respective USB drives I put on the scopes. I can do it manually. However, I want to do it through remote application in my program. I used following syntaxes:

:SAVE:WAVeform:FORMat ASCiixy
:SAVE:WAVeform:LENGth max
:SAVE:WAVeform:SEGMented ALL
:SAVE:WAVeform:STARt \u***test.csv  

My first three commands executed successfully, but the fourth one never working.
It says INST Error -101, unrecognized character.

I am using C coding, I even printf the command which I sent, all different options, but no success.

Please help me, I know I am doing some silly mistake. Thank you very much for your help.  

回帖(6)

周菊

2019-2-28 09:23:19
从编程手册:命令语法:SAVE:WAVeform [:STARt] [] :: =引用的ASCII字符串尝试:SAVE:WAVeform:STARt“\ u***  test.csv”Al

以上来自于谷歌翻译


     以下为原文

  From the Programming Manual:

Command Syntax :SAVE:WAVeform[:STARt] []
                       ::= quoted ASCII string

Try :SAVE:WAVeform:STARt "\u***test.csv"

Al
举报

徐静

2019-2-28 09:31:45
引用: nvywyerwer 发表于 2019-2-28 09:23
从编程手册:命令语法:SAVE:WAVeform [:STARt] [] :: =引用的ASCII字符串尝试:SAVE:WAVeform:STARt“\ u***  test.csv”Al

以上来自于谷歌翻译

试过这个,但不行。

以上来自于谷歌翻译


     以下为原文

  Tried exactly this, but not working.
举报

周菊

2019-2-28 09:39:56
尝试使用正斜杠'/',而不是反斜杠''。
使用:SAVE?
重置范围后,查询当前设置是什么。
结果应该有正斜杠。


以上来自于谷歌翻译


     以下为原文

  Try a forward slash '/', instead of backslash ''.

Use a :SAVE? Query to see what the current settings are, after resetting the scope. The result should have the forward slash in it.

Al
举报

姜雨孜

2019-2-28 09:45:58
引用: nvywyerwer 发表于 2019-2-28 09:39
尝试使用正斜杠'/',而不是反斜杠''。
使用:SAVE?
重置范围后,查询当前设置是什么。

您好,答案是什么?
我有同样的问题,它不保存csv文件。
在范围上它表示文件名错误//获取CSV文件字符串csvPath1 =“”MyData “”;
myScope.DoCommand(“:SAVE:WAVeform:FORMat CSV”);
myScope.DoCommand(“:SAVE:FILename”+ csvPath1);
ResultQuery = myScope.DoQueryString(“:SAVE:Filename?”);
richTextBox1.Text = Convert.ToString(ResultQuery);
//它显示“MyData”myScope.DoCommand(“:SAVE:WAVeform:LENGth MAX”);
myScope.DoCommand(“:SAVE:WAVeform:STARt”+ csvPath1);
最诚挚的问候,编辑:pst_hw于2014年9月10日上午8:46

以上来自于谷歌翻译


     以下为原文

  Hello,

What is the correct answer? I have the same problem, it doesn't save the csv file. On the Scope it says 
File name error

// Get CSV File
String csvPath1 = ""MyData"";
myScope.DoCommand(":SAVE:WAVeform:FORMat CSV");
myScope.DoCommand(":SAVE:FILename " + csvPath1);

ResultQuery = myScope.DoQueryString(":SAVE:Filename?");
richTextBox1.Text = Convert.ToString(ResultQuery); // it shows "MyData"
        
              
myScope.DoCommand(":SAVE:WAVeform:LENGth MAX ");

myScope.DoCommand(":SAVE:WAVeform:STARt "+csvPath1);

Best Regards,

Edited by: pst_hw on Sep 10, 2014 8:46 AM
举报

更多回帖

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