Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Rotate reference bug?

Solved!
Go to solution

Vision Version 8.5 in LabVIEW 8.2

 

When calling most of the vision functions, the function returns the image, even if an error occured beforehand, but the IMAQ rotate function does not when there is an error.  Is this some oversight or is this designed in?  It's difficult to close the image reference when things go wrong this way, without breaking dataflow.

 

Workaround: wire the image to both img src and dst, that seems to resolve it when there's an error. 

 

Edit: version number fix.

Edit 2: ammended the subject to actually say something useful

Edit 3: workaround added

Message Edited by Britoa on 10-23-2008 02:07 PM
Message Edited by Britoa on 10-23-2008 02:08 PM
Message Edited by Britoa on 10-23-2008 02:15 PM
Message 1 of 3
(3,440 Views)

Workaround: wire the image to both img src and dst, that seems to resolve it when there's an error.

That might be a hindrance considering error handling. Thanks for sharing it.

0 Kudos
Message 2 of 3
(3,421 Views)
Solution
Accepted by Britoa

Hello Britoa,

 

This is expected behavior. The output image is actually the "destination image". If a destination image is not wired, it will just use the source image. But if there is an error then it does not use any image and hence no image is sent as the output. You can see this more clearly if you wire in a different image to the dest image input. If there is an error in, then the destination image gets output but if there is no error in, then it processes the source image as output.

 

I hope this helps.

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 3 of 3
(3,395 Views)