Let me give some background because I am obviously not communicating well.
I have several types of proprietary USB cameras. I have been talking to them successfully via USB for over a year. I already have a very good INF file. USB communication is not a problem. I have read every USB tutorial or other documentation that I have found published by NI.
My specific issue is hot-plugin. USB supports hot-plugin. When I plug in my USB camera, my Windows XP OS recognizes the fact and informs me by playing a nice little ascending arpeggio on the sound card. XP's hardware profile is updated and it recognizes the manufacturer and model number of my camera. When I unplug the camera, XP detects the event and plays a descending arpeggio. Clearly XP supports hot-plugin/plugout and my camera is properly informing XP of its manufacturer and model number.
When I hot plugin a camera, my software can manually start a VISA session and talk to the camera --- no problem. The problem is, the user has to *INFORM* the software to start the session. What I need is a VISA event that informs the software of a hot plugin so the software can autonomously start the session without operator intervention. Likewise, I need a VISA event that informs the software of a hot plugout so the software can autonomously cease communicating with the camera. Otherwise, software assumes the camera is still there and times out on the next USB activity.
I have seen nothing in NI's documentation that describes how VISA can detect a USB plug-in or plug-out. Please tell me there is a little-known document somewhere that describes how to do this. Right now, the only option I have is to periodically poll the USB bus to see if any new cameras have been attached. I hate polling.
I carefully read your response about the VISA Driver Development Wizard. Correct me if I am wrong but as far as I can tell, all it does is create an .inf file for XP. I even re-ran it and created a new .inf file to see if I was missing something. Are you suggesting that I write my own XP driver? Replace VISA? Is there a template for a VISA USB driver that I could modify? Please explain.
Chuck
Message Edited by Chuck_in_dallas on 05-16-2005 11:45 AM
Message Edited by Chuck_in_dallas on 05-16-2005 11:46 AM