06-05-2006 02:50 AM
Dear Alipio:
When I use USB camera to get image I meet a question as your: http://forums.ni.com/attachments/ni/170/156565/1/ErroresWEBCAM.rtf
Could you tell me how to solve this question?
Boone
06-05-2006 05:30 AM
06-05-2006 05:32 AM
06-12-2006 11:08 AM
I haven't updated the USB example page yet, so the latest DLL I posted on this thread has additional OSes that it will support that the USB driver download example page doesn't support. Use the latest DLL included in this thread to get the most number of operating systems supported.
As for the memory leak, I'm not sure when I'll have a chance to debug that, but I would recommend not doing snaps in a loop or opening/closing a continuous acquisition repeatedly. If you need to take multiple images, why not just open a session and keep it open until you're done acquiring. While the session is open, you can use the session to acquire images whenever you want, and you could use that session in subVIs by passing the session in or using a global variable. Bottom line is to avoid leaking memory, don't open/close repeatedly, just do it once...this is a good programming technique, even if there wasn't a leak I would recommend this approach. Let me know if there's a good use case where you really do need to open/close alot.
Thanks,
Brad
06-12-2006 12:03 PM
06-12-2006 04:15 PM
I'm no Test Stand expert, but Test Stand provides a way to have a setup called once at the beginning, and a cleanup called once at the end I think, and then you can call the acquisition in Main part of your code. It may require having three VIs instead of 1, but it will be much more efficient (and not leak memory). Here is a discussion forum post about it:
http://forums.ni.com/ni/board/message?board.id=330&message.id=8456&requireLogin=False
I would recommend using this approach for the USB acquisition.
Hope this helps,
Brad
06-14-2006 01:11 PM
06-14-2006 04:33 PM
You can use the Cast VI to convert the USB session to an integer (just like they do with VISA). Here's an example:
Hope this helps,
Brad
08-15-2006 04:01 AM
I have similar problems for Czech version.
Hopes help.
Michal Lesnak (michal.lesnak@vsb.cz)
08-15-2006 05:28 AM