エラーが発生したかどうかを示します。エラーが発生すると、このVIはエラーの記述を返し、オプションでダイアログボックスを表示します。


icon

入力/出力

  • c1dstr.png [user-defined descriptions]

    [user-defined descriptions] is an array of descriptions of user-defined codes.

    入ってくるエラーがユーザ定義コードと一致する場合、VIではメッセージユーザ定義説明から対応する説明を使用します。

  • c1di32.png [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はエラーコードの内部データベースを検索した後、この配列を検索します。エラーコード-8999~-8000、5000~9999、500,000~599,999は、ユーザが独自のエラーメッセージを定義するために予約されています。

  • ci32.png [error code] (0)

    [error code] is a numeric error code.

    エラー入力がエラーを示す場合、VIでは エラーコードを無視します。それ以外の場合、VIはその値をテストします。値が0でない場合はエラーを示します。

  • cstr.png [error source] (" ")

    [error source] is an optional string you can use to describe the source of error code.

  • cbool.png search ni.com link visible?(T)
  • cu16.png type of dialog (OK msg:1)

    type of dialog determines what type of dialog box to display, if any.

    このパラメータの値に関係なく、VIではエラー情報およびエラーを記述するメッセージを出力します。

    0ダイアログなし―ダイアログボックスを表示しません。この設定は、エラー処理をプログラム的に制御する場合に便利です。
    1OKメッセージ (デフォルト)―1つの「継続」ボタンがあるダイアログボックスを表示します。ユーザがOKボタンをクリックすると、メインVIに制御権が返されます。
    2継続/停止メッセージ―ユーザが操作を続行または停止するためのボタンが表示されたダイアログボックスを表示します。ユーザが停止を選択すると、「停止」関数が呼び出され、実行が停止します。
    3OKメッセージ + 警告―警告と1つの「継続」ボタンのあるダイアログボックスを表示します。ユーザがOKボタンをクリックすると、メインVIに制御権が返されます。
    4警告付き継続/停止メッセージ―ユーザが操作を続行または停止するためのボタンと警告が表示されたダイアログボックスを表示します。ユーザが停止を選択すると、「停止」関数が呼び出され、実行が停止します。
  • cerrcodeclst.png 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.

  • ci32.png [exception action] (none:0)

    [exception action] is a way for you to create exceptions to error handling.

    VIは、エラーコードエラーソース例外コード例外ソースに一致すると例外動作を実行します。例外ソースのデフォルト値を使用する場合、VIが例外動作を実行するために例外コードのみが一致する必要があります。

    0例外なし (デフォルト)―エラー例外処理を実行しません (例外コード例外ソースが配線されている場合も)。
    1条件を満たせばエラーをキャンセル通常はエラーとみなされる状況をエラーとして扱いません。VIによってエラーがキャンセルが返された場合、エラー?はFALSE、コード出力は0、ソース出力は空の文字列です。
    2条件を満たせばエラーを設定―エラーに合わせて警告をアップグレードします。このパラメータは、ステータスパラメータとエラーコードパラメータで指定されたとおりにVIによってエラーが検出されないとエラーを設定します。ただし、エラー入力コード値は、例外コードの値に一致し、エラーソースの値は例外ソースに一致します。VIがエラーをセットすると、エラー?はTRUE、コード出力エラー入力からのコード値、そして、ソース出力エラー入力からのソース値になります。
  • ci32.png [exception code]

    [exception code] is the error code that you want to treat as an exception. The default is 0.

  • cstr.png [exception source]

    [exception source] is the error message that you want to use to test for an exception. The default is an empty string.

  • ibool.png error?

    error? returns TRUE if an error occurs. If this VI finds an error, it sets the parameters in the error cluster.

  • ii32.png code out

    code out is the error code indicated by error in or error code.

  • istr.png source out

    ソース出力は、エラーのソースを示します。

    ソース出力文字列は、エラー入力ソース文字列よりも記述的です。

  • istr.png message

    message describes the error code that occurred, the source of the error, and a description of the error.

    VIがエラーの説明を返さない場合、エラーコードの説明を検出するために、いくつかの方法を使用できます。同じエラー・コードに対して複数の説明が存在する場合、VIはすべての説明をorで区切って表示する。

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.