Plug and Play Events Not Working with GigE and USB Cameras

Updated Jun 27, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-IMAQdx
  • NI-IMAQ

Issue Details

I try to create an event based on attaching or detaching a GigE or USB Camera with the Register For Events function.
 

 
When I run my code, no event is being created when I attach or detach my camera. Why is this not working?

Solution

The Plug and Play Events in the Register For Events function are only working for FireWire cameras. GigE and USB cameras do not support this functionality.

As a workaround you can perform the following steps in your code:
  1. Detect camera removal by checking for the camera removed error.
  2. Re-enumerate the camera list (IMAQdx enumerate cameras.vi) to make sure the camera is really disconnected.

WAS THIS ARTICLE HELPFUL?

Not Helpful