Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   No Robot Code (http://www.chiefdelphi.com/forums/showthread.php?t=82777)

SidneySalvo 15-02-2010 21:00

No Robot Code
 
So the problem is that no matter what i try, whenever i go into the driver station to try and run the code i sent to the cRIO, it shows up as "No Robot Code"

1:yes i have installed all of the current updates for both driver station (1.1) Labview (2.1), and i have the most current cRIO image that i know of (v20)

2: I followed all the steps to make the project as outlined in the FRC programming guide, in the manuals section of the Labview program files.

3: i first build the program and then click run as startup under the build specification.

4: I am using the Classmate and to enter the driverstation i hit (windows key+L) to quickly switch users. I do this because whenever i attempt to pull up the DS on the developer account it always says there is no communication to the robot.

Even with all of that i'm still getting the "No Robot Code". In the diagnostics tab i have the error message "No change to Network Configuration: "Local Area Connection""

Can Someone please help me!! we are running out of time!

Alan Anderson 15-02-2010 23:52

Re: No Robot Code
 
The Diagnostics tab has a bunch of communication tests with red or green lights next to them. Is the "Robot" light green?

SidneySalvo 15-02-2010 23:55

Re: No Robot Code
 
Yes it is

Mark McLeod 15-02-2010 23:55

Re: No Robot Code
 
Have you set your team number in the Setup tab?

Exit the Driver account and start the Driver Station application in the Developer account anyway.
When it's running go look at the IP address under Network Connections through the Windows Start menu. See if your IP has been set to 10.16.91.5

SidneySalvo 16-02-2010 00:00

Re: No Robot Code
 
Our number is actually 1691. I will check the IP tomorrow when i get the chance, however when i run the DS on the developer account, it not only says "No Robot Code" but also "No Communication" ><

Mark McLeod 16-02-2010 00:09

Re: No Robot Code
 
How is the Classmate connected, communications-wise, to the cRIO-wireless, direct Ethernet cable?

Try turning off the wireless and direct connecting for now if you aren't already.

The communication problem could be contributing to your Robot Code issue.
There really shouldn't be any difference between accounts, so that bears investigating.

SidneySalvo 16-02-2010 00:11

Re: No Robot Code
 
ok i will see if that works. i think i have tried it once before but after the updates something may have changed...anyother suggestions?

Mark McLeod 16-02-2010 00:14

Re: No Robot Code
 
Have you made any changes to the Classmate setup?
Installed any non-FIRST code?

Swapped out cables?
Tried it on a different PC?

SidneySalvo 16-02-2010 00:24

Re: No Robot Code
 
Quote:

Originally Posted by Mark McLeod (Post 921058)
Have you made any changes to the Classmate setup?
Installed any non-FIRST code?

Swapped out cables?
Tried it on a different PC?

No changes that i know up, we had to reformat it using the flash drive just before i got started. (we now keep a password on it...stupid freshmen)

as too non-FIRST code, i do not beilieve so but i was following the instructions to create the FRC project, and that is what i've been trying to download to the cRIO. i didn't read that there were any changes that had to be made so i haven't made any.

we are using all of the ethernet cables we have currentally.

one other thing that could be the problem...could the cRIO not be running the code because we don't have the correct moduals inserted in it in the right places

Alan Anderson 16-02-2010 01:05

Re: No Robot Code
 
Quote:

Originally Posted by SidneySalvo (Post 921066)
No changes that i know up, we had to reformat it using the flash drive just before i got started.

You must apply the LabVIEW and Driver Station updates before communication will work properly. See http://www.usfirst.org/frccontrolsystem for links.

Mark McLeod 16-02-2010 08:56

Re: No Robot Code
 
Quote:

Originally Posted by SidneySalvo (Post 921066)
One other thing that could be the problem...could the cRIO not be running the code because we don't have the correct modules inserted in it in the right places

Your code would still run, it just wouldn't work right if the modules weren't where they are supposed to be.

SidneySalvo 16-02-2010 13:55

Re: No Robot Code
 
I have applied those two updates and also re imaged the cRIO afterwards. i don't have a clue what else to try!

After forming the project are there any changes that need to be applied to make it work?

can someone send a decent quality pic of their cRIO?

SidneySalvo 16-02-2010 18:35

Re: No Robot Code
 
Very Sorry to double post, but i wanted to get this back to the top so it won't just dissappear because our problem still isn't fixed but i have learned more.

So two things have changed:

1:I can now run the DS on the developer account and the "Communications" light is now green when i do that.

2: I tried to simply run the Robot Main.vi on the cRIO and that gave me the green light on the "Robot Code" light and allows me to run the motors using the joysticks. However, when i click run as startup it still tells me that "No Robot Code"

SchrödingersCat 18-02-2010 08:10

Re: No Robot Code
 
Our team is having the same problem. We installed LabVIEW update 2.1 and Driver-station update 1.1 on the Classmate, updated the cRIO image to v20. We can only connect with the driver station while LabVIEW is not loaded (we cannot run the code in a real time connection). It still displays "No Robot Code". :(

Any ideas would be lovely. :D

Mark McLeod 18-02-2010 10:28

Re: No Robot Code
 
Quote:

Originally Posted by SidneySalvo (Post 921506)
However, when i click run as startup it still tells me that "No Robot Code"

The part that stumps me is there are no error messages, either on the build or on the "Run as startup"

At the conclusion of "Run as startup" it asks you to reboot the cRIO, correct? The permanent code won't take effect until the cRIO is rebooted, while the temporary "Run" is the opposite and takes effect immediately, but goes away when the robot is rebooted.

Mark McLeod 18-02-2010 10:29

Re: No Robot Code
 
What messages or response do you get when you push the "Run" button on Robot Main.vi?


Quote:

Originally Posted by SchrödingersCat (Post 922763)
Our team is having the same problem. We installed LabVIEW update 2.1 and Driver-station update 1.1 on the Classmate, updated the cRIO image to v20. We can only connect with the driver station while LabVIEW is not loaded (we cannot run the code in a real time connection). It still displays "No Robot Code". :(

Any ideas would be lovely. :D


SchrödingersCat 18-02-2010 10:47

Re: No Robot Code
 
Quote:

Originally Posted by Mark McLeod (Post 922871)
What messages or response do you get when you push the "Run" button on Robot Main.vi?

It seems to deploy correctly. I have a indicator on the Iteration Count within the while loop in Robot Main.vi, and it increments about once per second (as the driver station is not connected).

When I attempt to start the Driver Station, the connection between the cRIO and LabVIEW times out and stops entirely. Then the Driver Station connects, and still says, "No Robot Code".

Alan Anderson 18-02-2010 10:56

Re: No Robot Code
 
Quote:

Originally Posted by SchrödingersCat (Post 922892)
It seems to deploy correctly. I have a indicator on the Iteration Count within the while loop in Robot Main.vi, and it increments about once per second (as the driver station is not connected).

When I attempt to start the Driver Station, the connection between the cRIO and LabVIEW times out and stops entirely. Then the Driver Station connects, and still says, "No Robot Code".

Have the Driver Station application running before you try to run the robot code.

SchrödingersCat 18-02-2010 10:58

Re: No Robot Code
 
Quote:

Originally Posted by Alan Anderson (Post 922904)
Have the Driver Station application running before you try to run the robot code.

I can try this, but I believe LabVIEW wouldn't connect at all with the Driver Station already running (and connected).

Mark McLeod 18-02-2010 11:11

Re: No Robot Code
 
You have Exited the Driver Station in the Driver users account and are running it only in the Developer account aren't you?

Not switching back to the Driver account to run the Driver Station.

SchrödingersCat 18-02-2010 11:31

Re: No Robot Code
 
Quote:

Originally Posted by Mark McLeod (Post 922916)
You have Exited the Driver Station in the Driver users account and are running it only in the Developer account aren't you?

Not switching back to the Driver account to run the Driver Station.

Yes, I hold SHIFT while windows comes up so I login only the Developer account, and run the Driver Station while in Developer.

Mark McLeod 18-02-2010 12:43

Re: No Robot Code
 
Sounds weirdly like only one app can use the network connection at a time.
You can also try turning off the Classmate wireless while you are trying this, so we know it isn't port confusion.

Have you changed the Classmate much, if at all, from it's original condition by installing third-party software?

SchrödingersCat 18-02-2010 14:22

Re: No Robot Code
 
Quote:

Originally Posted by Mark McLeod (Post 922978)
Sounds weirdly like only one app can use the network connection at a time.
You can also try turning off the Classmate wireless while you are trying this, so we know it isn't port confusion.

Have you changed the Classmate much, if at all, from it's original condition by installing third-party software?

No, in fact, I just used the Restoration Key and installed all the updates.

SchrödingersCat 18-02-2010 17:04

Re: No Robot Code
 
Got it working. I created a new blank cRIO FRC Project with all the updates installed, and magically everything works. :D

Mark McLeod 18-02-2010 17:06

Re: No Robot Code
 
Might have been a mix of old version code then.

Good news.

SchrödingersCat 18-02-2010 17:09

Re: No Robot Code
 
Quote:

Originally Posted by Mark McLeod (Post 923220)
Might have been a mix of old version code then.

Good news.

Actually, the old code from before I re-imaged the Classmate worked perfectly now that everything was properly installed.


All times are GMT -5. The time now is 14:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi