11-08-2007 10:22 AM
I have a USB camera which I am trying to control using LabView. I have followed the tutorial, Using NI-VISA 3.0 to Control Your USB Device, and the device is now recognized by MAX. The device came with demo software allowing me to control it through the PC, i.e. change exposure controls, white balance controls, tell it to stream video and when to capture a still image. All I really need to do with LabView is load initial settings to the camera, tell it when to begin streaming video, tell it when to take a still image, and tell it when to stop streaming video, but I have no idea how to talk to the camera from here. For example, I am not sure if my device uses Bulk, control, or an interrupt pipe, and I am not sure how I can read and write from my device even if I knew the appropriate pipe or endpoint. I also noticed that the "VISA USB RAW Control" VI has fields such as "request", "request type", "index", etc. I read some notes trying to figure out what these meant, but I couldn't find anything. With all that said can anybody name any tutorial/article(s) I should read that will help point me in the right direction? Any help will be appreciated.
11-08-2007
10:34 AM
- last edited on
03-26-2025
11:40 AM
by
Content Cleaner
I think you might want to undo everything the tutorial told you to do and try this instead. Using VISA should be considered a last, desperate option, imho, and I'm not sure how you would would have been directed to that. Search the forums and the NI site for 'USB camera' and you will find a lot of links.
11-08-2007 11:42 AM
11-08-2007 11:56 AM
11-08-2007 12:09 PM
11-08-2007 12:18 PM
11-09-2007
11:18 AM
- last edited on
03-26-2025
11:40 AM
by
Content Cleaner
Hello kd,
Dennis pointed you to the correct link. You will need the NI-IMAQ for USB Cameras driver to acquire images from a DirectShow USB camera into LabVIEW. As you can see from the attached table image, you will need the NI Vision Development Module 8.5 for LabVIEW 8.5. You can determine which version of the NI Vision Development Module that you have installed by opening the NI Measurement and Automation Explorer, expanding the Software section under My System, and looking for an item called "NI Vision." By single-clicking on the NI Vision item, you will bring up information, including the version number, in the Attributes tab off to the right.
Best Regards,
T. McCarty