Go to Post While the Banners initiate the outreach, eventually, the outreach becomes the Banner. - MysterE [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 23-01-2009, 22:45
ericbarch's Avatar
ericbarch ericbarch is offline
221 Robotic Systems Engineer
FRC #0027 (Team Rush)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Clarkston, MI
Posts: 15
ericbarch is a jewel in the roughericbarch is a jewel in the roughericbarch is a jewel in the roughericbarch is a jewel in the rough
Send a message via AIM to ericbarch
Syncing Multiple Camera Events

We've developed 2 reliable subVIs...one for getting the pink and one for the green but the issue we're having is that when both are running from the same image source each output from the subVIs intermittently goes to 0.

With only one subVI connected at a time the outputs are reliable and work great but as soon as we connect the same image source to both subVIs they both alternate between the correct values and 0.

I have a feeling it has something to do with the timing but I'm not exactly sure how to fix it...we've put both of the subVIs in a for loop to attempt to sync the outputs with no luck. Any ideas?
__________________
Eric Barch
221 Robotic Systems
Controls Engineer
http://team221.com
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2009, 13:29
ericbarch's Avatar
ericbarch ericbarch is offline
221 Robotic Systems Engineer
FRC #0027 (Team Rush)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Clarkston, MI
Posts: 15
ericbarch is a jewel in the roughericbarch is a jewel in the roughericbarch is a jewel in the roughericbarch is a jewel in the rough
Send a message via AIM to ericbarch
Re: Syncing Multiple Camera Events

We just figured this one out...we ended using a sequence structure that has the Get Image block in each frame. Before we were trying to access the same file pointer simultaneously by our 2 subVIs but now each one takes its turn processing the camera image.
__________________
Eric Barch
221 Robotic Systems
Controls Engineer
http://team221.com
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2009, 11:49
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,748
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: Syncing Multiple Camera Events

This likely had to do with side effects on the input image. It is completely valid to process the images in parallel, but many of the image processing VIs allow you to wire up a destination image. If you don't wire it, they modify the input and reuse it as the output. This works great in isolation, but not when someone else is trying to read the image at the same time. You may want to probe the input to the second processing to make sure it is really what you think it is and isn't a modified image.

You can also look at the examples for a comparison.

Greg McKaskle
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
[FTC]: Multiple Programs or One Program with Multiple Auto Modes kevin51292 FIRST Tech Challenge 4 02-01-2009 20:37
Multiple program events held at the same time KathieK General Forum 8 07-04-2008 12:33
Hosting multiple sites in multiple VMs EHaskins Website Design/Showcase 6 22-12-2007 01:09
Should FLL and Vex events also be added to CD Events? Koko Ed CD Forum Support 2 03-10-2006 09:44
Camera Turret syncing FyreStorm90 Programming 0 28-01-2006 09:07


All times are GMT -5. The time now is 08:17.

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