Ok im a beginner programmer.
Last year i programmed using easy c, and yes it was easy.
I have a very little experience with labview and i want to know how to use it. I know how to program them little codes but what i need helpl with is like how do i program the joysticks. I am absolutely clueless. Can someone also give me example codes of last year so i can look over and review them.
Do you want to know how to program the joysticks to drive motors with C or with labview?
I want to know how to program it with labview cause thats pretty much what were going to have to work with in the 09’ competition.
I know how to use easy c but unfortunatley it was too easy
Not to sound disrespectful, but why do so many people keep saying this? It’s been explicitly stated that C/C++ will be a programming option, and we’ve not yet heard to the contrary. (Addendum: “were sic]” may have referred to your team, and not FRC teams in general)
That said, I’d like play with both, and see which seems most suitable.
As for learning LabVIEW, this has been discussed frequently, and the common suggestions are as follows:
-> go through the tutorial CDs included in the '08 kit
-> practice by programming an NXT bot in LabVIEW
-> follow the many online tutorials pertaining to LabVIEW, both on NI’s main site and its FIRST Community site
I’m sure someone will put out some kind of main code or robot programming guide for labview once the season gets closer to starting. If you are looking for FIRST specific labview programming help.
To answer two of your questions:
There will be C/C++ programming available, although maybe not easyC. But we’re trying as hard as we can to make it simple to do simple things in C. So using joysticks, and basic robot driving will be as short as we can make it while still being extensible for adding all your customizations.
And there will be documenation for all the LabVIEW VIs that will be availalble. It’s going to beta soon, and I’d expect the documenation, at least, will start becoming generally available soon after that.
Brad Miller
WPI Robotics Resource Center
I for one vote for having as much documentation as possible available as soon as possible. Even if it is beta documentation.
I started as a mentor last month. My team has been using IFI and Kevin’s code. I have been considering porting our implementation of the 2008 robot to WPILIB in hopes that the 2009 WPI package under Windriver will resemble the existing package. Is that a reasonable assumption and is it worth my time to do the port?
Thanks
Randy Wood
This post has been taken the wrong way by alot of you. He asked for sample code in LV you know, not a discussion on why you don’t like people stating LV is the language their going to use. Just saying in defense of the poor soul who asked for help.
Sorry for hijacking your thread.
I am just starting with LV myself, but I’ll see if I can help.
I don’t think that anyone used LV with joysticks last year. It was mainly used for Dashboard type functions.
In 2009, we will have the new operator interface that will include the Joystick input. As of now, we don’t know exactly how that is going to work.
I searched on ni.com for usb & joystick and found the following examples:
How Can I Monitor a Joystick, Keyboard, or Mouse in LabVIEW?
http://digital.ni.com/public.nsf/allkb/CA411647F224787B86256DD000669EFE
Motion Control with USB Joystick
http://zone.ni.com/devzone/cda/epd/p/id/4726
I hope that it helps. You also might try searching in LV help for joystick and see if you can find anything.
Good luck,
Randy Wood
P.S.
These examples may or may not be correct for the version of LV that we are going to have in 2009.
I posted some sample code to address this question here.
I posted some sample code to answer this question here