完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在使用一套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个回答
|
|
|
从编程手册:命令语法: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 |
|
|
|
|
nvywyerwer 发表于 2019-2-28 09:23 试过这个,但不行。 以上来自于谷歌翻译 以下为原文 Tried exactly this, but not working. |
|
|
|
|
|
尝试使用正斜杠'/',而不是反斜杠''。
使用: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 |
|
|
|
|
|
您好,答案是什么? 我有同样的问题,它不保存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 |
|
|
|
|
|
而不是:: SAVE:WAVeform:STARt \ u*** test.csv尝试:: SAVE:WAVeform:STARt“\ u*** \ test.csv”(编辑器在u***之后添加CR.2反斜杠)如果整个
命令在字符串内部尝试:“:SAVE:WAVeform:STARt ”\ u*** \ test.csv “”编辑:Randy M于2014年11月13日下午6:32 以上来自于谷歌翻译 以下为原文 Instead of: :SAVE:WAVeform:STARt \u***test.csv Try: :SAVE:WAVeform:STARt "\u***\test.csv" (the editor is adding a CR. 2 backslashes after u***) If the whole command is inside of a string try: ":SAVE:WAVeform:STARt "\u***\test.csv"" Edited by: Randy M on Nov 13, 2014 6:32 PM |
|
|
|
|
***kwnefd 发表于 2019-2-28 09:58 您必须首先使用:SAVE:PWD命令设置驱动器。 例如:: SAVE:PWD“ u***”或:SAVE:PWD“/ u***”然后执行save :: SAVE:WAVeform:STARt“test.csv”注意两个参数都是引用ASCII字符串的SCPI数据类型,所以 需要将引号发送到范围以分隔字符串。 以上来自于谷歌翻译 以下为原文 You have to set the drive first using the :SAVE:PWD command. For example: :SAVE:PWD "u***" or :SAVE:PWD "/u***" Then do the save: :SAVE:WAVeform:STARt "test.csv" Note that both arguments are the SCPI data type quoted ASCII strings, so the quotes need to be sent to the scope to delimit the strings. |
|
|
|
|
只有小组成员才能发言,加入小组>>
1854 浏览 0 评论
2749 浏览 1 评论
2651 浏览 1 评论
2471 浏览 5 评论
3475 浏览 3 评论
1854浏览 0评论
427浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-8 18:13 , Processed in 1.716049 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
511