Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

ZoomInteger property doesn't work as documented

According to the documentation of the ZoomInteger property of the image display control, zoom factors of less than 1 will be returned as negative values; i.e., a zoom factor of 1/4 will result in the ZoomInteger property reading a value of -4.  However, this doesn't appear to be the case.  The property works as expected for zoom factors >= 1.  Also, the ZoomSingle property works as documented for all zoom factors.  The problem is, all of the code I've got that examines the zoom factor relies on the ZoomInteger property (it worked properly in previous versions).  I've only noticed this issue since upgrading to 8.2.
 
I've attached a simple vi demonstrating this problem.  Are others experiencing the same problem?  If so, any word of a patch?  I don't want to have to modify all of my existing (previously working) code to use ZoomSingle instead of ZoomInteger.
0 Kudos
Message 1 of 4
(3,572 Views)
?
0 Kudos
Message 2 of 4
(3,556 Views)

Hello ceger,


Thank you for putting together that example to demonstrate the issue.  I ran the program on my machine and I agree with you that this appears to be a bug in the IMAQ driver.  I have documented this for R&D with ID # 45MI9PPQ.  They will address this for revision in future versions of the IMAQ driver.  In the meantime, I put together a little subvi that you can use in your code.  It takes the output from the ZoomSingle property as its input and it outputs the equivalent ZoomInteger cluster.

Regards,
Luke H

0 Kudos
Message 3 of 4
(3,550 Views)
Thanks for your help.
0 Kudos
Message 4 of 4
(3,533 Views)