完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
如果有人在Linux计算机上安装了National Instruments GPIB板,并且有一些备用时间,我将非常感谢您确定是否有一些软件可以在Linux机器上编译和链接。
该文件是开源的(GPL2或更高版本)。 编写附加文件(md5 checksum = 7cf280113db47daf5bd25987088eacd1)以从unix计算机上的8720D VNA收集数据。 它适用于我的8720D,但我只测试过Solaris(SPARC),而不是Linux。 我想知道它是否在Linux机器上编译和链接,如果没有,那么错误消息是什么。 如果你有一个8720,或者具有兼容命令集的东西,它应该也能够收集数据,虽然我认为有些命令不适用于早期模型,并且实际上可能导致另一个VNA锁定。 如有必要,将其关闭再打开将清除它。 该软件在Unix系统上使用普通的$ ./configure $ make方法,并且应该生成一个二进制“vna”,它可以收集S参数并将它们粘贴在.s2p Touchstone文件中,例如$ vna --log --s11 --s12 16> foo.s2p其中16是GPIB地址 - 必要时进行更改。 这将收集S11和S12数据,并将其粘贴在foo.s2p中。其他应该工作的事情是:$ vna --start 1000(设置启动频率为1000 MHz)$ vna --if-bandwidth 1000(将IF带宽设置为1000 Hz) )$ vna --help(列出所有命令行参数。不幸的是,并非所有命令行都已实现!!!我认为它只能以对数级格式保存数据。我无法立即检查,因为我的VNA是在Keysight 正在校准)这是一个典型的文件创建 - 我希望以****字符开头的行显示正确,因为我在打印时遇到问题 - 标记将其解释为列表。 我想我找到了一种“逃避”的方法,但它可能与浏览器有关。 (我在运行Solaris的基于x86的Sun上使用Firefox)。 代码有点慢,因为它以ASCII而不是二进制格式下载数据。 使用二进制文件会比较棘手,因为我需要担心x86和SPARC处理器以不同的方式存储数字 - 大与小端。 ! 这是一个试金石格式文件。 ! 它应该以.s2p扩展名保存! HEWLETT PACKARD,8720D,0,7.74! 日期= 2014年8月18日! 时间= 20:20:18! 起始频率= 0.050000000 GHz! 停止频率= 7.000000000 GHz! IF带宽= 300 Hz! 平滑=关闭! 平滑光圈= 1.000000%! 平均=关! 平均因子= 16! 源功率=开! 源功率=自动模式! 输出功率等级= 5.000000 dBm! 回力=关! 测试组切换=连续! 测试组切换的扫描次数(0 =保持,1 =连续,2-999 =扫描次数)= 1! 步骤扫描=开(检查)! 列表频率扫描=关闭(检查)! 清单列表模式下列表频率表的IFBW设置=禁用(检查)! 扫描列表模式下列表频率表的功率设置=禁用(检查)! 测量模式=替代A和B! 端口扩展= OFF! 端口扩展1 = 0.000000 ps! 端口扩展2 = 0.000000 ps! 积分= 401! 校准套件= 3.5 mm D! 校准=全2端口! 功率= 5.000000 dBm! freq magS11 angS11 magS21 angS21 magS12 angS12 magS22 angS22! 记录形式的大小! 角度以度为单位\#兆赫就是DB红50 50.00000 -62.52734 -159.49219 -9.93018 -3.01440 -9.89258 -2.69861 -49.98242 -91.28906 67.37500 -64.00391 -155.37500 -9.98535 -4.15161 -9.99072 -4.18457 -48.89453 -82.14844 84.75000 -65.75000 - 178.07031 -9.99023 -5.30371 -9.98486 -5.25562 -48.54492 -70.34766 以上来自于谷歌翻译 以下为原文 If anyone has a National Instruments GPIB board on a Linux computer, and has a few spare minutes, I would appreciate a bit of help in determining if a bit of software will compile and link on a linux machine. The file is open-source (GPL2 or later). The attached file (md5 checksum = 7cf280113db47daf5bd25987088eacd1) was written to collect data from an 8720D VNA on a unix computer. It works on my 8720D, but I have only tested on Solaris (SPARC), not Linux. I would like to know if it compiles and links on a Linux box, and if not, what the error message(s) is. If you have an 8720, or something with a compatible command set, it should be able to collect data too, though I think there are some commands which wont work on early models, and might actually cause another VNA to lock up. If necessary, powering it off and on again will clear it. The software uses the normal $ ./configure $ make method on Unix systems, and should generate a binary "vna" that can collect S-parameters and sticks them in a .s2p Touchstone file with something like $ vna --log --s11 --s12 16 > foo.s2p where 16 is the GPIB address - change if necessary. This will collect S11 and S12 data and stick it in foo.s2p Other things that should work are: $ vna --start 1000 (set start frequency to 1000 MHz) $ vna --if-bandwidth 1000 (set IF bandwidth to 1000 Hz) $ vna --help (list all command line parameters. Unfortunately, not all are implemented!!! I think it only works to save data in log magnitude format. I can't check at the minute, as my VNA is at Keysight being calibrated) Here's a typical file created - I hope the line that starts with a **** character shows up properly, as I had a problem getting it to print - the markup is interpreting it as a list. I think I found a way to "escape" that, but it might be browser dependent. (I'm using Firefox on an x86 based Sun running Solaris). The code is a bit slow, as it downloads data in ASCII not binary format. Doing in binary would be more tricky as I'd then need to worry about the fact that x86 and SPARC processors store numbers in a different way - big vs little endian. ! This is a touchstone format file. ! It should be saved with .s2p extension ! HEWLETT PACKARD,8720D,0,7.74 ! Date = 18 Aug 2014 ! Time = 20:20:18 ! Start frequency = 0.050000000 GHz ! Stop frequency = 7.000000000 GHz ! IF bandwidth = 300 Hz ! Smoothing = OFF ! Smoothing aperture = 1.000000 % ! Averaging = OFF ! Averaging factor = 16 ! Source power = On ! Source power = Auto mode ! Output power level = 5.000000 dBm ! Retrace power = Off ! Testset switching = Continuous ! Number of sweeps for test set switching (0=hold, 1=continuous,2-999 = number o f sweeps) = 1 ! Step sweep = On (check) ! List frequency sweep = Off (check) ! IFBW setting for a list-frequency table in swept list mode = Disabled (Check) ! Power setting for a list-frequency table in swept list mode = Disabled (Check) ! Measurement mode = Alternate A and B ! Port extensions = OFF ! Port extension 1 = 0.000000 ps ! Port extension 2 = 0.000000 ps ! Points = 401 ! Calibration kit = 3.5 mm D ! Calibration = Full 2-port ! Power = 5.000000 dBm ! freq magS11 angS11 magS21 angS21 magS12 angS12 magS22 angS22 ! Magnitudes are in log form ! Angles are in degrees \# MHz S DB R 50 50.00000 -62.52734 -159.49219 -9.93018 -3.01440 -9.89258 -2.69861 -49.98242 -91.28906 67.37500 -64.00391 -155.37500 -9.98535 -4.15161 -9.99072 -4.18457 -48.89453 -82.14844 84.75000 -65.75000 -178.07031 -9.99023 -5.30371 -9.98486 -5.25562 -48.54492 -70.34766 附件
|
|
相关推荐
2个回答
|
|
顺便说一句,甚至不考虑尝试在Windows PC上编译它。
有很多程序可以从Windows上的HP / Agilent / Keysight VNA中获取数据,但我不知道Linux上有任何数据,所以这可能对某些人有用,如果有效的话。 以上来自于谷歌翻译 以下为原文 BTW, don't even think about trying to compile this on a Windows PC. There are plenty of programs to grab data from HP/Agilent/Keysight VNA on Windows, but I'm not aware of any on Linux, so this might be useful to some, IF it works. |
|
|
|
> {quote:title = drkirkby写道:} {quote}>如果有人在Linux计算机上安装了National Instruments GPIB板,并且有一些备用时间,我会很感激在确定是否会编译一些软件时会有所帮助
和linux机器上的链接。}>你是否尝试过在虚拟机中运行的Linux编译? 您可能无法从VM执行实际的仪器I / O,但您至少应该能够编译/链接。 >代码有点慢,因为它以ASCII而不是二进制格式下载数据。 使用二进制文件会比较棘手,因为我需要担心x86和SPARC处理器以不同的方式存储数字 - 大与小端。 >使用FORM5而不是FORM2解决了这个问题。 从8720程序员指南:> FORM5:> PC-DOS 32位浮点格式,每个数字4个字节,每个数据点8个字节。 数据>前面有与FORM1中相同的标题。 字节顺序>相对于FORM2反转,以符合PC-DOS>格式。 如果您使用的是基于PC的控制器,则FORM5是最有效的格式。 还可以考虑使用OUTPFORF而不是OUTPFORM来加快速度。 OUTPFORF不返回201点跟踪的402个数字并丢弃0,而是返回201个元素,因此数据传输只需要一半的时间。 这使得C代码也更简单一些。 > OUTPFORF:>仅传输OUTPFORM数据对的第一个数字,除非当前格式>是极坐标或史密斯圆图; 在这些情况下,转移两个>数字(实数和虚数)。 祝你好运,比尔 以上来自于谷歌翻译 以下为原文 > {quote:title=drkirkby wrote:}{quote} >If anyone has a National Instruments GPIB board on a Linux computer, and has a few spare minutes, I would appreciate a bit of help in determining if a bit of software will compile and link on a linux machine.} > Have you tried compiling in Linux running in a virtual machine? You may not be able to do actual instrument I/O from the VM, but you should at least be able to compile/link. > The code is a bit slow, as it downloads data in ASCII not binary format. Doing in binary would be more tricky as I'd then need to worry about the fact that x86 and SPARC processors store numbers in a different way - big vs little endian. > Using FORM5 instead of FORM2 solves that problem. From the 8720 programmer's guide: >FORM5: >PC-DOS 32-bit floating-point format with 4 >bytes-per-number, 8 bytes-per-data point. The data is >preceded by the same header as in FORM1. The byte order >is reversed with respect to FORM2 to comply with PC-DOS >formats. If you are using a PC-based controller, FORM5 is >the most effective format to use. Also consider using OUTPFORF instead of OUTPFORM to speed things up. Instead of receiving 402 numbers for a 201 point trace and throwing away the 0's, OUTPFORF returns 201 elements, so data transfer takes only half the time. This makes the C code somewhat simpler as well. >OUTPFORF: >Only the first number of the OUTPFORM data >pair is transferred, unless the current format >is polar or Smith chart; in those cases, both >numbers (real and imaginary) are transferred. Good luck, -Bill |
|
|
|
只有小组成员才能发言,加入小组>>
1296 浏览 0 评论
2378 浏览 1 评论
2199 浏览 1 评论
2068 浏览 5 评论
2955 浏览 3 评论
1136浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
759浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
944浏览 0评论
1296浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 19:59 , Processed in 2.226473 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号