LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vi with Multiple usb camera of same name , takes pictures with only 1 camera

Hi ,

 

I have a case in which I have 2 usb camera of same name hence my vi cannot distinguish which camera is which and it ends up taking picture from only 1 camera, please help me out. Is there a way to rename them either with labview or on windows 7.

 

Thanks,

0 Kudos
Message 1 of 9
(3,032 Views)

I'm puzzled by your problem.  We have an application with 24 cameras all saving simultaneously to AVI files, no problem.  What function are you using to do the Grab?  The IMAQ and IMAQdx Grab functions have, as an input, Session, which if you click on it and say "Create Constant", will create an I/O Constant that you should be able to click the down arrow and have it show you a list of cameras you've found in MAX. Simply choose the two (different) cameras that you want, and you should be Good to Go.

 

BS

0 Kudos
Message 2 of 9
(3,003 Views)

@Bob_Schor wrote:

I'm puzzled by your problem.  We have an application with 24 cameras all saving simultaneously to AVI files, no problem.  What function are you using to do the Grab?  The IMAQ and IMAQdx Grab functions have, as an input, Session, which if you click on it and say "Create Constant", will create an I/O Constant that you should be able to click the down arrow and have it show you a list of cameras you've found in MAX. Simply choose the two (different) cameras that you want, and you should be Good to Go.

 

BS


Hi Bob,

 

My program works fine if the camera name are different, but as if now I donot have differenct camera and wondering if I can use 2 usb camera with same name. is there somehow labview identify 2 usb camera with same name and type.

 

Thanks,

 

Ankit

0 Kudos
Message 3 of 9
(2,993 Views)

If you plug a number of absolutely identical cameras into, say, a 4-port USB hub, and then open MAX, MAX will name them something like "Cam1", "Cam2", "Cam3", and "Cam4".  If you now put down an IMAQ (or IMAQdx) function and wire a constant to the Session input, it will "turn into" an I/O constant.  If you now click its "down arrow", you'll see you can choose Cam1, Cam2, Cam3, or Cam4.  Simply pick the camera you want.  The make and model of the camera are immaterial -- it's the name that MAX gives it.  Note that if you want to use a name other than "Cam1", you can rename it in MAX to give it a name that is more meaningful to you.

 

That's basically what I said before.  Have you tried this?  Have you plugged in both cameras, opened MAX, and seen how MAX names them?

 

BS

0 Kudos
Message 4 of 9
(2,982 Views)


Hi bob,

 

I am not sure how you meant to do that , I tried using that but it didnt work  , the IMAQ usb Init  takes is the Camera name and not the name from the MAX , My Vi is attached , please let me know where I am doing the mistake.

 

Thanks,

 

Ankit

0 Kudos
Message 5 of 9
(2,961 Views)

Camera Grab.vi is missing...!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 9
(2,954 Views)

@moderator1983 wrote:

Camera Grab.vi is missing...!!


Attached is the camera grab vi

0 Kudos
Message 7 of 9
(2,948 Views)

Why are you not using "IMAQdx Enumerate Cameras.vi"...!!

 

Open camera refnum.png

 

Also the same code is attached in version 2009.

 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 8 of 9
(2,939 Views)

Thanks a lot, moderator1983,

 

I will try to use that .

 

- Ankit

0 Kudos
Message 9 of 9
(2,935 Views)