Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

I2C Express VI

LabVIEW 2013 for myRIO Module Help

Edition Date: June 2013

Part Number: 373925A-01

»View Product Info

Owning Palette: myRIO VIs

Requires: myRIO Module

Writes/reads data to/from an Inter-Integrated Circuit (I2C) slave device.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
NameSpecifies the name of this Express VI. You can also double-click the name of this Express VI on the expandable node to edit the name.
ChannelSpecifies the I2C channel you want to use for writing/reading data to/from the I2C slave device.
ConnectionsSpecifies the NI myRIO pins that correspond to the data line (SDA) and clock line (SCL).
ModeSpecifies the mode of operation that this Express VI uses to communicate with the I2C slave device. Mode contains the following options:
  • Write—Specifies that this Express VI writes data to the I2C slave device.
  • Read—Specifies that this Express VI reads data from the I2C slave device.
  • Write/Read—Specifies that this Express VI writes data to the I2C slave device and then reads a specified number of bytes from the I2C slave device.
SpeedSpecifies the transfer rate of the I2C channel. The default is Standard Mode (100 kbps).
View CodeDisplays the underlying code of this Express VI.

Block Diagram Inputs

ParameterDescription
Slave Address (7-bit)Specifies the address of the I2C slave device to/from which this Express VI writes/reads data. You must specify the address in 7 bits. Some I2C devices might have an 8-bit address in which the first 7 bits represent the address and the last bit represents the mode of operation. For these kind of I2C devices, you must specify Slave Address (7-bit) using the seven most significant bits.
Bytes to WriteSpecifies the data bytes that you want this Express VI to write to the I2C slave device. This input is available when you set Mode to Write or Write/Read.
Byte CountSpecifies the number of bytes that you want this Express VI to write to the I2C slave device. This input is available when you set Mode to Read or Write/Read.
error in (no error)Describes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
Bytes ReadReturns the data bytes that this Express VI reads from the I2C slave device. This output is available when you set Mode to Read or Write/Read.
error outContains error information. This output provides standard error out functionality.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit