View Full Version : Crio crashing when filtering.
Shrubadub
27-01-2012, 17:10
When ever i try to filter using the example code provided by Labview my crio immediately crashes. attached is a screen shot of the code.
The only mistake I found in your code is in the lower left corner - the Greyscale constant isn't connected to anything.
I don't know if this could be causing the crash though. How do you know that it crashes? Have you changed any other parts of the project? (ie robot main?)
Also I'm not sure if you've noticed, but this is last year's example code. It should still work, but I don't want you to waste your time on something that you're not going to use ;)
Oh, and by the way, please don't attach pictures by putting them in .docx files in the future. You can upload the picture itself, or even the actual .vi :)
Shrubadub
27-01-2012, 18:41
No i have changed nothing else. how i know it crashes is keeps saying waiting for real time crio to respond then it disconnects me.
DominickC
27-01-2012, 18:44
This means one of two things -
1. You are not connected to the cRIO's network.
2. Another computer is connected to the cRIO/You were connected then you disconnected improperly and tried to reconnect.
Shrubadub
27-01-2012, 19:03
i checked all of that and none that is the case.
http://i.imgur.com/4bYoA.jpg
Greg McKaskle
27-01-2012, 20:41
I can't tell what the issue is from the source code, but when opened, I was a bit surprised to see that the vision code is from 2011. If the cRIO reboots when running the filter, then it would appear to be a crash. vxWorks is an unprotected OS, at least as of the version used for FRC, and it will crash when a serious issue arrises. One thing you may look at it whether you are running out of RAM. The Charts tab will shot the current memory usage and largest free block. If you are crashing the cRIO, that would be my first guess as to why.
Greg McKaksle
Shrubadub
28-01-2012, 10:24
I updated to 2012 and that is the example code labview is giving me. Did i do something wrong.
Greg McKaskle
28-01-2012, 21:29
What example did you open? The example that matches the white paper is called Rectangular Target Processing. The tutorial, reachable from the launch screen also walks through integrating it with the framework.
Greg McKaskle
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.