Go to Post Why does kick off take so long to get here but ship date comes toooooooooo fast? - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2016, 16:05
s5511's Avatar
s5511 s5511 is offline
Registered User
FRC #5511
 
Join Date: Jan 2016
Location: Cary, NC
Posts: 58
s5511 is an unknown quantity at this point
Question navX Sensor Labview Issues

Our team has recently been trying to use the navX with Labview robot code to get Linear Acceleration, Yaw, and Velocity data. However, we are running into several errors/issues while trying to do so. We used the Labview navX Libraries and VIs from https://github.com/FRC900/navX-MXP-LabVIEW .

We are able to compile the code on the laptop and deploy it successfully, but when we enable to robot and try to run the code, we get several errors, and the navX does not return any values. Additionally, whenever we put any navX code into our project(even in just Begin.vi), our drivetrain refuses to move. As soon as we remove the navX code, it works again. Our navX mounted directly onto the roboRIO and has been updated to the latest firmware version.

Images of our code and the code itself are all posted in this google drive folder:


https://drive.google.com/folderview?...&usp=sha ring


Any help would be greatly appreciated, as we have been struggling with this for a while now.


Some of the errors we get on the DS:

ERROR -63195 Read/Write Control in FPGA_DIOWritePWMValue.vi->WPI_DigitalModuleSetPWM.vi->WPI_PWMSetValue.vi->WPI_MotorControlOpen&ConfigurePWM.vi->WPI_MotorControlOpen
ERROR -44035 FRC: The PWM channel index is invalid. WPI_PWMChannelCache.vi
  #2   Spotlight this post!  
Unread 14-03-2016, 16:15
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: navX Sensor Labview Issues

I had that error before.

I updated the libraries to the most recent version (2.0.5), played around with the way the library was added to the robot project, and updated the firmware on the navX, and now I don't have any problems with it.
__________________
Head Programmer / Driver
  #3   Spotlight this post!  
Unread 14-03-2016, 16:29
s5511's Avatar
s5511 s5511 is offline
Registered User
FRC #5511
 
Join Date: Jan 2016
Location: Cary, NC
Posts: 58
s5511 is an unknown quantity at this point
Re: navX Sensor Labview Issues

Quote:
Originally Posted by cjl2625 View Post
I had that error before.

I updated the libraries to the most recent version (2.0.5), played around with the way the library was added to the robot project, and updated the firmware on the navX, and now I don't have any problems with it.
I am using v2.0.5 of the libraries, and I updated the navX to the latest firmware last night.

How did you add the library to the robot project? I dragged and dropped the library into the main project window, and I was able to add the Vis from there into Begin, Teleop, and Finish.

Here are pictures of my code:

http://imgur.com/a/ii6hb
  #4   Spotlight this post!  
Unread 14-03-2016, 17:35
Caboose's Avatar
Caboose Caboose is offline
Programmer - LabVIEW, C++, C#, Java
AKA: James Parks
FRC #0900 (Zebracorns)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Seattle, WA
Posts: 72
Caboose has a spectacular aura aboutCaboose has a spectacular aura about
Unhappy Re: navX Sensor Labview Issues

I'm sorry you are having this issue, this is odd. I see that you are using the lvlibp form of the library, have you tried the zipped version? Let me know if that works, I may need to fix how the lvlibp is built if that is the case.
__________________
navX Labview Library

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

myManga
Closed Thread


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 00:41.

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