SPI, or Serial Peripheral Interface, is a synchronous serial data link standard that operates in full duplex mode. It is commonly used in the test and measurement field. Typical uses include communicating with micro controllers, EEPROMs, A2D devices, embedded controllers, etc. Using Instrument Control Toolbox™ SPI support, you can open connections with individual chips and read and write over the connections.
Create the interface object using the
and use the
for communication. To use the SPI interface, you must have a Total
Phase Aardvark host adaptor or an NI-845x adaptor board installed.
See Configuring SPI Communication for details.
|Information about available hardware|
|Create SPI object|
|Read binary data from SPI instrument|
|Write binary data to SPI instrument|
|Write and read binary data from SPI instrument|
|Class method names and descriptions|
|Display instrument object summary information|
|Connect device object to instrument|
|Disconnect device object from instrument|
|Remove instrument objects from MATLAB workspace|
- Configuring SPI Communication
You must have a Total Phase Aardvark host adaptor or an NI-845x adaptor board installed to use the
- Transmitting Data Over the SPI Interface
The typical workflow for transmitting data over the SPI interface involves adaptor discovery, connection, communication, and cleanup. This example covers the whole workflow.
- Using Properties on the SPI Object
You can use these interface-specific properties with the
- SPI Interface Overview
The Instrument Control Toolbox SPI support lets you open connections with individual chips and to read and write over the connections to individual chips using an Aardvark or NI-845x host adaptor.
- SPI Interface Usage Requirements and Guidelines
These requirements and tips apply to the use of the SPI interface.
- Instrument Control Toolbox Properties
These properties are available in the toolbox.
Try these tips if you have problems using the toolbox with the SPI interface. Includes information about SPI supported platforms, adaptor requirements, and configuration and connection.