From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



为什么我的有限点采集程序在几分钟后会让我的PC崩溃?



主要软件:
主要软件版本: 7.3
主要软件修正版本: N/A
次要软件: LabVIEW Development Systems>>LabVIEW Full Development System

问题:
当在一个wihle 循环中运行一个DAQmx有限点采集的子VI时,我的PC崩溃了,并得到了下面电脑错误信息
"An exception occurred within the external code called by a call library node. This might have corrupted labview's memory.
Stopped at node 0x558 of subvi DAQmx Read (analog 1D WFM Nchan Nsamp)",一段时间后电脑重启。

解答:
在DAQmx Read.vi后必须添加一个DAQmx Clear Task.vi,以用于在while循环的每个周期结束后释放内存资源。否则您就会造成内存泄漏。

相关链接:
KnowledgeBase 39G995DW: How to Prevent Memory Leaks When Using NI-DAQmx

附件:





报告日期: 11/07/2006
最近更新: 11/08/2006
文档编号: 3K59MO1J