是德科技
直播中

石建军

7年用户 168经验值
私信 关注
[问答]

怎么使用C在34411A中进行数据记

我写了一个代码来执行以下操作。
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)

石建军

2019-6-28 09:16:38
谢谢你的解决方案。
捕获后检索数据时遇到一个小问题。
我使用了附加的代码。
我再次使用* 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

附件

举报

更多回帖

发帖
×
20
完善资料,
赚取积分