错误代码至错误簇转换
- 更新时间2025-07-30
- 阅读时长4分钟
将错误或警告代码转换为错误簇。收到共享库调用的返回值或返回用户定义错误代码时,可使用该VI。
错误代码0表示没有发生错误,VI不会修改错误簇。

输入/输出
is warning? (False)
—
If is warning? is TRUE, status returns FALSE to indicate that a warning occurred. The default is FALSE.
show call chain? (False)
—
If show call chain? is TRUE, source includes the chain of callers from the VI that produced the error or warning to the top-level VI. The default is FALSE, which indicates to include only the calling VI. VI可通过调用链函数获取调用链。
error code (0)
—
error code is the code you want to convert to an error cluster. The default is 0, which indicates that no error occurred.
error message ("")
—
error message is the error description to appear in the error out cluster. 通用错误处理器VI收到错误输出簇后,LabVIEW在错误信息中显示错误说明。如错误信息为空,LabVIEW使用错误代码在已有的LabVIEW错误代码中确定错误说明。
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
error out
—
错误输出包含错误信息。该输出提供标准错误输出,下列情况除外。 如错误输入的值是无错误,VI包含与错误代码输入相关的错误信息。 |
is warning? (False)
—
error code (0)
—
error message ("")
—
error in (no error)
—
error out
—