このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
I2C通信
I2C (Inter-Integrated Circuit) は、2 線式通信をサポートするチップ間インターフェースです。I2C 周辺機器に接続し、読み書きすることができます。aardvark
または ni845x
オブジェクトを指定した device
関数を使用して、インターフェース オブジェクトを作成します。
I2C インターフェイスを使用するには、Total Phase® Aardvark I2C/SPI™ ホスト アダプタ、または NI™ USB-8451 または USB-8452 I2C/SPI インターフェイス デバイスのいずれかがインストールされている必要があります。
関数
トピック
- I2C Interface Overview
Connect to I2C controller boards and peripheral devices and communicate with them from MATLAB®.
- Configure I2C Controller Board Communication
Discover and connect to Total Phase Aardvark™ or NI USB-845x controller boards using the
aardvark
orni845x
interface. - Transmit Data to Peripheral Device Over I2C Interface
Communicate with an I2C peripheral device connected to a Total Phase Aardvark or an NI USB-845x controller board.
- Install Instrument Control Toolbox Support Package for Total Phase Aardvark I2C/SPI Interface
Install the support package for a Total Phase Aardvark controller to communicate with I2C and SPI interfaces in MATLAB.
- Install Instrument Control Toolbox Support Package for National Instruments NI-845x I2C/SPI Interface
Install the support package for an NI USB-845x controller to communicate with I2C and SPI interfaces in MATLAB.
- Transition Your Code to aardvark or ni845x Interface
Create I2C connections using the
device
function with anaardvark
orni845x
object instead ofi2c
.
トラブルシューティング
Troubleshoot the I2C interface.