NI製品ディスカッション

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

USB接続の計測機器における読み書きエラーについて  (Hex 0xBFFF001D)

こんにちは。

 

OceanOpticsのUSB2000+をUSB接続しlabviewで測定プログラムを組みたいのですが、NI MAXおよびlabviewにおいて何点かエラーが出ております。

下記いたしますので、お気づきの点ご指導お願いいたします。

 

①VISAのtest panelでコマンドのwrite、クエリ、readを実施したところ、

いずれも Hex 0xBFFF0015のタイムアウトエラーとなります。

機器の検出は正常にできているのにこのテストでエラーが起こるというのはどういうことなのでしょうか。

 

②機器接続の検出がlabview※でできているのですが、VISAリソースの選択候補に現れません。

※labviewの初期画面のヘルプより、計測ドライバの検索の計測器タグ欄に表示されます。

 

VISAリソース欄にNI MAXで表示されているリソース名を入力したところ、

0xBFFF001Dのエラーが表示されました。

 

これらの問題はすべて関連しているのでしょうか。

また、どのように考えればよろしいのでしょうか。

どの問題からどのように処理すればよいかを教えていただければ幸いです。

よろしくお願いいたします。

すべてをダウンロード
0 件の賞賛
メッセージ1/12
3,747件の閲覧回数

このエラーはタイムアウトエラーです。 デバイスが応答しません。 コマンドが正しく構成されていないか、ターミナルシンボルが正しく構成されていないか、ポートパラメータが正しく構成されていません。

This error is a timeout error. The device does not respond. Either the command is incorrectly formed, the terminal symbol is incorrectly configured, or the port parameters are incorrectly configured.

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
0 件の賞賛
メッセージ2/12
3,724件の閲覧回数

Borjomyさん

 

ご回答ありがとうございます。


ご指摘いただいた内容は下記のような理解でよろしいでしょうか。
コマンドが正しく構成されていない:VISAリソース名 or *IDN?\n が適切でない
ターミナルシンボルが正しく構成されていない:ブロックダイアグラム全体構成が適切でない
ポートパラメータが正しく構成されていない:instrのポート選択が正しくない
これらの理解が間違っていればその内容教えていただけますか。

 

計測器のドライバフォルダに入っていたExampleソフトでは問題なく動作しております。
作成注の問題のプログラムでも同じリソース名を使用しているので、VISAリソース名には問題ないと考えていますがいかがでしょうか。

0 件の賞賛
メッセージ3/12
3,709件の閲覧回数

あなたはすでに私が最後の日に書いた第三者です。ターミナルシンボルを使用するときは、機能「Bytes as Port」は使用されません。 さらに、デバイスはすぐに応答することはできませんが、メッセージが送信された直後に受信したバイト数を確認します。 当然、0があります。手作業で送信するこのコマンドがデバイスによって理解されていることを文書で確認してください。

 

You are already the third person I write last day: when using the terminal symbol, the function "Bytes as Port" is not used. In addition, the device can not immediately answer, but you check the number of bytes received immediately after the message is sent. Naturally, there will be 0. Check with the documentation that this command, which you send manually, is understood by the device.read modem.png

 

 

 

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
0 件の賞賛
メッセージ4/12
3,696件の閲覧回数

Borjomyさん

 

ご指摘の通りVISA Serialを追加しプロパティを削除しました。

VISA Serial関数通過後にエラーが出てきます。

入力値がおかしいのでしょうか。

値変更をもう少しチャレンジしてみます。

0 件の賞賛
メッセージ5/12
3,691件の閲覧回数

実際、私は男です:-)
今は彼が翻訳に注意を払った。
あなたが指示しているVISAデバイスが低すぎます。 この共通プロトコルの作業は、COMポートを介して行われ、USBコンバータを介して作業しています。

See COM6See COM6

 

エラーは、メニュー "Help" - > "Explain Error .."で解読できます。この場合、 "指定された属性は、参照されているリソースで定義またはサポートされていません。

ErrorError

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
メッセージ6/12
3,688件の閲覧回数

Mr. Borjomyへ

 

>あなたが指示しているVISAデバイスが低すぎます。 この共通プロトコルの作業は、COMポートを介して行われ、USBコンバータを介して作業しています。

⇒VISAデバイスが低いとはどういうことでしょうか。デバイスとPCとの間にいくつもの機器を接続し経由させているということでしょうか。今デバイスはPCとはUSBケーブルを介し、直接接続されています。

 

ヘルプは見ていますが、なぜ”リソースで定義またはサポートされていない”となるかが全く分かりません。

NI MAX に示されているUSB0::0x2457::0x101E::NI-VISA-10002::RAWは

正しいリソース名ではないのでしょうか。

 

何度もしつこいですが、よろしくお願いいたします。

 

PS. できれば英語の文も記載お願いします。

(書くことはできませんが、読むことは大体できますので。。。)

0 件の賞賛
メッセージ7/12
3,654件の閲覧回数

If you do not mind, take a screen shot of NI-MAX, similar to my "see Com6", with the expanded tab "Devices & Interfaces"

It is normal to work in terminal mode as a VISA device only if it is connected as COM port, or "ASLR :: Instr". In this case, the properties of speed setting, terminal symbol, etc. will be available

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
0 件の賞賛
メッセージ8/12
3,648件の閲覧回数

Mr. Borjomyへ

 

スクリーンショット添付しました。

 

COMは4個までしか追加できませんでした。いずれかのCOMでプロパティのボーレートやデータビットなどのポート設定を機器の設定に合わせていけば機器にリンクさせることができるのでしょうか?

0 件の賞賛
メッセージ9/12
3,644件の閲覧回数

H.m....

USB2000-Operating-Instructions

 

スポイラ
Serial Port Mode
To use the serial port capacity of the USB2000+ Spectrometer, the computer must be running a 32-bit version of the Windows operating system. ► Procedure Follow the steps below to connect the USB2000+ to the computer via serial port:
1. Connect the serial cable adapter block to the appropriate pins of the USB2000+’s 30-Pin Accessory Connector.
2. Connect one end of the 9-pin serial cable to the adapter block on the USB2000+, and then connect the other end to a serial port on the computer.
3. Note the number of the serial port (COM Port) to which you connected the USB2000+ (some computers may not have numbered ports; handheld computers typically have only one serial port).
4. Plug the 5 VDC external power supply into an outlet and connect it to the USB2000+

From this description it follows that the system should appear COM-port

 

What you do not like the driver for this device?
I did not find it to support the terminal mode that you apply in your examples.

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Ocean-Optics-Flame-Sepctrometer-with-Labview...

http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=16709

 

Labview 4.0, 5.0, 6.1, 8.6, 2009, 2011, 2012, 2014
If you do not know something, ask me.
0 件の賞賛
メッセージ10/12
3,638件の閲覧回数