Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-14-2019 06:58 PM
初めて投稿します。
LINプロトコル2.1を使用したてアプリケーションを作成するためUSB-8473を購入しました。
その際、サンプルプログラム(LINMasterSendFullFrameandReceive.frm)を参考に作成しています。
サンプルプログラムは以前USB-8473を購入した際にドライバーと一緒にインストールされたものを参照しています。
そこにはCAN通信と同様に「ArbitrationId」にIDをセットし、8バイトのデータをすると通信が可能になるとされているのですが
LINプロトコル2.1で必要とされるPIDやチェックサムは不要なのでしょうか?
また、構造体にある「IsRemote」には何をセットすればよいのでしょうか?
参考にできるサンプルプログラム(VisualBasic)があれば教えてください。
01-31-2019 05:35 AM
平素よりNI製品をご愛顧頂き誠にありがとうございます。日本ナショナルインスツルメンツ技術部の前田と申します。
PIDについては、Idより計算されます。
チェックサムはNC_ATTR_LIN_CHECKSUM_TYPEより設定が可能です。デフォルトでは、Classic Checksumとなっています。
Isremoteについては、フレームのタイプが設定できます。詳細については、マニュアルのncWriteの項をご確認ください。
NI-CAN Hardware and Software Manual - National Instrumentshttp://www.ni.com/pdf/manuals/370289t.pdf
LIN - National Instrumentshttp://sine.ni.com/np/app/main/p/ap/icomm/lang/ja/pg/1/sn/n17:icomm,n21:9536/fmid/2955/
よろしくお願いします。
01-31-2019 07:17 PM
前田様
回答ありがとうございます。
早速試してみたところ、うまくいきました。
ありがとうございました。
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!