From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication I2c et carte PXI-6551

Solved!
Go to solution

Bonjour,

j'aimerai communiquer avec une EEPROM série, donc avec un protocole I2c. Je possède Labview 8.6 et une carte PXI-6551.

j'utilise la librairie I2c pour créer des trames de communication, cependant je n'arrive pas à les envoyer sur la 6551, et je dois avouer que j'ai du mal à comprendre comment la gestion des ACK peut se faire.

Si vous pouviez me donner un coup de pouce, ce serait très aimable.

Merci d'avance,

Laurent.

 

0 Kudos
Message 1 of 8
(4,837 Views)

Je n'epelle pas tres bien en Francais, et je ne sais pas des mots techniques.  Je repondrai en anglais:

 

You must set your PXI-6551 line to tri-state to receive an ACK signal.  Here are the steps:

Generate the address on the SDA line.

Set SDA to tri-state then read the ACK response.

Generate the data on the SDA line.

Again set SDA to tri-sate to read ACK response.

Continue in this manner.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 8
(4,817 Views)

Thank you for your answer,

In fact the aim of my question is to understand how I can use the I2C library of Labview. I'll prescise:

When I build an I2C signal (Start Bit, adress, Ack, Data, Stop bit...) with this famous I2c library, I create an "I2C Digital Waveform" :

transmit_code.png

 

then, I dont how to use this "I2C Digital Waveform"

Is there a VI using this Waveform?

Thank you for some help

 

Laurent

0 Kudos
Message 3 of 8
(4,790 Views)

I have never used the I2C lIbrary.  I didn't even know it existed.  Thank you for teaching me something new.

 

You can send the I2C Waveform into the DAQmx Write function.  First you have to open a new DAQmx session.  Then set up the channels, timing, triggering, and such.  Wire the waveform to the Write function, then use the Initiate function to cause the PXI-6551 to output the waveform.  I hope that the I2C library you are using will take care of making the 6551 lines tri-state when it comes time to process the ACK signal.

 

I have built waveforms the hard way, using the Digital Waveform functions to produce the Start bit, address bits, ACK, and so on...  I will have to take a look at the library you mentioned.

 

I have to re-install Labview because of a problem.  When it is up and running, I will create a DAQmx example that you can use and post it here.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 8
(4,771 Views)
Solution
Accepted by topic author laurent Benard

Just to clarify, you will use the HSDIO driver with the 655x, not the DAQmx driver. Here is a link to the I2C Digital Waveform Reference Library, which you can use to build your I2C waveform. Then once you have your waveform, here is a link to the Serial Protocol Communication Reference Design for Digital Waveform Devices document that explains how to use that waveform with your hardware, and there is a section specifically on using HSDIO devices to generate the waveform. These two documents compliment each other. Hope this helps.

 

Regards,

DJ L.

Message 5 of 8
(4,765 Views)

DJ L. wrote:

Just to clarify, you will use the HSDIO driver with the 655x, not the DAQmx driver.


Oooops.  My mistake.  I meant HSDIO drivers, not DAQmx (I had DAQmx on my mind).  I will produce an example once I fix my Labview issue.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 8
(4,760 Views)

All is explain in the link Serial Protocol Communication Reference Design for Digital Waveform Devices

Thank you for your help,

Laurent.

 

0 Kudos
Message 7 of 8
(4,682 Views)

laurent as tu reussi a faire fonctionner le I2C avec ton PXI 6551 j'essaye de faire la meme chose avec le PXI 6556 mais la seule reponse que je recoit de mon equipement est une suite de FFFF

merci de ton aide

0 Kudos
Message 8 of 8
(3,982 Views)