Go to Post "Field orientation is like a homing pidgeon that can fly backwards." - LostWolf [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 15-01-2009, 00:10
hellochar hellochar is offline
Registered User
FRC #3006
 
Join Date: Jan 2009
Location: Salt Lake City
Posts: 8
hellochar is an unknown quantity at this point
Invalid color template image?

Hey, this is my first year in FIRST and I've been assigned the job of learning and programming the camera/vision assistant in LabVIEW. I have made a VI that finds a template image in an image, such as the camera, but there seems to be a problem with it. If I pass an image that I retrieved using IMAQ ReadFile, the program works fine and will return matches. But once I use it with the axis camera, the VI gives me an error:

Error -1074395384 occurred at IMAQ Match Color Pattern

Possible reason(s):

IMAQ Vision: (Hex 0xBFF60708) Invalid color template image.

I've zipped an outline of the project. If anyone could give me some advice, it'd be greatly appreciated! This has been frustrating me and the other programmers in the team for the whole week!
Attached Files
File Type: zip Find Target Using Camera.zip (534.5 KB, 40 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2009, 08:22
Greg McKaskle Greg McKaskle is online now
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: Invalid color template image?

I didn't have time to look at your project, but it sounds like you've built vision stuff that at runtime will be fed a file. The LV compiler takes care of downloading the code, but doesn't know enough to take care of files. You should ftp the template file to your cRIO file system, then update the path in your code to point to the new location.

The two color vision examples were just uploaded to the NI and WPI sites yesterday, and you may want to look at those to see how well they work.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2009, 17:00
hellochar hellochar is offline
Registered User
FRC #3006
 
Join Date: Jan 2009
Location: Salt Lake City
Posts: 8
hellochar is an unknown quantity at this point
Re: Invalid color template image?

Ok, that makes sense. How do you send the cRIO the file through FTP? I'm ignorant as to the different protocols of the internet
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2009, 17:05
Greg McKaskle Greg McKaskle is online now
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: Invalid color template image?

This isn't the most robust, but if you open a File Explorer window such as My Documents, and type ftp://10.x.y.2 where x.y is your team number, that should get you a file window pointing to the cRIO. you can then create folders and drill in and out similar to Windows.

I mention this isn't robust because it works fine most times, but sometimes Windows "remembers" what things look like and doesn't really show you what is on the cRIO -- very annoying, and I don't know of a good way to synch it up.

For that reason, people may tell you to get a real ftp client. Google for a free ftp client and you will find lots. You then connect to the 10.x.y.2 number and use their UI to do what you want.

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
Invalid Address Farnak Programming 4 17-04-2008 19:09
Does the Trackball Color Match your team Color??? ZInventor Kit & Additional Hardware 14 07-03-2008 20:09
Invalid Address team 803 Programming 20 21-02-2006 09:10
Invalid Thread Specified Jay H 237 CD Forum Support 2 02-03-2004 21:01
Invalid Autodesk email address? NickZ 3D Animation and Competition 2 23-02-2004 01:35


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

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