![]() |
cRIO Drops connection after deploy
Hello -
We're running a new 4 slot cRIO on a Lenovo ThinkPad, imaged with the 2013 LabVIEW firmware. The lenovo's IP address is configured to 10.0.23.5 for ethernet, and 10.0.23.9 for wireless, with a subnet of 255.0.0.0. (The cRIO is configured at IP 10.0.23.2) When deploying code (either directly over ethernet, wireless, or bridged ethernet), the initial deployment goes smoothly, albeit extremely long. If I am to stop RobotMain to change a few things and redeploy, the deployment succeeds however the cRIO will promptly drop communication with the Drivers Station, causing us to have to redeploy from the start. Note, the Dashboard is closed during the entire process. Any help? Dom |
Re: cRIO Drops connection after deploy
Are you running the Driver Station on the same computer you're programming on?
What do you mean by "deploy"? Are you actually choosing the Deploy menu command, or are you just running Robot Main? Describe the symptoms. What exactly do you see happening when what you call "the cRIO will promptly drop communication" occurs? |
Re: cRIO Drops connection after deploy
I'm developing the project that is currently being used on the cRIO with the same computer that is connecting to said cRIO.
The cRIO has had code deployed and set as startup, however in the context of this issue, I am running RobotMain. I remember looking at the cRIO LED's today when it was dropping comms, but I completely forgot what they were flashing. I believe the User1 LED was doing something funky. I can verify tomorrow. When I run RobotMain initially (run button), the code will deploy properly and function as expected. However, when stopped to edit small details and then redeployed (run button), we encounter an issue. The code will deploy properly, and the grid on the front panel of RobotMain will disappear as if it were running properly. When I then switch to the Driver Station, the Robot Code light remains red, and the Communications light turns from green to red. RobotMain will then echo an error, "Communication with realtime target lost". EDIT: The cRIO has code built and deployed as startup on it, if that has any bearing in the matter. |
Re: cRIO Drops connection after deploy
I would suggest connecting up a serial cable or running netconsole to see what is going to the console. That sounds like your cRIO may be crashing either during deploy or shortly after.
Greg McKaskle |
Re: cRIO Drops connection after deploy
Quote:
Quote:
How are you stopping execution? Are you clicking the big "Finish" button, or are you using the "stop" icon in the Robot Main window's toolbar? The "run" arrow should tell you whether it's running or not. If it turns from white to black with "motion" lines, it's running. Quote:
Quote:
|
Re: cRIO Drops connection after deploy
Quote:
Alan - I've tried both using the large "FINISH" button on the front panel of RobotMain, as well as the stop icon next to the run icon in the LabVIEW toolbar above the VI. When I say "switch to the Driver Station", I am referring to the application. I switch from RobotMain to the 2013 Driver Station. I have not tried waiting before switching, but I will try tomorrow. |
Re: cRIO Drops connection after deploy
If you look at the console during boot, it is similar to what you'll see on a linux console or a DOS console. The stream of text will tell you that is is booting, some components and some version numbers, and at some point will stop changing.
Then if you have an error at the driver or OS level, it will print out details about the error -- very useful. If it crashes, it will often tell you the library name, maybe an address or reason for the crash -- also very useful. Sometimes it crashes and doesn't tell you anything, but you see the boot sequence and know for certain that it crashed. Greg McKaskle |
Re: cRIO Drops connection after deploy
I assume I have to reformat the cRIO to enable the NetConsole?
|
Re: cRIO Drops connection after deploy
If you didn't make that selection when you first imaged the cRIO, then yes you have to go back and click the box so the netconsole part of the image gets downloaded to the cRIO.
|
Re: cRIO Drops connection after deploy
Enabling NetConsole doesn't require reformatting the cRIO. You just have to run the Imaging Tool and apply the appropriate selection.
|
Re: cRIO Drops connection after deploy
Ah, gotcha. I'll have to do this Tuesday/Wednesday...we were just given the chassis to populate with various electronic components and wires.
Dom |
Re: cRIO Drops connection after deploy
Code:
-> * Loading nisysrpc.out: nisysrpc |
Re: cRIO Drops connection after deploy
Sorry I didn't get to this earlier. Work stuff.
The crash log is very helpful. I'm pretty sure that the "Too much error data!" messages occur when the robot buffer for errors won't fit into a status packet. The status packet will contain some of the messages, some will be left out, and some text about messages being left out will be appended to the message display and log file. I'm not sure that this has anything to do with the error, but since that code is exercised pretty rarely, it could give a hint. Can you give more context on what is going on when this occurs? THThreadDestroy() is a wrapper for the posix threads or whatever thread package that LV is using on the OS. As far as I know, LV doesn't often destroy threads during execution. This seems like LV is either exiting or is reconfiguring itself for a different execution and a data structure in the thread or owning the thread has been corrupted. Do you think this would be pretty repeatable? Could you send your code to us and tell us how to run it in order to cause the crash? In the meantime, it may disappear as you change your code. Please keep you spidey sense alert for what you think it was related to. In particular, these sorts of corruptions are generally due to a DLL or .out that hands LV a bad structure or writes past one of LV's structures. The LV generated code is obviously capable of the corruption too, but those are less common. Feel free to contact NI support or my PM if you need more info on how to get this to us. Greg McKaskle |
Re: cRIO Drops connection after deploy
The snow is keeping us out of our shop, but hopefully come Monday we'll be back to work. I'll be able to give more information then.
|
Re: cRIO Drops connection after deploy
We are having the identical problem that the OP described. Here's how I describe the sequence.
Setup: Using the same laptop running Labview for code development and for running the driver station. I believe we had the dashboard application closed. Both Labview and the driver station application are actively running on the computer. The laptop is directly wired into the D-Link to eliminate the possibility of wireless issues. 1. Power up robot and wait for the cRio to come online. 2. Open Robot Main.vi and click the white arrow to "run" the code. 3. Wait for the (slow) initial deployment to complete. No errors. Click the "Close" button on the deployment dialog box. 4. Click "Enable" on the driver station and operate the robot. All user controls work (joystick, etc). The robot behaves perfectly according to the latest code changes. 5. Click "Finish" on Robot Main.vi and click "Disable" on the driver station. 6. Make some minor code change in Labview, save it, and click the white arrow in Robot Main again. 7. Wait for the very fast re-deployment to occur, as it only updates the changed parts of the program in memory. This re-deployment appears to occur without error. Click the "Close" button on the deployment dialog box. 8. Immediately followed by a pop error saying communication with the target has been lost. This sequence, after one night of troubleshooting, appears to be very repeatable and consistent. We will try enabling the netconsole feature and seeing if we get similar errors as the OP. Has there been any further progress with troubleshooting this problem? |
| All times are GMT -5. The time now is 12:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi