|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Help for a rookie team?
When you set up the classmate, did you image it with the flashdrive provided before doing anything else?
Also, what language are you using to program the robot? Last edited by CodeMonkeyMatt : 12-01-2011 at 21:36. |
|
#2
|
||||
|
||||
|
Re: Help for a rookie team?
Yes, the image was the first thing we did. And we're using LabView.
I assumed LabView was preinstalled in the Classmate, but it isn't. |
|
#3
|
|||
|
|||
|
Re: Help for a rookie team?
Huh, that's odd. Unfortunately, I do not have access to our Classmate right now so I can't check, but I'm pretty sure that Labview was included on ours. We use Windriver though, so I never had reason to confirm that. If it turns out that you do need to install from the CD, what we did was put the CD into a computer with a drive, and then transfer the files to a flashdrive and run the installation from there.
And ditto with what Karibou said. I am new to posting on CD, but I have read these forums for a couple years now. The people on here are very helpful. I'm also not sure I have enough knowledge to help, but I'll see what I can do until someone better comes along. |
|
#4
|
||||
|
||||
|
Re: Help for a rookie team?
First of all, just take a step back and relax. Setting up the control system for the first time will be the most frustrating experience of your life, but once you get it done you'll be golden for the season.
Make sure that you have installed all of the updates on this page (you need an NI username/pass, but you can register for free). As far as I know, LabVIEW is not on the Classmate this year. But the installation discs are in the Kit of Parts and you can use any laptop to load code onto the cRIO. From the information you've given us, I have no idea how far you are in the process to setting up your control system. Can you tell us specifically what you have done so far? What is the "robot code" light? Are you getting a No Code error or a No Communication error? In the meantime, take a look at the files the Uberbots have mirrored here under Logomotion Documents -> Control System. They may be able to help you out further. |
|
#5
|
||||
|
||||
|
Re: Help for a rookie team?
I agree with Karibou this is the place to post these types of questions. Delphi has been one of the greatest resources we have had in my four years of doing this!
As far as your coding question I have a call out to my programmers to see if one of them can login from home to help you AND we used LabView until this year so we feel your pain. ![]() |
|
#6
|
|||
|
|||
|
Re: Help for a rookie team?
Cjackson,
Welcome to the world of FIRST! Don't worry it's lots of fun. Hey, I use Labview so if you need help you can PM me and I will try to answer your question. Hope you guys do well this year. David Team #2829 |
|
#7
|
||||
|
||||
|
I'm relaxing now
Thanks guys, it's nice to know we aren't alone lol. Ok, so as for what has already been done:
This is where we ran out of time. One of our Mentors who knows programming well, was able to run some vi that checks a port or something on the cRIO. I don't really know what it did, but it like checks the status and syncs it with a slot or something. I'm still learning how this works and have not grasped it yet, as you can probably tell. Also what do you need installed to put code onto the cRIO? just LabView? Is there a way to put code on using the Classmate if LabView is not installed? |
|
#8
|
||||
|
||||
|
Re: Help for a rookie team?
This may seem like a dumb question, but I'm assumingthe rest of your control system is set up correctly?
And yes, if you are using Labview you must have Labview on the classmate (if that is the device you use to deploy your programs)... If you use your laptop, then the classmate does not need Labview I believe... |
|
#9
|
||||
|
||||
|
Re: Help for a rookie team?
I would check and make sure that the physical cRIO is set up properly. I think your mentor may have done this, but connect a serial cable to the cRIO and read the output. Any potential errors will pop up then. If you can't find anything post the output here so we could take a look.
|
|
#10
|
||||
|
||||
|
Re: Help for a rookie team?
What do you go to to read the output?
|
|
#11
|
|||
|
|||
|
Re: Help for a rookie team?
There is a DB9 on the cRIO. You can connect this to a serial port (direct connect or via a USB dongle) on your PC. Using a terminal program (like hyperterminal), you can view messages as your cRIO boots. I believe the comm setup is 9600 baud, 8 bits, no parity and 1 stop bit. Also, I'm pretty sure you only need three pins connected: 2, 3 and 5. I can't remember whether 2 or 3 is transmit (or receive).
To use the DB9, one of the rocker dip switches on the cRIO needs in the correct position. Can't remember which one. Can't remember what position. |
|
#12
|
||||
|
||||
|
Re: Help for a rookie team?
You said you installed two updates, IIRC there were three. A LabVIEW update, utilities update and driver station update.
Are you deploying the code or just running it? Are you remembering to build the code first? |
|
#13
|
|||
|
|||
|
Re: Help for a rookie team?
When deploying code you also have to make sure you use the "Run on Start" or something close to that. If this option is not chosen the code will download to the CRio but not run when the CRio is powered on.
|
|
#14
|
||||
|
||||
|
Re: Help for a rookie team?
I am not very familiar with the programming aspects of the robot, but I do know what you mean when you mention "Robot Code Light." There have been several instances last year when it would take a very long time to light up, sometimes around five minutes. Just as an extra consideration, I would make sure to wait a few moments before trying again.
I'm sorry that I could not offer more help, but I hope you get what you need. Good luck! |
|
#15
|
|||||
|
|||||
|
Re: Help for a rookie team?
The Robot Code light will only come on when code is running. A slightly annoying fact (for rookies at least) is that the current control system has no "default code", meaning that when you image the cRio there is just nothing. In LabVIEW, you would go to Builds, then right-click "FRC Boot-Up Deployment" and set "Run As Startup". Then, code will exist on the cRio. If you want to test your code, you can go to Robot Main.vi and press the "play" button, and it will download your code temporarily (you loose it when you power down), but it is faster and you can see the front panels, which is useful when debugging.
Also - I have honestly never used the DB9 serial connection. Most things (in LabVIEW at least) can be solved with the indicator lights on the cRio itself (and its surrounding boards such as the DSC), the Driver Station, and LabVIEW. You don't have to use the Classmate to download code. Any laptop which LabVIEW will run on (anything running Windows, no macs) will work. You would use it exactly the same, just set a static IP address on the same subnet (but not one of the reserved IP addresses). If you have any questions about LabVIEW, feel free to PM me. Oh yeah - the robot code light isn't the fastest light either. It shouldn't take more than a minute, though. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|