Go to Post there is no such thing as too many offseason competitions. - Berserker [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 18-02-2013, 00:15
OWilliamson's Avatar
OWilliamson OWilliamson is offline
Registered User
FRC #2594 (NASKCO)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Idaho
Posts: 115
OWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of light
Can't View Original & Processed Image

On our dashboard the original camera image is showing perfectly, but when I add another indicator for our processed image it only shows the processed image and not the original. I put the two images on separate tabs but I'm still getting this issue.

Any ideas on how to make them both show up?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2013, 17:29
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Can't View Original & Processed Image

Can you post your code? There are a few things with the way that IMAQ handles images that could cause an issue.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2013, 00:41
mesamb1's Avatar
mesamb1 mesamb1 is offline
Registered User
AKA: Sam Bacon
FRC #1466 (Webb Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Knoxville
Posts: 93
mesamb1 is just really nicemesamb1 is just really nicemesamb1 is just really nicemesamb1 is just really nice
Re: Can't View Original & Processed Image

two things right off the bat to check. Did you make sure there is two declared imaqs? one to display unprocessed ,and the second to display processed? Secondly, is your process display set to display binary image(assuming you are using a variation of the processing code FIRST sent out). Both are easy to forget, and with out both it is easy to accidentally process your imaq image meant as the original followed by neither showing because they are both binary images, which isnt labview's default output
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2013, 01:28
OWilliamson's Avatar
OWilliamson OWilliamson is offline
Registered User
FRC #2594 (NASKCO)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Idaho
Posts: 115
OWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of light
Re: Can't View Original & Processed Image

This is the first part of the project. I only have 1 IMAQ and it is for the host image. I kept the original image indicator but copied in the indicator for the processed image from the example project and put that in later in the code. Do I need to have 2 IMAQs to view them both?
Attached Thumbnails
Click image for larger version

Name:	2013 Dashboard Code Help.JPG
Views:	22
Size:	64.3 KB
ID:	14141  
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2013, 03:55
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: Can't View Original & Processed Image

Yes. The IMAQ image is unlike other LV datatypes. Due to the large amount of data in an image, it acts as a refnum. Your diagram defines the allocation and destruction of images, and branching the wire doesn't create a new one for you.

To correct your diagram, create another image on the outside left of the loop and wire that into the destination of the threshold. That will preserve the original image so that it can be displayed.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2013, 09:35
OWilliamson's Avatar
OWilliamson OWilliamson is offline
Registered User
FRC #2594 (NASKCO)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Idaho
Posts: 115
OWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of light
Re: Can't View Original & Processed Image

So would I do it like this or do I need to have another Read MJPG with the original not connected at all? Also, do I leave the IMAQ as the RGB U32 like the original image?
Attached Thumbnails
Click image for larger version

Name:	2013 Dashboard Code Help 2.JPG
Views:	20
Size:	65.4 KB
ID:	14142  

Last edited by OWilliamson : 22-02-2013 at 12:38. Reason: Spelling
Reply With Quote
  #7   Spotlight this post!  
Unread 22-02-2013, 13:20
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: Can't View Original & Processed Image

Good questions.

If you right click on the Image Threshold VI and choose Help, it will take you to the reference manual on this VI. It clarifies ...

Image Dst is a reference to the destination image. If Image Dst is connected, it must be an unsigned 8-bit image.

So, you don't need to get another image. Your diagram is very close, but make the dst be the correct type of image. If you run it the way you have it, you will receive runtime errors at that node.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 22-02-2013, 17:11
OWilliamson's Avatar
OWilliamson OWilliamson is offline
Registered User
FRC #2594 (NASKCO)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Idaho
Posts: 115
OWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of light
Re: Can't View Original & Processed Image

I updated the dst to be U8, is that all I have to do? I can't test right now because I don't have access to the camera.
Attached Thumbnails
Click image for larger version

Name:	2013 Dashboard Code Help 3.JPG
Views:	11
Size:	69.6 KB
ID:	14144  
Reply With Quote
  #9   Spotlight this post!  
Unread 22-02-2013, 17:21
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Can't View Original & Processed Image

You also need to make sure that both images have a unique name.
Reply With Quote
  #10   Spotlight this post!  
Unread 22-02-2013, 22:09
OWilliamson's Avatar
OWilliamson OWilliamson is offline
Registered User
FRC #2594 (NASKCO)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Idaho
Posts: 115
OWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of light
Re: Can't View Original & Processed Image

I changed the name, is there anything else I need to change?
Attached Thumbnails
Click image for larger version

Name:	2013 Dashboard Code Help 4.JPG
Views:	17
Size:	68.3 KB
ID:	14146  
Reply With Quote
  #11   Spotlight this post!  
Unread 23-02-2013, 09:28
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: Can't View Original & Processed Image

Good catch. I missed the name conflict. That should be it.

Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread 23-02-2013, 11:17
OWilliamson's Avatar
OWilliamson OWilliamson is offline
Registered User
FRC #2594 (NASKCO)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Idaho
Posts: 115
OWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of lightOWilliamson is a glorious beacon of light
Re: Can't View Original & Processed Image

Thanks for all the help, good luck to you guys going to competition!
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 22: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