Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

know about camera on status

hi,

     i want know about camera on status while run time un plug the camera(usb cable).i attached vi and camera setting and model information.

 

a).i am using camera trigger mode

Download All
0 Kudos
Message 1 of 12
(3,770 Views)
if I understand well
you want to know when and what kind of cameras are plug to your system yes?
use imaqdx enumerate cameras vi for this reason
0 Kudos
Message 2 of 12
(3,748 Views)

yes, i want know about when camera cable is unpluged.but my while loop is runiing continuously it give time out error.

0 Kudos
Message 3 of 12
(3,742 Views)

use this vi it will help you

0 Kudos
Message 4 of 12
(3,732 Views)

this is not working because camera is trigger mode so it give if the camera connected time also time out error.so it toggling plug and unplug.

0 Kudos
Message 5 of 12
(3,728 Views)

I add loop to your vi that check if your camera is conect or not check this vi may be it could help 

0 Kudos
Message 6 of 12
(3,725 Views)

if camera is conneted or not connected it always give is same setting(array zero index data only).

0 Kudos
Message 7 of 12
(3,721 Views)
two thing you should regard it
1 this method need time and is not immediate
at least 1 or couple second based on your camera time out is need to this method know if camera is unplug
2 if this vi show always unplug it seem you did not inter camera file name completely
(maybe extra inter at the end )
but you can fix it by changing compare part
for example if you have just one camera you can check array size and if this size become zero so camera is unplug
0 Kudos
Message 8 of 12
(3,710 Views)

yes i accepts that but defaulty came same setting when connect or not conneted both the condition.

0 Kudos
Message 9 of 12
(3,709 Views)
sorry I do not get your last post means
0 Kudos
Message 10 of 12
(3,703 Views)