LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

webcam

Hi
I am having problems with a created program. as i am unable to view the image from the webcam used. i was wondering if anyone had a solution as to why the program isnt functioning.
Cheers
Matt
0 Kudos
Message 1 of 8
(3,952 Views)
I don't know that I could be much help with such a question, but it would probably help those that have such knowledge if you told them what kind of webcam you were using.
0 Kudos
Message 2 of 8
(3,934 Views)
sorry, it is the logitech quickcam messenger.
0 Kudos
Message 3 of 8
(3,924 Views)
Hi There,
 
Right well you have used the IMAQ functions to try and aquire from a USB camera.
What you need to do is download the USB IMAQ functions and use those.  It's not too difficult you get initialise, grab, snap, close etc vis so you can right click and replace the functions you currently have with the USB functions.
As for the code, that's fine (and should work with the correct functions) but I would put an IMAQ dispose Image after the while loop (and wire the image wire from inside the loop) so that you dispose of the memory space you were using for the image.
 
Thanx
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 4 of 8
(3,908 Views)

Thanks for the help it was very useful. i have changed the VI's to the USB IMAQ functions but am still unable to get the camera as i get an error message which occurs at the IMAQ USB INIT. was wondering if again anyone had any ideas on how to rectify the problem. i have attached the program so the error may be viewed.

cheers Matt

0 Kudos
Message 5 of 8
(3,868 Views)
Hey,
 
Well that error usually applies to an incorrect name for the USB camera.
If you use the enumerate cameras vi (as shown in the attachment) then index out the first value (which should be your camera) then you shouldn't get that problem anymore.
If you are unsure of what this is doing make a vi that just contains the enumerate cameras vi and create an indicator on the output terminal (USB camera names) you will see a list of the USB cameras attached.
 
Let me know how you get on.
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 6 of 8
(3,848 Views)
Hi Adam, Just to let you know that the system now works!
Thanks alot for the help.
Cheers Matt
0 Kudos
Message 7 of 8
(3,818 Views)

Great stuff.. Glad to hear it   Smiley Very Happy

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 8 of 8
(3,815 Views)