完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在使用linux驱动程序连接到34410A。我的代码(在perl中)看起来像这样。
我的$ echoresult =`echo'SAMP:SOUR tiM'> / dev / u***tmc1`; $ echoresult =`echo'SAMP:TIM 0.01'> / dev / u***tmc1`; $ echoresult =`echo'SAMP:COUN 300'> / dev / u***tmc1`; $ echoresult =`echo READ? > / dev / u***tmc1`;即使我将SAMP:TIM设置为0.01,它也没有正确设置。 当我查询SAMP:TIM?时,它返回0.01。 但是什么时候读? 执行时,TIM值约为0.1秒。任何人都可以为此提出解决方案吗? 我没有设置一些参数吗?如果这不是混乱,我也尝试设置“SAMP:TIM MIN”。 当我不查询SAMP:TIM? 该值约为0.3秒。 不知道为什么?提前谢谢! 以上来自于谷歌翻译 以下为原文 I'm using the linux driver to connect to 34410A. My code (in perl) looks like this.
Even though I'm setting the SAMP:TIM as 0.01 it is not getting set correctly. When I query SAMP:TIM?, it is returning 0.01. But when READ? is executed, the TIM value is roughly 0.1 second. Can anyone suggest a solution for this? Am I not setting some parameter? If this is not confusing, I also tried to set "SAMP:TIM MIN". And when I not query SAMP:TIM? the value is about 0.3 second. Not sure why? Thanks in advance! |
|
相关推荐
1个回答
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
1844 浏览 0 评论
2739 浏览 1 评论
2640 浏览 1 评论
2449 浏览 5 评论
3458 浏览 3 评论
1844浏览 0评论
417浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 04:30 , Processed in 0.645797 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2028