NI I2C Host Example for the PXIe-5644/45R »
This example uses NI-RFSA and NI-RFSG instrument driver FPGA extensions, along with the NI I2C IP to create FPGA personalities for the NI PXIe-5644R and NI PXIe-5645R that have the ability to implement I2C communication for hardware-timed DUT control.
|
Description: This example uses NI-RFSA and NI-RFSG instrument driver FPGA extensions, along with the NI I2C IP to create FPGA personalities for the NI PXIe-5644R and NI PXIe-5645R that have the ability to implement I2C communication for hardware-timed DUT control. The host code is capable of communicating with an I2C slave device using a PXIe-5644/45R. See the block diagram of this VI for a step-by-step explanation. Reads and writes are done to the slave based on the settings in the i2c.settings control. The I2C slave has a device address of x4; therefore, if the Device Address in the settings control is changed, the data should stop matching. The 10-bit Addressing settings can also be changed to verify the feature. The read setting is overwritten inside this VI so its value does not matter. The number bytes setting must be in the range of 5 to 8 for this example. Lastly, the divide setting can be altered to determine interface performance. The DIO should be connected as in the IO Mapping listing below. In general, the DIO should simply be left unconnected to run this example. Note that the "Read" setting is altered inside this VI and has no effect from the front-panel.
Additional Documentation:
Compatibility:
This example was designed and tested using the following software packages:
Dependencies:
Latest Version:
Previous Versions:
Installation Notes:
After installing a VI package containing an instrument driver FPGA extensions host example, before opening any of the host VIs, move the sub-directories installed under the example parent directory into c:\Program Files\National Instruments\NI VST\Custom Bitfiles\ (32-bit Windows) or c:\Program Files (x86)\National Instruments\NI VST\Custom Bitfiles\ (64-bit Windows). The Custom Bitfiles directory may require manual creation, and this process requires administrative privileges. After moving these files, c:\Program Files[ (x86)]\National Instruments\NI VST\Custom Bitfiles\[Sub-directory Name]\Open FPGA Session.vi" should be a valid file path.
Note: All source on this community is distributed using VI Package Manager (VIPM). For more details on VIPM, please read A Note on VI Package Manager