## Phidget Data Adapter.lvlib:DataAdapteri2cComplexTransaction.vi

Initiates a set of write and read transactions to happen in quick succession.

Device Support:

ADP0001_0 (ver: 200) Data Adapter : Supported

ADP0001_0 (ver: 200) Data Adapter : Supported

ADP0002_0 (ver: 100) Data Adapter : Unsupported

ADP0002_0 (ver: 100) Data Adapter : Unsupported

| Device In Device # Identification

| error in (no error) error in can accept error information wired from VIs previously called.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| address The address of the I2C device

| I2CPacketString Specify the bytes of your I2C packet using 's' for start, 'R' for read, 'T' for write, and 'p' for stop. Only one stop condition per call is supported. For example, if you wanted to write two bytes, generate a repeat start, write one more byte, then read three bytes, the string would be "sTTsTsRRRp". You can also use numbers to indicate the number of bytes, e.g. "sT2sTsR3p"

| data The entire set of data to send, in order from first to last. The length of this data must match the total number of bytes specified to be sent in the I2CPacketString.

| Numeric Data bytes

| Device Out Same as Device In

| error out error out passes error or warning information out of a VI to be used by other VIs.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| recvData The received data. This will be made up of all 'R' bytes as specified in the I2CPacketString, in order from first to last.

| Data bytes

| recvDataLen Specifies the length of the recvData array. Returns the number of bytes recieved. If the received data is longer than the recvData array, an error will be thrown. Any error detected in the received data will result in this argument becoming 0.