Go to Post A robot with hands would be cool! - Koko Ed [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 05-02-2017, 01:03
SWarrenFRC SWarrenFRC is offline
Registered User
FRC #1212
Team Role: Mentor
 
Join Date: Nov 2016
Rookie Year: 2005
Location: Phoenix
Posts: 3
SWarrenFRC is an unknown quantity at this point
Another USB Camera Swap thread

I have searched through the other threads and not found information to solve our switch delay.
Our team is trying to implement two USB cameras (Microsoft HD3000). We only want to stream one image at a time to the dashboard. The modifications we have made are to VisionProcessing (duplicate camera setup for USB 1 camera, True/False.vi to switch between USB 0 and USB1 to select camera name), GetImageSafe, and Dashboard (True/False switch to select USB 0 or USB 1).
The problem is that it takes ~13 seconds to switch from USB 0 to USB 1 or vice versa. The Camera Swap button on the Dashboard is used to switch between the two USB cameras. I monitored some of the points in the SendImagestoPC and found that most of the time there is error 56. Just as the swapped image appears the error clears and then returns to error 56.

The errors are:
ERROR -1074360319 IMAQdx Start Acquisition.viNI-IMAQdx: (Hex 0xBFF69001) Internal error

ERROR -1074360310 IMAQdx Open Camera.viNI-IMAQdx: (Hex 0xBFF6900A) Camera is already in use.

ERROR -1074360316 IMAQdx Stop Acquisition.viNI-IMAQdx: (Hex 0xBFF69004) Invalid camera session

ERROR -1074360317 IMAQdx Get Image2.viNI-IMAQdx: (Hex 0xBFF69003) Invalid pointer

The delay and errors seem to be from the GetImageSafe vi.

Unfortunately the forum will not allow me to post attachments.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2017, 08:24
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 149
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Another USB Camera Swap thread

Quote:
Originally Posted by SWarrenFRC View Post
Unfortunately the forum will not allow me to post attachments.
Try attaching screenshots. I'd love to see this code that half-works.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2017, 13:05
SWarrenFRC SWarrenFRC is offline
Registered User
FRC #1212
Team Role: Mentor
 
Join Date: Nov 2016
Rookie Year: 2005
Location: Phoenix
Posts: 3
SWarrenFRC is an unknown quantity at this point
Re: Another USB Camera Swap thread

I can't attach or insert screen captures unfortunately. I am only given the option of using an URL for an image. I don't have a web address to store images or files, just my harddrive.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2017, 13:07
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,573
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Another USB Camera Swap thread

Quote:
Originally Posted by SWarrenFRC View Post
I can't attach or insert screen captures unfortunately. I am only given the option of using an URL for an image. I don't have a web address to store images or files, just my harddrive.
use http://imgur.com/ that's the easiest way to embed images.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2017, 13:12
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 149
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Another USB Camera Swap thread

Quote:
Originally Posted by SWarrenFRC View Post
I can't attach or insert screen captures unfortunately. I am only given the option of using an URL for an image. I don't have a web address to store images or files, just my harddrive.
If you scroll down, you'll see an option to Manage Attachments.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2017, 13:15
SWarrenFRC SWarrenFRC is offline
Registered User
FRC #1212
Team Role: Mentor
 
Join Date: Nov 2016
Rookie Year: 2005
Location: Phoenix
Posts: 3
SWarrenFRC is an unknown quantity at this point
Re: Another USB Camera Swap thread

It looks like I can now attach images/files. Thanks in advance for any assistance.
Attached Thumbnails
Click image for larger version

Name:	visionprocessing1.PNG
Views:	24
Size:	20.2 KB
ID:	21711  Click image for larger version

Name:	visionprocessing2.PNG
Views:	23
Size:	42.2 KB
ID:	21712  Click image for larger version

Name:	dashboard_update.PNG
Views:	26
Size:	32.8 KB
ID:	21713  Click image for larger version

Name:	SendImagestoPC.PNG
Views:	25
Size:	119.8 KB
ID:	21714  
Attached Files
File Type: txt driverstation_errorcodes_descr.txt (8.3 KB, 7 views)
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


All times are GMT -5. The time now is 19:51.

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