完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好我正在编写一个labview程序,可以通过局域网获取波形数据。
它的工作原理但唯一的问题是,当在ascii上设置波形格式时,它会非常慢。 所以我试图在字节上设置格式,但现在我需要将有符号的8位整数转换为实际值。 我怎样才能做到这一点? 谢谢JDV 以上来自于谷歌翻译 以下为原文 Hello I'm programming a labview program, that can acquire waveform data over a lan network. It works but the only problem is that it goes very slow when the waveform format is set on ascii. So I have tried to set the format on byte, but now I need to convert that signed 8-bit integer to the real value. How can I do that? Thanks JDV |
|
相关推荐
5个回答
|
|
|
|
|
|
感谢第一个问题的快速回答。 但现在还有另一个问题。 但是当我选择“WORD”格式时,示波器的屏幕上会出现错误。 错误是“查询中断”。 问题是我没有收到孔存储深度。 当我选择格式“BYTE”时,不会出现错误。 此外,安捷伦命令专家在labview中不起作用,当我在按钮“确定”按钮上添加命令后,他不保存我的命令。 你现在是这个问题的原因还是有解决方案? 谢谢Jan 以上来自于谷歌翻译 以下为原文 Thanks for the fast answer on my first question. But now there is an other problem. But when I choose the format "WORD", there is a error that appear on screen of the oscilloscope. The error is "Query Interrupted". The problem is that I doesn't receive the hole memory depth. When I choose the format "BYTE" the error doesn't appear. Also the Agilent Command Expert doesn't work in labview, when I add a command en then on the button "OK" push, he don't save my commands. Do you now the reason for this problem or have you a solution? Thanks Jan |
|
|
|
我不知道你在做什么,这是行不通的。
我一直在MATLAB中这样做。 以下是一些随机的想法:使用Command Expert或Agilent Connection Expert中的交互式I / O功能,一次测试一个命令。 如果他们手动工作,那么问题可能在LabView中。 尝试不同的深度,从低至16个样本开始,甚至更低。 确保您知道插值是打开还是关闭。 如果打开了插值,那么您可能会获得高达16倍的数据,并且您的接收缓冲区可能不够大LabView是否有用户创建的模块库,就像Mathworks一样? 如果是这样,你应该看看那里。 可能是时候与您当地的技术呼叫中心和/或LabView支持联系。 很多人已经成功地做了多年。 免责声明:为了获得更可靠的响应,您应该考虑致电当地的安捷伦技术呼叫中心。 安捷伦论坛在“可用”的基础上进行监控,并不一定是解决技术问题的最快方式。 以上来自于谷歌翻译 以下为原文 I don't know what you are doing that's not working. I do this all the time in MATLAB. Here are some random ideas: Use Command Expert, or the Interactive I/O capability in Agilent Connection Expert, to test out your commands, one at a time. If they work manually, then the problem may be in LabView. Try different depths, starting as low as 16 samples, or even less. Make sure you know whether interpolation is turned on or off. If interpolation is on, then you may get up to 16 times as much data as you expect, and your receive buffer may not be large enough Does LabView have a library of user-created modules, like Mathworks does? If so, you should look there. It may be time to get in touch with your local Technical Call Center and/or LabView support. Many people have done this successfully for years. Al Disclaimer: For more reliable response, you should consider calling your local Agilent Technical Call Center. The Agilent Forums are monitored on an "as available" basis, and aren't necessarily the fastest way to get technical questions answered. |
|
|
|
我知道为什么“查询中断”出现在WORD中但不出现在BYTE模式中。
我的答案是基于我在MATLAB中的工作,但您的LabView问题可能是相同的。 在MATLAB中,您必须设置输入缓冲区大小。 如果您接收的数据量大于输入缓冲区大小,则显然无法接收所有数据。 由于WORD需要的内存是BYTE的两倍,因此输入缓冲区可能大到足以接收所有BYTE数据,但不足以接收所有WORD数据。 以上来自于谷歌翻译 以下为原文 I have an idea why the "query interrupted" appears in WORD but not in BYTE mode. My answer is based on my work in MATLAB, but your LabView problem may be the same. In MATLAB, you have to set an input buffer size. If the amount of data you're receiving is larger than the input buffer size, you obviously cannot receive all the data. Since WORD requires twice as much memory as BYTE, maybe your input buffer, while large enough to receive all BYTE data, is not large enough to receive all WORD data. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
1283 浏览 0 评论
2371 浏览 1 评论
2189 浏览 1 评论
2062 浏览 5 评论
2946 浏览 3 评论
1103浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
750浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
921浏览 0评论
1283浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 14:25 , Processed in 1.600674 second(s), Total 86, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号