|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
GetImage only works when dashboard running?
(This is a cross-post from the official usfirst forum, due to low traffic there. I came here soon after I realized that the First forums have low traffic, but unfortunately only after.)
As the title says, I'm having trouble with the vision part of WPILibrary. When I try to get an image from the camera, it times out unless the dashboard is running, receiving camera data. Has anyone else had this problem? I'm using the GetImage function in the advanced robot framework with nothing but an indicator wired up via a branch inside the loop, and the fact that it works fine when the dashboard is active indicates that it isn't my setup, but something with the robot's interaction with the dashboard that is the culprit. During competition we can't have the dashboard open, so this is a real problem. Thanks for any input. Last edited by EnigmaSolution : 01-02-2009 at 13:04. |
|
#2
|
|||
|
|||
|
Re: GetImage only works when dashboard running?
Are you calling Start? The LV frameworks have a way to enable the imaging -- Basic has a local, Advanced has a global I think. Since the dashboard connection also causes the imaging loop to start, it will have the side-effect you are seeing I think.
Anyway, probe or look at the value of the control and I think you will be in business. Note that depending on when you started, you may want to look at a newer version of the template. The original vision stuff, especially the Basic one was a bit too simple. There is now a subVI used to help call start and stop the right number of times to avoid internal reference counts from going out of control. Greg McKaskle |
|
#3
|
|||
|
|||
|
Re: GetImage only works when dashboard running?
That was it! I wasn't running Start before trying to get my images. It makes sense now! Thanks for the help!
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Only Camera works in Dashboard | keehun | Programming | 1 | 06-01-2009 07:22 |
| NI Dashboard only partially working? | Tim Skloss | Programming | 4 | 05-01-2009 10:37 |
| How to make the camera search the light instead of only follow when targeted? | jesusescobar | Programming | 4 | 18-02-2007 16:56 |
| Open Simulation with Dashboard Provider running | Ray Gitchell | LabView and Data Acquisition | 8 | 02-02-2007 12:21 |
| Camera won't initialize when reset from RC - reset from OI and Power-up works, | krunal | Programming | 7 | 15-01-2007 00:13 |