I2C Communication Example for Digital Pattern Instruments

Updated May 17, 2023

Reported In


  • PXIe-6571
  • PXIe-6570


  • NI-Digital Pattern Driver and Digital Pattern Editor

Issue Details

  • Where can I find examples to send I2C commands with my PXIe-6570?
  • Are there any examples that implement I2C communication using Digital Pattern Editor?
  • Can the PXIe-6570 be used as a master device for I2C?


The PXIe-6570 can certainly be used for I2C communication. An example Digital Pattern Editor project can be found in the attached files.

To get started implementing your I2C application you can modify the attached I2C EEPROM example, or use the SPI Example as a reference. 


Additional Information

From the version 18.0 of the NI-Digital Pattern driver, an opcode called source_d_replace is supported. This enables you to use more pin states with source memory by replacing pin states 0 and 1 with pin states 0, 1, H, L, or X. A further explanation of the source_d_replace opcode can be found in Source Pin State Replacement in Digital Pattern Editor.

The example project Digital Pattern Instrument: Source Synchronous Acquisition on our Code Exchange has been found to be helpful in developing I2C slaves and masters. ​​​​