|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: C-Rio cant connect -error
Care to zip the code project you're having trouble with to see if others of us see the same behavior?
I might be due to unconstrained loops in the code, although I'd expect that to affect the regular downloads as well. Does it work if you connect the laptop as directly as possible to the cRIO, rather than using wireless? It might be transmission delay related. |
|
#2
|
||||
|
||||
|
Re: C-Rio cant connect -error
I attached the final code in the attachment. And no it does not work when i connect it directly. It does not work when i press "run". Sometimes it works wirelessly but only after doing build > deploy and run as start up. But that takes too long and i was adviced that only the final code should be done like that. But i had no choice last season but to do it like this, and waste a TON of time. So i want to get this problem fixed before next season
![]() Last edited by whcirobotics : 10-12-2010 at 20:45. |
|
#3
|
|||||
|
|||||
|
Re: C-Rio cant connect -error
I can repeat the problem and it does appear to be a code issue, not the network connection.
I'll see if I can track it down. Your CPU usage is more than 90% which is really high for doing mostly nothing. Last edited by Mark McLeod : 10-12-2010 at 21:54. |
|
#4
|
|||||
|
|||||
|
Re: C-Rio cant connect -error
Sorry I've taken so long. I got distracted by weekend guests.
When you removed the default framework gyro from your code, you missed a spot where the gyro was used in Disabled.vi. The processing of that error soaked up 25-30% of your available CPU time (on top of the normal load). Take the references to Gyro out of there and you should be fine. This message on the Driver Station shows the cause of your issue: Code:
ERROR <Code> -44007 occurred at Gyro.lvlib:RefNum Registry Get.vi>>Disabled.vi>>Robot Main.vi <time>20:49:59 12/12/2010\par FRC: The RefNum you are trying to Get does not exist in this RefNum Registry. The robot was so busy it didn't have time to process your code download. --- Here's a tool that tells you how much CPU time your program is chewing up on the cRIO ONLY when you're using the "Run" button. In your case where you couldn't use the Run button, you'd keep the downloaded program from running on the cRIO by using the No App DIP switch on the cRIO and resetting. Then when there is no code running on the cRIO your Run button would work. On any of the LabVIEW windows go to: Tools -> Real-Time Module -> System ManagerOn the System Manager pop-up:
In the photo below
You can use this tool to figure out what takes the most time in your code. The bottom line is to eliminate any and all errors whenever and wherever they occur... Last edited by Mark McLeod : 12-12-2010 at 19:59. |
|
#5
|
||||
|
||||
|
Re: C-Rio cant connect -error
Wow. I will definitely try this tomorrow when we meet and get back on the results. Thanks!
![]() |
|
#6
|
||||
|
||||
|
Re: C-Rio cant connect -error
Yes
it worked!! Thank you! ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: C-Rio cant connect to target...again | whcirobotics | FIRST Tech Challenge | 3 | 15-12-2010 21:52 |
| Failed to connect to target Error | Rangel | C/C++ | 4 | 28-07-2010 17:04 |
| Cant Get C-Rio to talk to Sidecar | Megy698 | Electrical | 2 | 20-02-2010 15:16 |
| Error: "The NI-RIO software on the remote..." | ellisk | Programming | 1 | 05-02-2010 22:42 |
| cant get NXT to connect to controller station via bluetooth | cougarbotics | FIRST Tech Challenge | 5 | 04-12-2008 00:19 |