Go to Post I still have 3 good ligaments left and 2 events, so I should be fine :rolleyes: - esquared [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-12-2008, 15:12
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
LabVIEW with NXT sensors

Some skilled LabVIEW programmer: PLEASE write vi's for the NXT accelerometer and gyro or tell me where I can get them.

I spent some time this summer working through LabVIEW Basics Course I. This fall I purchased an NXT robot so I could learn to program a robot with LabVIEW. Towards that end I also purchased the accelerometer and gyro.

After spending $400 on my NXT kit I discovered that the LabVIEW NXT toolkit does not include vi's for the accelerometer and gyro. I downloaded the NXT-G code from Hitechnic's website and recompiled the vi's. However, the vi's are password protected and useless.

I found some website where National Instruments claimed that they weren't releasing the code since it was proprietary. I'm afraid I just wasted a lot of money, but I still want to learn to program using the acclerometer and gyro.

Thanks in advance!
__________________
------------------------------------------------------
Believe the impossible!
2008 Battle of Baltimore Champion
2007 Chesapeake Regional Finalist
2007 Chesapeake Regional Judges Award Winner
Reply With Quote
  #2   Spotlight this post!  
Unread 02-12-2008, 18:23
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,613
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: LabVIEW with NXT sensors

I did notice that the digital sidecar has an NXT sensor connector. Does WPI or NI plan on releasing drivers for any of the NXT sensors for the cRio ?
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
Reply With Quote
  #3   Spotlight this post!  
Unread 02-12-2008, 18:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,900
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: LabVIEW with NXT sensors

The compass is available in the WPILib C++ Class list
http://users.wpi.edu/~bamiller/WPIRo...ary/index.html
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 02-12-2008, 19:43
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: LabVIEW with NXT sensors

Quote:
Originally Posted by Mark McLeod View Post
The compass is available in the WPILib C++ Class list
http://users.wpi.edu/~bamiller/WPIRoboticsLibrary/index.html
How do we use it in Labview?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #5   Spotlight this post!  
Unread 02-12-2008, 20:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,900
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: LabVIEW with NXT sensors

There's no vi for it, so we might have to write our own.
There are I2C vi's for the basic communications you need to get it working.
Just search Functions for I2C.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 06-12-2008, 18:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,900
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: LabVIEW with NXT sensors

P.S.
LabVIEW comes with some examples using the I2C vi's to take input from an NXT compass and an NXT accelerometer.

When you fire up LabVIEW, on the bottom right under "Examples," you'll see "More..."
Click on "More..." and you'll get a list of examples including:
HiTechnic Accel Example
HiTechnic Compass Example

Open one of those up, say the Accel one, and in the Block Diagram you'll see the Accel Open subvi. Double click on that, open the Block Diagram window, and you'll see how the I2C communication is handled.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 06-12-2008, 19:53
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: LabVIEW with NXT sensors

**Slightly off topic**

Also with the NXT connector on the digital sidecar if you look at the jaguars i believe they have the same connector on them. I think i read somewhere in the future we might be using those instead of the PWM cables for speed control?

i think it was called CAN "control area network" or something like that


Sorry i just thought i would bring that up just thinking that connector might not actually be meant to use for the NXT devices....

(if i had been misinformed please let me know) Thanks!
Reply With Quote
  #8   Spotlight this post!  
Unread 06-12-2008, 20:57
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: LabVIEW with NXT sensors

Quote:
Originally Posted by popo308 View Post
...with the NXT connector on the digital sidecar if you look at the jaguars i believe they have the same connector on them...
No, it's not the same connector.

Quote:
i think it was called CAN "control area network" or something like that
Yes, it's CAN.

There are no built-in CAN connections on the cRIO or any of the breakouts or sidecars. To use it in future years will require adding a cRIO CAN module (e.g. NI 985x).
Reply With Quote
  #9   Spotlight this post!  
Unread 06-12-2008, 21:04
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: LabVIEW with NXT sensors

Quote:
Originally Posted by Alan Anderson View Post
No, it's not the same connector.



There are no built-in CAN connections on the cRIO or any of the breakouts or sidecars. To use it in future years will require adding a cRIO CAN module (e.g. NI 985x).
Ok i wasn't sure if they were the same port or not...

Last edited by popo308 : 06-12-2008 at 22:28.
Reply With Quote
  #10   Spotlight this post!  
Unread 23-12-2008, 10:48
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: LabVIEW with NXT sensors

I'm still interested in using a NXT with LabVIEW and an accelerometer and gyro. The point of this thread was to find a way to learn robot programming with LabVIEW on an NXT (cheaper than a cRIO).

I've messed around some with I2C and the Advanced Programming guide, without success. Can someone please post vi's for the NXT to read the accelerometer and gyro?
__________________
------------------------------------------------------
Believe the impossible!
2008 Battle of Baltimore Champion
2007 Chesapeake Regional Finalist
2007 Chesapeake Regional Judges Award Winner
Reply With Quote
  #11   Spotlight this post!  
Unread 23-12-2008, 16:08
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,756
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: LabVIEW with NXT sensors

I'm afraid I'm not going to be of much help. It sounds like you have VIs from the mfg of the sensor that work, and that means you can write LV code that makes your NXT respond to the sensor input.

To dig deeper, into the actual protocol for talking with the sensor is something that the toolkit does support, and you may be able to find the protocol details on the HiTechnic website or on a similar advanced LEGO site -- NXTasy.org and thenxtstep.com are good sites to scour for that sort of thing. That would also be a better place to ask advanced questions about the NXT.

On the otherhand, the author of the VIs was not NI, and they chose to lock the diagrams, likely for support reasons.

Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread 28-12-2008, 10:54
HiTechnic HiTechnic is offline
Registered User
no team
 
Join Date: Dec 2008
Location: Holland Patent, NY
Posts: 1
HiTechnic is an unknown quantity at this point
Re: LabVIEW with NXT sensors

VIs for HiTechnic sensors are available from HiTechnic. They are not on the web site yet but will be posted there shortly. In the mean time, email support@hitechnic.com for a copy.
Reply With Quote
  #13   Spotlight this post!  
Unread 28-12-2008, 16:55
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is online now
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,980
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: LabVIEW with NXT sensors

Quote:
Originally Posted by HiTechnic View Post
VIs for HiTechnic sensors are available from HiTechnic. They are not on the web site yet but will be posted there shortly. In the mean time, email support@hitechnic.com for a copy.
And this is why I love ChiefDelphi and FIRST.

Thanks HiTechnic
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
Reply With Quote
  #14   Spotlight this post!  
Unread 05-01-2009, 02:02
Danny Diaz's Avatar
Danny Diaz Danny Diaz is offline
Smooth Operator
AKA: FrankenMentor
None #0418
Team Role: Alumni
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Manchester, NH
Posts: 545
Danny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond reputeDanny Diaz has a reputation beyond repute
Send a message via AIM to Danny Diaz
Re: LabVIEW with NXT sensors

Quote:
Originally Posted by Daniel_LaFleur View Post
And this is why I love ChiefDelphi and FIRST.
And, as an aside, you can ALWAYS read analog sensors like the accelerometer and Gyro by using the Light Sensor VIs. I did with accelerometers and gyros from the last several year's KOP with ease.

-Danny
__________________
Danny Diaz
Former Lead Technical Mentor, FRC 418
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview 8.5.1 Install with VISTA Team 1708 Dave NI LabVIEW 5 27-10-2008 08:43
Creating mac applications with Labview kamocat NI LabVIEW 2 21-10-2008 21:07
Labview and Sensors Joohoo NI LabVIEW 4 09-05-2008 20:44
Learning Labview Tookit on the NXT lynca NI LabVIEW 2 04-05-2008 16:01
pic: NXT with a Pentium D heart by team 375 eshteyn Extra Discussion 6 07-11-2006 13:49


All times are GMT -5. The time now is 11:04.

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