06-15-2016 06:16 AM
Im experiencing some weird behavior with Vision Image Controller. Whenever the program is running and im drawing ROI Rectangles or Lines, there are very clear
spikes in the whole program.
The part which is totaly confusing me is that this does NOT happen at all when im drawing with the laptops mouse pad, but it is always there
when im using an USB connected mouse. Any ideas?
06-15-2016 07:46 AM
Now it really seems weird..
..but have you checked setting for both the mouse devices?(try setting both of them with similar properties/settings)
...Try it using other USB mouse.
Troubleshooting is the only option..!
06-16-2016 08:06 AM
Ok so i've tested around abit trying to understand whats going on.
Im using Vision to convert a 16bit array to an image and im then displaying that image with the Vision Image Display Controller.
When i have the mouse inside the controller, the program starts freezing alot. Especially when drawing various ROI, it gets even worse.
What i have noticed is that this freezing behavior varying depending what kind of mouse im using. When im using my gaming Razer Mouse, the freezing
is worst. If i use another simpler logitech mouse, the lag gets less. And if im using the laptops mousepad, less again.
What is the Control doing when im moving the mouse in it or drawing ROI's? Is there some kind of built-in event handler which gets refreshed eached time
the mouse sends in a signal that it has moved? So when using a fast gaming mouse with a very high polling frequency, it uses up tons of computation power?
How would i work around this? Is there any way i can make the Image Display Controller to not get so " heavy " when the mouse is moving in it or drawing ROI's?
06-16-2016 08:18 AM
06-16-2016 09:23 AM
In this simple example i experience the problem aswell
06-17-2016 05:58 AM
Hi,
I tried your code with different combinations like putting an large image as an array, reducing the delay but the display never freezes.
I suspect it might be an issue with the CPU usage.
Have you tried increasing the delay in your program?
BTY which OS you are using ?
And is it only in case of LaBVIEW?
06-17-2016 06:18 AM - edited 06-17-2016 06:19 AM
Did you pay close attention to the loop counter? It didnt get affected at all while you were drawing various ROI's in the image display?
Which delay in the program are you precisely refering to?
Im using Labview 2015 and Windows 7. I noticed that when i put the laptop on High Performance Power Usage, it helps.