1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用GPIB / SCPI控制几个PNA(N5222A,N5230C,E8361C),只有N5222A能够升级到A.09.90固件。
自从MMEM:DATE以来,我能够确定N5222A上文件的最后修改日期? 函数内置于较新的固件中,但是,这不在A.09.42版本中。 在执行相同功能的旧版本中是否有替代方案? 我还没有碰到任何东西。 谢谢。 以上来自于谷歌翻译 以下为原文 I am controlling several PNAs (N5222A, N5230C, E8361C) using GPIB/SCPI and only the N5222A is able to be upgraded to the A.09.90 firmware. I am able to determine the last modified date of a file on N5222A since the MMEM:DATE? function is built into the newer firmware, however, this was not in the A.09.42 version. Is there an alternative to this in the older version that performs the same function? I have yet to come across anything. Thank you. |
|
相关推荐
3个回答
|
|
您特别关注哪些文件?
文件名是事先知道的,还是只是查看在某个先前点可能被命名的文件? 我可以想到一些令人费解的方法来做到这一点,但似乎没有什么是简单的。 让我知道文件类型,我会尝试询问是否有人知道任何更简单的解决方法。 以上来自于谷歌翻译 以下为原文 What files are you specifically looking at? Are the file names known in advance or are you just looking at files that were created at some prior point that could be named anything? I can think of some convoluted ways to do this, but nothing seems simple. Let me know the file types and I will try ask if anyone knows of any simpler workaround. |
|
|
|
胡bbs2 发表于 2018-11-21 10:15 顺便说一句,这是使用宏命令的复杂方式。 这将为您提供“文档和设置”目录中“dir”的输出。 SYST:SHOR1:PATH“cmd.exe”syst:shor1:arg'/ c cd“c: documents and settings”&& dir> c: out'SYST:SHOR1:EXEC MMEM:TRAN? “c: out”第一个语句在位置1创建一个新宏(覆盖你在位置1中的任何宏),称为“cmd.exe”第二个语句,给出宏的参数 - 它将更改目录改为“ c: documents and settings“然后在该目录上调用”dir“。 操作的输出保存到文件C: out第三个语句执行宏第四个语句将“c: out”的内容传回给调用者。 以上来自于谷歌翻译 以下为原文 By the way, here's the convoluted way using the macro commands. This gives you the output of "dir" on the "documents and settings" directory. SYST:SHOR1:PATH "cmd.exe" syst:shor1:arg '/c cd "c:documents and settings" && dir > c:out' SYST:SHOR1:EXEC MMEM:TRAN? "c:out" The 1st statement creates a new macro in position 1 (overwrites whatever macro you had in position 1) called "cmd.exe" The 2nd statement, gives the arguments of the macro - which does a change directory to "c:documents and settings" and then calls "dir" on that directory. The output of the operation is saved to a file C:out The third statement executes the macro The fourth statement transfers the contents of "c:out" back to the caller. |
|
|
|
60user56 发表于 2018-11-21 10:31 我真正想要的是寻找校准文件(但CSET:DATE?也不可用)。 目前还不清楚“dir”在这方面做了什么。 “dir”是要保存为“c: out”的文件吗? 或者是保存所需文件的目录? 我会知道文件的位置和名称。 但这似乎只是找到一个文件并将其传回本地PC。 我真的不在乎文件的内容是什么,我只想要最后修改日期。 稍微不相关的想法,我很想添加搜索该文件夹的功能,用于具有可变的最后一个字符的文件 - 开始字符串将是常量,但最后一个数字将随着保存文件的迭代版本而改变。 SCPI命令没有列表文件夹或搜索字符串功能,因为可以在LabVIEW中使用本地存储的文件完成。 目前,我有一个完整文件名的输入,但自动找到它会更好。 感谢您的反馈到目前为止。编辑:sjohns于2014年2月26日下午1:20 以上来自于谷歌翻译 以下为原文 What I really wanted was to look for the calibration file (but CSET:DATE? is also unavailable). It is a little unclear what "dir" does in this. Is "dir" the file that you want to save to "c:out"? Or is the directory that holds the desired file? I will know the location and name of the file. But this seems to just find a file and transfer it back to the local PC. I really don't care what the contents of the file are, I simply want the last modified date. Slightly unrelated thought, I would love to add the capability of searching that folder for a file with a variable last character -- the beginning string will be constant but the last digit will change with the iteration version of the saved file. The SCPI commands do not have a List Folder or search string function as can be done in LabVIEW with files stored locally. Currently, I have an input for the full file name but automatically finding it would be better. Thanks for the feedback thus far. Edited by: sjohns on Feb 26, 2014 1:20 PM |
|
|
|
只有小组成员才能发言,加入小组>>
1285 浏览 0 评论
2373 浏览 1 评论
2192 浏览 1 评论
2064 浏览 5 评论
2948 浏览 3 评论
1105浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
752浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
923浏览 0评论
1285浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 06:36 , Processed in 1.327552 second(s), Total 52, Slave 46 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号