完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我写了一个代码来执行以下操作。
1.初始化DMM。 2.将x读数与外部触发同步。 3.将其保存到文本文件。 问题是代码在完成所有这些操作之前不会返回。 这意味着它阻止了其他代码的执行。 (例如:生成这些触发器的其他硬件)。 我使用过:Ag34410_InitWithOptions Ag34410_ConfigureMultiPoint Ag34410_ConfigureTrigger Ag34410_FetchMultiPoint有没有办法以这样的方式使用DMM会话,它会在会话初始化和启动后返回控件,以便可以启动其他硬件或操作。 附加的代码包含我使用示例代码所做的更改。 以上来自于谷歌翻译 以下为原文 I have written a code to do the following. 1. Initialize DMM. 2. Take x number of readings in sync with external trigger. 3. Save it to text file. The problem is that the code doesn't return till all this is completed. That means it is blocking the execution of other code. (Ex: Other Hardware which generates these triggers). I have used : Ag34410_InitWithOptions Ag34410_ConfigureMultiPoint Ag34410_ConfigureTrigger Ag34410_FetchMultiPoint Is there a way to use the DMM-session in such a way that it returns back the control after session is initialized and started so that other hardware or operations can be started. The attached code has the changes I have done using the Example code. 附件
|
|
相关推荐
1个回答
|
|
谢谢你的解决方案。
捕获后检索数据时遇到一个小问题。 我使用了附加的代码。 我再次使用* Ag34410_FetchMultiPoint *函数来检索数据。 我无法在写入文件或可执行文件的命令提示符时返回数据,这两个文件都没有显示数据。 +如果我打开Web界面并检查它显示的数据是否已经被正确捕获。+我尝试增加上述调用的等待时间,返回错误代码也为零。 我只有线索是从上面的命令返回状态是非零(0x80000000)我做错了什么? 哦,是的,我提到它工作正常,直到收集的数据编辑:sriduttvnayak于2013年4月16日12:42 AM 以上来自于谷歌翻译 以下为原文 Thanks for the solution. I have a small problem with the retrieval of data once captured. I have used the code attached. Again I use *Ag34410_FetchMultiPoint* function to retrieve the data back. I am unable to get the data back either as the file written or the command prompt of executable both of which shows no data. +If I open the web interface and check the data it shows that has been actually captured correctly.+ I tried increasing the wait times of the above call, also the return error code is zero. Only clue I have is return status from above command is non zero (0x80000000) What am I doing wrong? Oh Yes, I for got to mention it works fine till the data collected is < 256 points. Problem seen from 512 and above. Is there a limit on amount of data that can be fetched. Edited by: sriduttvnayak on Apr 16, 2013 12:42 AM 附件
|
|
|
|
只有小组成员才能发言,加入小组>>
1240 浏览 0 评论
2352 浏览 1 评论
2164 浏览 1 评论
2030 浏览 5 评论
2914 浏览 3 评论
983浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
713浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
813浏览 0评论
1240浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-30 09:18 , Processed in 1.615759 second(s), Total 74, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号