NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Azimov33
Posts: 1
0 Kudos

Best way to chain several I2C write / read cycles

Hi,

 

I'm developing a custom sensor that communicates over I2C with the NXT.

 

I need to perform sequencially several read / write actions over I2C.

 

I know that the NXT toolkit is limited to only one frame sequences and that is possible to chain them with "pink NXT wires" or "any other wire".

 

I've tried several times but I only get the first frame working. The other aren't executed.

 

Does anyone here has enough experience or advices to perform several I2C operations sequencially in the same VI.

 

Many thanks in advance.

Member
ESearl
Posts: 67

Re: Best way to chain several I2C write / read cycles

What version of LabVIEW / NXT Module are you using?

The most recent LVLM supports multi-frame stacked sequences.

 

Take a look at the ultrasonic sensor block diagram, it has a configure step followed by actually reading the data.

 

One problem can be trying to read/write the i2c channel too fast. You may need to insert some arbitrary wait times in between sequential i2c calls.

 

If you post your code it might be easier to tell whats not working.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page