Advice for code integration

We are a first year team, there is no programming mentor. I am the only programmer and I am trying to get the robot to work with the code created. The code itself has no errors. I can get the code onto the robot but nothing works at all. I cannot figure out what is going on. Also, I only have until Friday to get the entire robot working because I am leaving for an extended period of time Friday night. It is crucial that I can get this working and I am very lost at the moment. any advice, help, tips or anything of any sort would be appreciated. Thank you -worried programmer

Try making sure everything is wired correctly. Then double and triple check that even if you get no errors from the program it still might not work. There could also be a problem with the cRIO as well.

Everything is wired correctly and as far as I can see the program should flow correctly. It isn’t responding when any of the Joysticks are moved.

What exactly are you trying to do?

When we put the code onto the robot and try to run it, nothing happens, the bridge and the wifi are not responding. The Joysticks are not responding. everything is dead in the water

now there are no wires connected to the begin.vi and there are no nodes to connect them too… this problem is separate from the other one. This just happened

Has the code ever worked?
Have you ever had anything on the robot work?

Joysticks Dead? Try the Joystick example project to confirm there is no problem there.

Then move on to the Tank drive example project to confirm that works.
If that does not work, then we here on Chief Delphi will be better able to trouble that code than we will be able to trouble shoot your code which we have no clue as to what you are doing in your code.

Get the Tank Drive example working first then try your code again.

I’m guessing you deleted the camera initialization code. That part of Begin.vi is what creates the image size input and error output that are used by Robot Main.

If nothing is working the way you want it to right now, then I think your best course of action is to start a new robot project and see if it functions as expected. You’ll need to make sure you have your motor PWM connections where the code expects them to be. As Omar suggests, we can help troubleshoot your robot better if you begin with software we know to be okay.

You can also post your project as a zip file here. I personally won’t be able to check it until tomorrow night, but I’m sure someone else can.

When zipping the project up, make sure all files are included. You can do this by clicking and dragging files from the Files tab in the Project Explorer to one common folder. I also believe there is a packaging took built into LabVIEW, but it takes a little bit of setting up.

Things I’m guessing are wrong with your code would be while loops in your teleop code, misspelled refnames, missing open statements, or timers in the teleop code.

Also, don’t forget that you have to run the driver station and enable the robot in order for the code to control anything.

Greg McKaskle