Go to Post maybe I'm just easily amused. - JVN [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2009, 13:01
EnigmaSolution EnigmaSolution is offline
Registered User
FRC #2036
 
Join Date: Feb 2009
Location: Fairview High School
Posts: 2
EnigmaSolution is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2009, 13:10
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2009, 14:03
EnigmaSolution EnigmaSolution is offline
Registered User
FRC #2036
 
Join Date: Feb 2009
Location: Fairview High School
Posts: 2
EnigmaSolution is an unknown quantity at this point
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!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 20:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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