Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

USB WebCam consumes high CPU and memory usage

Hello,
 
I am working with vision system that uses USB WebCam. The USB WebCam consumes high CPU usage and high memory. I've tried to add RAM memory up to 1GB but the problem still exist. When the CPU and memory usage is high, PC tends to hang up and we have to restart the PC to recover the problem.
 
Thanks,
 
hart 
0 Kudos
Message 1 of 23
(13,179 Views)
Hi hart,
 
There appears to be a memory leak. First off, do you have NI-IMAQ for USB installed? 
 
Michelle
--Michelle

National Instruments
0 Kudos
Message 2 of 23
(13,158 Views)
Hi Michelle_B, Yes, I had installed NI-IMAQ for USB. How to find where the memory leakage come from? Do you have any suggestion to improve the USB camera performance in LabView? ThaNK YOU, hART
0 Kudos
Message 3 of 23
(13,144 Views)

Hi

i just installed thr ISB driver but no icon appears under vision palette

where is it??

the vision assistant is working well, but I want to use the usb driver under labview only (vers7.1)

any comment..

Pierre

0 Kudos
Message 4 of 23
(13,133 Views)
Hart,

Why don't we try to narrow down the issue by taking LabVIEW out of the picture. Try using the camera with whatever driver/software came with the camera. Do you still run into the same issue? High CPU usage?
--Michelle

National Instruments
0 Kudos
Message 5 of 23
(13,107 Views)

Pierre,

Let's first make sure the USB driver was installed properly. You should be able to locate the IMAQ for USB VIs under Program Files\National Instruments\LabVIEW 7.1\vi.lib\imaqUSB in a Windows OS. If you see the imaqUSB.llb there, then you should be able to locate these VIs in LabVIEW 7.1 in the Functions >> NI Measurements >> Vision >> IMAQ USB palettes.

Michelle

--Michelle

National Instruments
0 Kudos
Message 6 of 23
(13,087 Views)

thanks Michelle

That's the point, I can't find it in this directory, and even elsewhere...

the only "install" information is the location for the Vision assistant llb (and the webcam is working with the Vision assistant (It's my first time with Vision assitant!!, cute!), I attached the printscreen of the wizard.

It's more than 10 years with labview and  I've never seen thatSmiley Happy

pierre

0 Kudos
Message 7 of 23
(13,075 Views)

Hi Michelle_B,

I've tried to run the USB Webcam the software provided by Logitech. Yes, the CPU usage is high during capturing image. In standby mode its ok. I just found out that image resolution contributes to this issue. I changed current resolution from 960x720 to 640x480 and the impact is quite big, I managed to reduce the CPU usage from 80%-100% to 40%-60%. Thank you for your advise.

 

Thanks,

hart 

0 Kudos
Message 8 of 23
(13,058 Views)
Pierre,
 
IMAQ for USB is a free driver for 3rd party USB cameras, therefore its installer may not be as robust as those for our larger device drivers - IMAQ, IMAQdx, DAQmx, etc.
 
It is possible you had corrupted download - try downloading the driver again and let me know how this works. Of note, you do need Vision Development Module to install IMAQ for USB -- it appears that you already have this installed.
 
Michelle
--Michelle

National Instruments
0 Kudos
Message 9 of 23
(13,041 Views)
Thanks Michelle
I alreday noticed it is not such robust installer...
No it is definitely not working .
The most funny is the IVA lib is installed and the vison assistant works nice with the webcam, but LV can not see the ImaqUSB.llb which is not installed at all on my PC
Sherrie already sent me the IMAQUSB.llb, and it works fine, as I installed the patched IMAQdirectshow.llb from brad (yes, I have a french OS).
I got this info in another thread.
Thank you all for the help
If interested, I have very nice LV codes to set and acquire 1394 fast cameras such AVT Pike a.s.o ...
0 Kudos
Message 10 of 23
(12,993 Views)