完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在使用FETCh?
命令使用带有VISA的VB6将扫描到PC中。一切都配置正常,所有数据在输出缓冲区中都很准确。 (对于连续监视应用程序,扫描在无限时间间隔内触发)有没有办法告诉输出缓冲区中有多少字节? (如果您不知道这一点,如果您要求太多字节,则会出现错误的超时延迟。) 以上来自于谷歌翻译 以下为原文 I'm using the FETCh? command to get scans into a PC using VB6 with VISA. Everything is configured fine and all the data is accumating in the output buffer just fine. (scans are triggered on time interval infinitely for a continuous monitoring application) Is there any way of telling how many bytes are in the output buffer??? (If you don't know this there is a bad timeout delay if you ask for too many bytes.) |
|
相关推荐
7个回答
|
|
数据:POIN?
返回可从输出缓冲区中读取的读数数。 如果由于某种原因需要,可以很容易地将其转换为字节数。 如果你的程序需要等待特定数量的读数,你只需循环DATA:POIN? 查询,直到它返回至少1.这就是Benchlink Datalogger软件的功能。我不明白为什么你认为LAN和RS-232 IO之间存在差异,除了LAN要快得多。 也许这种速度差异是你永远不会超时的原因。 以上来自于谷歌翻译 以下为原文 The DATA:POIN? returns the number of readings available to be read out of the output buffer. This can be easily converted to the number of bytes if you need that for some reason. If your program needs to wait for a specific number of readings, you just loop on the DATA:POIN? query until it returns at least 1. This is how the Benchlink Datalogger software does it. I don't understand why you think there is a difference between LAN and RS-232 IO, other than that LAN is a lot faster. Perhaps this speed difference is why you never got a timeout. |
|
|
|
谢谢,区别在于VB6编码。
VB6 comm.input方法没有超时,它只需要PC RS232输入缓冲区中可用的字符并立即完成,因此VB代码轮询输入端接字节,不需要任何延迟。 在发生超时之前,VISA中的viReadByte()方法会占用指定的字节数。我会尝试使用您的DATA“POIN?建议,听起来它可能有效。 以上来自于谷歌翻译 以下为原文 Thanks, The difference lies in the VB6 coding. The VB6 comm.input method does not time out, it just takes the characters that are available in the PC RS232 input buffer and immediately finishes, so the VB code polls the input for a termination byte, there does not need to be any delay. The viReadByte() method in VISA wiats for a specified number of bytes before a timeout occurs. I'll try using your DATA"POIN? suggestion, sounds like it might work. |
|
|
|
这是34972A固件中的已知缺陷,已在固件版本1.13中修复。
固件文件和下载实用程序可从34972A产品网页下载,网址为http://www.home.agilent.com/agilent/fac ... 049.k.3& ki [0] = 34972A& cc = US& amp ; lc = eng& sm = g& pselect = SR.Facet.By内容类型。 我希望这不会让你感到悲伤。 以上来自于谷歌翻译 以下为原文 This is a known defect in the 34972A firmware that is fixed in firmware version 1.13. The firmware file and download utility can be downloaded from the 34972A product web page at http://www.home.agilent.com/agilent/fac ... 049.k.3&ki[0]=34972A&cc=US&lc=eng&sm=g&pselect=SR.Facet.By Type of Content. I hope this didn't cause you much grief. |
|
|
|
http://www.home.agilent.com/agilent/redirector.jspx?action=ref&cname=AGILENT_EDITORIAL&ckey=2060487&lc=eng&cc=US&nfr=-33257.922596
以上来自于谷歌翻译 以下为原文 http://www.home.agilent.com/agilent/redirector.jspx?action=ref&cname=AGILENT_EDITORIAL&ckey=2060487&lc=eng&cc=US&nfr=-33257.922596 |
|
|
|
当您将数据读入真实的64数据阵列时会发生这种情况。
必须将数据读入每个数组元素中包含50个字符的字符串数组,以便在单元,通道,警报和时间(绝对)参数全部启用时获取所有标头格式信息。 以上来自于谷歌翻译 以下为原文 This happens when you are reading the data into a real,64 data array. The data must be read into a string array with 50 characters in each array element to get all of the header format information when the unit, channel, alarm, and time (absolute) parameters are all enabled. |
|
|
|
不确定你的意思是什么,为什么R必须?
当用户按下扫描按钮时,响应被读入50个字节的字符串? 以上来自于谷歌翻译 以下为原文 Not sure what you mean by that answer, why must the R? response be read into 50 byte strings when user presses Scan button?? |
|
|
|
按下扫描按钮只需使用已编程的任何设置开始扫描。
它与从PC发送INIT命令相同。 当您使用PC从34972A内存中读取数据时,它始终采用ASCII字符串的形式。 例如:+ 2.51520000E + 01 C,2012,01,27,12,25,03.54,102,0,这显示在FORMat子系统简介下的帮助文件和第144页的用户指南中。 以上来自于谷歌翻译 以下为原文 Pressing the scan button just starts the scanning with whatever settings have been programmed. It is the same as sending the INIT command from the PC. When you read the data out of the 34972A memory with the PC, it is always in the form of an ASCII string. For example: +2.51520000E+01 C,2012,01,27,12,25,03.54,102,0, This is shown in the help file under FORMat Subsystem Introduction, and in the User's Guide on page 144. |
|
|
|
只有小组成员才能发言,加入小组>>
855 浏览 0 评论
2188 浏览 1 评论
1971 浏览 1 评论
1834 浏览 5 评论
2708 浏览 3 评论
680浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
480浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
574浏览 0评论
2366浏览 0评论
1420浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-18 09:27 , Processed in 1.309846 second(s), Total 84, Slave 74 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号