View Single Post
  #3   Spotlight this post!  
Unread 20-01-2010, 01:50
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: New digital accelerometer wiring/LabView programming

Quote:
Originally Posted by TD912 View Post
So it seems there are two ways to wire the accelerometer to the DigiSidecar, one using I2C or SPI. SPI uses up 4 I/O slots where I2C has it's own area behind the phone-plug-like NXT connector. I'm guessting the resulting output fm the accelerometer will be the same in either case. Are there any advantages to using one method over the other?
I2C requires fewer wires and is supported in all 3 languages. SPI may be somewhat faster. I prefer I2C.

Quote:
Originally Posted by TD912 View Post
Also, how would you properly go about reading the output from the accelerometer in LabView? The old analog accelerometer was pretty simple to work with, but I'm not totally sure how to access the I2C or SPI inputs...
You should look at the examples in the LabVIEW Getting Started Window >> Examples. Look for ADXL345.