Example Code

NI-845x - Read & Write Characters to EEPROM

Code and Documents

Attachment

Download All

Introduction

This is a example to read and write characters to an EEPROM using the I2C protocol using the NI-845x API.  The example has an event driven architecture and uses scripting.  Scripting VI's can be found under the I2C Advanced palette.

Steps to Complete

1. Set the I2C device (a 845x series device), Control Byte, EEPROM address, and Clock Rate.

2. Set the string to write into the EEPROM.

3. Click Write to write the data into the EEPROM.

4. Click Read to read back the characters and display them in the string control.

5. Change the EEPROM address to write characters into different memory addresses in the EEPROM.

Additional Notes

The example is written for LabVIEW 8.5 and above.  It requires NI-845x to be installed.

2009-08-26_132930.jpg

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
abman
Member
Member
on

Hi, I am new to this, I am trying to create a similat VI.

I have a device with I2c capability. I need to communicate with the device using NI8451 HW.

The device has multiple register, I need to be able to communicate write/read using the NI8451.

Similar to what you shown above, can someone help.

Thanks

Contributors