Go to Post Even our greatest idols make mistakes. The good ones, move on and continue to do great things. - Al Skierkiewicz [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 13-01-2012, 16:08
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Vision Assistant Problem

Ok. So I have an algorithm built in NI Vision Assistant, but when I attempt to export it into a VI, the VI doesn't work. The image out box continues to stay greyed out. Here is the VI and image that I am using...
Attached Files
File Type: zip Vision Files.zip (104.7 KB, 19 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2012, 22:54
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Vision Assistant Problem

The first problem is that the initial vision container is set to greyscale(U8). The IMAQ ColorThreshold.vi can't use this type of image. It requires a matching colour container. The IMAQ Create.vi must specify the same image type as the IMAQ ColorThreshold.vi.

After running it, the output is still not correct, but is a start. The attached image is of fairly low quality. Can you possibly get another, matching the quality of the included camera?

If you have more questions just ask. The Error clusters BTW can be very helpful. The particular vision VI that you posted also can run on a windows machine, for testing, you can skip the cRIO.
__________________
Mike B
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2012, 23:49
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: Vision Assistant Problem

That VI was setup to run on the computer...
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2012, 03:00
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Vision Assistant Problem

Using your original attachment as inspiration, I have quickly thrown together an algorithm that will find 3 of the 4 targets in that attached picture. I will keep looking into a better algorithm, but for now this will be a good starting point.

ImageProcessing.vi
Click image for larger version

Name:	Vision Snippet 01.png
Views:	22
Size:	102.9 KB
ID:	11362
__________________
Mike B
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 08:13.

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