メインコンテンツ

このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。

SPI通信

SPIインターフェースを使用した通信

SPI (シリアル ペリフェラル インターフェイス) は、全二重モードで動作する同期シリアル データ リンク規格です。試験・計測分野でよく使用されます。一般的な用途としては、マイクロコントローラ、EEPROM、A2D デバイス、組み込みコントローラなどとの通信が挙げられます。Instrument Control Toolbox™ SPI サポートを使用すると、個々のチップとの接続を開き、接続を介して読み取りと書き込みを行うことができます。

spi 関数を使用してインターフェース オブジェクトを作成し、通信には read 関数と write 関数を使用します。SPI インターフェイスを使用するには、Total Phase Aardvark ホスト アダプタまたは NI-845x アダプタ ボードがインストールされている必要があります。詳細については、Configuring SPI Communicationを参照してください。

関数

instrhwinfoInformation about available hardware
spiCreate SPI object
readRead binary data from SPI instrument
writeWrite binary data to SPI instrument
writeAndReadWrite and read binary data from SPI instrument
methodsClass method names and descriptions
dispDisplay instrument object summary information
connectConnect device object to instrument
disconnectDisconnect device object from instrument
clearRemove instrument objects from MATLAB workspace

トピック

トラブルシューティング

Troubleshooting SPI Interface

Try these tips if you have problems using the toolbox with the SPI interface. Includes information about SPI supported platforms, adapter requirements, and configuration and connection.

注目の例