Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   navX Sensor Labview Issues (http://www.chiefdelphi.com/forums/showthread.php?t=145703)

s5511 14-03-2016 16:05

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

cjl2625 14-03-2016 16:15

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.

s5511 14-03-2016 16:29

Re: navX Sensor Labview Issues
 
Quote:

Originally Posted by cjl2625 (Post 1557060)
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

Caboose 14-03-2016 17:35

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.


All times are GMT -5. The time now is 00:41.

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