06-28-2010 04:08 AM
I want to monitor USB port for insert & Removing of mass storage media or daq card and also want to monitor DVD drive. Please help me..
Thanks in advance
06-28-2010 08:17 AM
Hello Devaseelan,
If you want to receive a message when the USB has been plugged in or off, you can use the "wndproc" windows procedure (http://msdn.microsoft.com/en-us/library/ms632593.aspx)
If the implementation is through .Net, you can override this wndproc process, but when it comes to LabVIEW my recommendation is to implement it through Windows Message Queue Library
AshwiN,
06-28-2010 09:53 AM
If you use the Windows Message Queue Library as suggested (and I agree it's probably the easiest way to do it), you'll want to listen to the WM_DEVICECHANGE event. The readme contained within the archive lists the values for the various messages.