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.



当递归调用VI时会发生错误1042或1000



主要软件:
主要软件版本: 7.1
主要软件修正版本: N/A
次要软件: N/A

问题:

曾今,我在递归调用VI时并未发生任何错误。

但是当我调用一个VI,它又使用了VI Server运行方法来调用当前VI时,就会发生错误:

Error 1000 occurred at Invoke Node in [Current VI name].vi

Possible Reasons:

LabVIEW: The VI is not in a state compatible with this operation.



解答:

可以通过下列文章了解LabVIEW中递归的使用方法:

How Does Recursion Work in LabVIEW?

您可以用链接中的范例来了解如何递归的调用一个VI本身���

但是,如果您在另一个层面使用递归调用(例如x调用y,其中y又调用了x)您需要使用VI Server运行方法。确保所有VI是可重入的。同事,确保您在打开VI引用处的选项处输入了8。这会帮助目标以可重入的方式运行,并开辟并行、独立的运行空间���



相关链接: KnowledgeBase KB 46EKS80E: How Does Recursion Work in LabVIEW?

附件:


Recursive.gif - Recursive.gif


报告日期: 05/14/2003
最近更���: 08/01/2016
文档编号: 2XDI92LD