ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Win2000 much slower than Win98

Hello
I have two ATE-Systems.
Both have the same devices. Except the Industiral-PC and operationg System.
One has Win98 the other has Win2000

In my test app, wich runs under Testand 2.0 and Imaq 2.6, I am doing pixel comparing from desired to actual
picture. It is working fine, but under Win2k the function takes almost 2sec and under Win98 just a few milliseconds.

I think the NI-Function imaqGetPixel will cause this.

Please see the attached code for more information

Greetings Juergen
0 Kudos
Message 1 of 3
(3,253 Views)
I can't tell you why the time is different, but I can suggest a different way to code it that might make a difference.

I would consider extracting the entire arrays as 32 bit integer blocks, then loop through the arrays and compare the 32 bit integers as a whole. You might be able to map into the image storage to get to the arrays to avoid making a copy.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(3,253 Views)
Hello Bruce,

Now I had time to take care about this problem.
Thanks for your usefuls hints (Egg of Columbus).
I have placed them in my code and now on Win2k and Win98 I have the desired behavoir.

So my result is that imaqGetPixel is much slower under Win2k.

So if you have no idea I will post this message once again to make more attention to this problem

Greetings from
the Lake of Constance (Germany)
Juergen
0 Kudos
Message 3 of 3
(3,253 Views)