Go to Post I mean, there is a 40 second period where your alliance has to play defense, so you might as well play it well. - Jeff Rodriguez [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 10-02-2016, 10:23
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 166
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
NAVX Libraries

We are trying to use the Navx board in LV for gyro angle controlled driving in auto mode. We're having difficulties talking to the Navx board in general. One item of difficulty is how to make available the Navx libraries in LV. Last night we looked at the example code and cut & pasted the open part into the begin.vi and the read part into teleop.vi but got no response. Are we missing a step somewhere? One thing i noticed is the DevRef naming appears different than what we're used to with the WPI library functions. Not sure that has any bearing on it. Any help is appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2016, 10:48
Greg McKaskle Greg McKaskle is online now
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
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: NAVX Libraries

The team I'm helping with found that they had old firmware on their navX. The board works much better with newer firmware. But we are seeing a crash issue on subsequent interactive deployments.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2016, 10:55
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 166
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: NAVX Libraries

We did the firmware upgrade last night before we started.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2016, 11:37
Caboose's Avatar
Caboose Caboose is offline
Programmer - LabVIEW, C++, C#, Java
AKA: James Parks
FRC #0900 (Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 71
Caboose has a spectacular aura aboutCaboose has a spectacular aura about
Smile Re: NAVX Libraries

Quote:
Originally Posted by pribusin View Post
We are trying to use the Navx board in LV for gyro angle controlled driving in auto mode. We're having difficulties talking to the Navx board in general. One item of difficulty is how to make available the Navx libraries in LV. Last night we looked at the example code and cut & pasted the open part into the begin.vi and the read part into teleop.vi but got no response. Are we missing a step somewhere? One thing i noticed is the DevRef naming appears different than what we're used to with the WPI library functions. Not sure that has any bearing on it. Any help is appreciated.
Did the example code work and yours not? What do you mean by "make available the Navx libraries in LV"? Are you adding the library file to your project? Do you have the latest version of the library (v2.0.4.0)? What interface are you using for communications? Although I tried to make things similar, the LabVIEW library for the navX is not a WPI library.

Quote:
Originally Posted by Greg McKaskle View Post
The team I'm helping with found that they had old firmware on their navX. The board works much better with newer firmware. But we are seeing a crash issue on subsequent interactive deployments.

Greg McKaskle
That's odd...logs? What type of crash? Are you using the stop VI in your finish? What interface are you using for communications?
__________________
navX Labview Library

"Robots are aluminum shavings, held together by zip-ties."

myManga
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2016, 11:45
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 166
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: NAVX Libraries

Quote:
Originally Posted by Caboose View Post
Did the example code work and yours not? What do you mean by "make available the Navx libraries in LV"? Are you adding the library file to your project? Do you have the latest version of the library (v2.0.4.0)? What interface are you using for communications? Although I tried to make things similar, the LabVIEW library for the navX is not a WPI library.
We did not run the example code - will suggest students do that tonight.

We would like the navX library to be available in LV just like the other libraries, like WPI etc. so that you can click on VIs and drag them onto the schematic.

I'll have students check our library version tonight.

In the example when you open the navX in Begin.vi, the DevRef goes to a cluster. Is that global? How does Teleop.vi reference the navX?
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2016, 12:09
Caboose's Avatar
Caboose Caboose is offline
Programmer - LabVIEW, C++, C#, Java
AKA: James Parks
FRC #0900 (Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: NC
Posts: 71
Caboose has a spectacular aura aboutCaboose has a spectacular aura about
Re: NAVX Libraries

Quote:
Originally Posted by pribusin View Post
We did not run the example code - will suggest students do that tonight.

We would like the navX library to be available in LV just like the other libraries, like WPI etc. so that you can click on VIs and drag them onto the schematic.

I'll have students check our library version tonight.

In the example when you open the navX in Begin.vi, the DevRef goes to a cluster. Is that global? How does Teleop.vi reference the navX?
I'm currently playing with creating a menu for the library.

Which example? The examples in 'Examples/Functions' were created by me. The examples in 'Examples/Robot' were created by Kauai Labs. There is a GetRefNum/SetRefNum VI that is base on the WPI GetRefNum/SetRefNum.
__________________
navX Labview Library

"Robots are aluminum shavings, held together by zip-ties."

myManga
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:08.

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