Go to Post If an alternate is used, all four teams are equal members of the alliance. (Trophies, trips, bling, book tours, custody of the children etc.) - Btower [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-11-2014, 18:35
ChocolateTiger ChocolateTiger is offline
Registered User
FRC #3654
 
Join Date: Nov 2014
Location: Connecticut
Posts: 3
ChocolateTiger is an unknown quantity at this point
Digital Accelerometer SPI LabView Programming

We are trying to do some off-season experimenting with sensors, namely accelerometers and gyroscopes. However, we are having difficulty figuring out how to program the digital accelerometer in LabView. We have searched for examples and tutorials to no avail. It would be very helpful if someone could either explain how to do this with the SPI Vi's or include a program, screenshot or link.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 18-11-2014, 19:48
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Digital Accelerometer SPI LabView Programming

I no longer have last year's examples installed, but I can tell you that there is one for 2015. I suspect that you can get most of the info from the data sheet, but it will certainly give a boost if there is an example. If there is one, it will be in ProgFiles/NationalInst/LabVIEW2013/examples/FRC/SPI.

If you don't find one and need details, I can screenshot, or perhaps a beta team can. I'm not sure if the beta team agreement details.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 22-11-2014, 19:50
ChocolateTiger ChocolateTiger is offline
Registered User
FRC #3654
 
Join Date: Nov 2014
Location: Connecticut
Posts: 3
ChocolateTiger is an unknown quantity at this point
Re: Digital Accelerometer SPI LabView Programming

If possible, a screenshot would a great, thanks.
Reply With Quote
  #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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi