일반 에러 핸들러
- 업데이트 날짜:2025-07-30
- 5분 (읽기 시간)
에러가 발생했는지의 여부를 나타냅니다. 에러가 발생한 경우, 이 VI는 에러의 설명을 반환하고 선택적으로 대화 상자를 디스플레이합니다.

입력/출력
[user-defined descriptions]
—
[user-defined descriptions] is an array of descriptions of user-defined codes. 전달된 에러가 사용자 정의 코드 중 하나와 일치할 경우, VI는 사용자 정의 설명으로부터 해당하는 설명을 메시지에 반환합니다.
[user-defined codes]
—
[user-defined codes] is an array of numeric error codes you can use to define error codes and messages for your own VIs. VI는 에러 코드의 내부 데이터베이스를 검색한 후에 이 배열을 검색합니다. 에러 코드 5000 ~ 9999, -8999 ~ -8000, 500,000 ~ 599,999는 사용자 에러 메시지 정의를 위해서 남겨져 있습니다.
[error code] (0)
—
[error code] is a numeric error code. 에러 입력이 에러를 나타낼 경우, VI는 에러 코드를 무시합니다. 그렇지 않을 경우, VI는 그것을 테스트합니다. 제로가 아닌 값은 에러를 의미합니다.
[error source] (" ")
—
[error source] is an optional string you can use to describe the source of error code.
search ni.com link visible?(T)
—
search ni.com link visible? determines whether the Search ni.com for error hyperlink appears in the dialog box. Set to TRUE to display the hyperlink. Clicking the hyperlink opens search results for the error code on ni.com in the default web browser. The hyperlink appears only for LabVIEW-defined error codes in the development environment. The default is TRUE.
type of dialog (OK msg:1)
—
type of dialog determines what type of dialog box to display, if any. 값에 관계없이, VI는 에러 정보와 에러를 기술한 메시지를 출력합니다.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input contains status, code, and source, which provide standard error in cluster element functionality.
[exception action] (none:0)
—
[exception action] is a way for you to create exceptions to error handling. 에러 코드와 에러 소스가 예외 코드와 예외 소스와 일치한다면 VI는 예외 동작을 수행합니다. 예외 소스에 기본값을 사용하는 경우, 예외 코드만이 VI가 예외 동작을 수행하도록 해야 합니다.
[exception code]
—
[exception code] is the error code that you want to treat as an exception. The default is 0.
[exception source]
—
[exception source] is the error message that you want to use to test for an exception. The default is an empty string.
error?
—
error? returns TRUE if an error occurs. If this VI finds an error, it sets the parameters in the error cluster.
code out
—
code out is the error code indicated by error in or error code.
source out
—
소스 출력은 에러의 소스를 나타냅니다. 소스 출력 문자열은 에러 입력 입력의 소스 문자열보다 좀 더 기술적인 문자열입니다.
message
—
message describes the error code that occurred, the source of the error, and a description of the error. VI가 에러의 설명을 반환하지 않은 경우, 에러 코드 설명을 찾기 위한 몇가지 동작을 취할 수 있습니다. 동일한 오류 코드에 대해 두 개 이상의 설명이 있는 경우 VI는 모든 설명을 또는로 구분하여 표시합니다.
error out
—
error out contains error information. This output provides standard error out functionality. |
[user-defined descriptions]
—
[user-defined codes]
—
[error code] (0)
—
[error source] (" ")
—
search ni.com link visible?(T)
—
type of dialog (OK msg:1)
—
error in (no error)
—
error?
—
code out
—
source out
—
error out
—