Basic help with labview in Begin VI

We are a new team in FRC and it is up to me to do the programming in labview. can someone help me get started. I want to get two joysticks. connect each one to one of the motors. just to get started. so i can connect it to my robot and maybe, just use the joysticks to move my robot. Please you really simple language to explain. Thanks in advanced.

Begin.vi

Teleop.vi

Above are the links to the code for what is called “Tank Drive” (two joysticks controlling the robot at once, one for each side of the drive train).

You will need to discuss with your electrical team which PWM number they have used for the motors controlling your drive train, and what kind of speed controllers they used. Those two settings must be changed in the Begin.vi where the motors are “opened.”

Notice in the teleop.vi that all I have done is add another joystick and change the robot drive VI to “Tank” instead of “Arcade.”

If you have other questions, please ask.

I will ask if i have questions. Thanks. you were really helpful

If you go to frcmastery.com you can find a bunch of tutorials that got me started pretty well

Thanks. that looks like a nice website.

Hmmm…anyone know where http://www.frcmastery.com went?

Thanks,

  • Rob
    Programming Mentor, that’s still trying to learn!

It looks like it’s up now. It might have been down for a brief period.

What are you running into that you’d like to have us take a look at?

Excuse me, but where do you get those terminals in the block diagram that are axis 2 (y)? I am searching everywhere and can’t seem to find them.

For clarification, I am also a very new LabVIEW coder and still trying to figure things like that out. I just don’t entirely know where to look or what the name of those things are.

FRC LabVIEW has changed a little bit over the years. Those “Axis 2 (y)” are no longer used in order to make it a bit more generic and accommodate different joysticks like xBox controllers that use different names for things.

The current style looks like these examples:
http://www.team358.org/files/programming/ControlSystem2015-2019/labview/index.php#TankDrive

There is also a wealth of information here:
http://forums.ni.com/t5/FIRST-Robotics-Competition/2015-FRC-LabVIEW-Quick-Start-Guide/ta-p/3528790

Please feel free to Personal Message or email me if you have any difficulties.

Appreciated you two. Apologies for reviving a rather dead thread, haha. I didn’t quite read the date on the last update to it.

And I will be sure to contact you should the need arise, Mr. Shafer. Thank you once again.

I know I usually use default code and edit it to my teams need. I used a lot of tutorials and example code. If you need any help feel free to direct message me because i also had teams help me via skype or email.