Thread: HELP!!!!!!!!
View Single Post
  #4   Spotlight this post!  
Unread 11-01-2013, 21:25
ctccromer's Avatar
ctccromer ctccromer is offline
Animus
AKA: Tucker Campbell
FRC #3753 (Bulah Bots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Baton Rouge, Louisiana
Posts: 190
ctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to allctccromer is a name known to all
Re: HELP!!!!!!!!

Im new to LabVIEW this year too, so don't feel alone! Do you have previous experience in other languages?

As far as learning labview, there's several things you can do that'll really help. Lots of tutorials for one. After getting the basic idea behind it, I opened up a new cRIO Robot Project (this is what you'll start with when coding for the robot) and looked over the code it starts you off with. The FRC Updates for labview make it so that instead of starting with a blank new program, we start with a template and edit/build up from THAT, not from scratch. Use the ? box at the top right and try and understand what does what

Also, here's how the computer/cRIO interaction works (as best as i understand it):
-write the robot's code in LabVIEW on your computer
-image the cRIO (wipe it clean) once, or when a new update comes out
-once you're ready to test the code, power the cRIO and connect it to your computer, then open up the PROJECT file (not a .vi) for your code, open the Robot Main.vi from the project window, and Click "Run" (->) at the top left to deploy the code from your laptop to the robot. Doing this will always wipe the old code from it so you dont have to worry about that
-Once that's done, keep it plugged into your laptop, open up the driver station, click enable, and it should control for you

Another thing that's really helping me is to understand each .vi file in the project's purpose. For example, Begin.vi initializes everything. In order to call anything from a joystick in Teleop.vi (the file that runs code for the main game -- when you control the robot), you first have to OPEN it in the Begin.vi and give it a RefNumRegistry (via the RefNumRegistry Set vi). Then in other vi files, such as Teleop and Autonomous, you use RefNumRegistry Get vi to call the already opened joystick and use it in that file.
And just like you have to open things in the Begin.vi file, you have to close them in the Finish.vi file

Hope this helped at least a little. Good luck!
__________________
Team 3753 BulahBots