View Single Post
  #4   Spotlight this post!  
Unread 22-11-2014, 20:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Digital Accelerometer SPI LabView Programming

In LabVIEW, from the Getting Started window.
  1. Click on "Support" on the left side
  2. Click on "Find FRC Examples..."
  3. Open the "Sensors" folder by double-clicking on it
  4. Open the ADXL345 SPI Accelerometer.lvproj
That's your example code.
To run the example
  1. Right-click on "RT CompactRIO Target (10.0.0.2) and choose "Properties"
  2. Change the default IP address to your team IP (10.36.54.2) and save
  3. Run from ADXL345 SPI Accelerometer.vi or build and run as startup
All the code you'll need to add to your project is under the ADXL345 SPI Driver folder in the example project.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote