Home
Support
Archived: Visual Basicのデジタル入力のサンプルでランタイムエラー5 Invalid Indexが発生するのはなぜですか。
Archived: Visual Basicのデジタル入力のサンプルでランタイムエラー5 Invalid Indexが発生するのはなぜですか。
This document has been archived and is no longer updated by National Instruments
使用ソフトウェア:
使用ソフトウェア・バージョン: 1.2
使用ソフトウェア・バージョンに特化:
二次のソフトウェア: N/A
問題: Visual Basicのデジタル入力のサンプルを実行して、更新ボタンをクリックすると、ランタイムエラー5:Invalid Indexが発生しました。デバッグをクリックすると、"DIO.Ports.Item(0).Assignment = cwdioInput"の箇所に問題があるようです。
解決策: このエラーはDIOプロパティのデバイス番号がMeasurement & Automation Explorerのデバイス番号と一致していないために生じています。DIOプロパティのデバイス番号を変更すると、プログラムは正常に動作を行います。
関連リンク:
添付:
報告日時: 11/21/2002
最終更新日: 04/13/2010
ドキュメントID: 2RK8ISIP
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.