07-19-2005 09:07 AM
To install the package, download and unzip LabVIEW Logitech UWA.zip and run Setup.exe in the 'redist' folder. This installs drivers (if not already installed). Then run LabVIEW and open Logitech Image Acquisition Master.vi. Click the LabVIEW run button.
Notes for Understanding the Code
[1] The camera is controlled by an Active-X reference from a front panel Acitve-X container that displays the pre-view image. To create this, create a blank Active-X container on the front panel and select the Active-X Hydra Video Portal class.
[2] Three methods are called, following the Visual Basic guide from Logitech. The first establishes a connection to the Active-X server. The status bar is activated in the preview window (EnableUIElements), and we connect a camera (ConnectCamera2).
[3] Here we set the value of property 'EnablePreview' to turn on the preview panel.
[4] We can get the camera description for camera zero here (the first camera connected).
[5] Here we select the video format (64x480 – can change it later). The next call establishes the preview size by setting property values. The preview size should be the same as the video format for fastest image acquisition.
[6] We are restricted to saving the picture to a BMP file and then reading it in again. This is a limitation of the SDK. After reading the image file we can change it to a JPG if we wish to.
[7] Here we re-read the image file and provide it to ImageDisplay.vi.
Other methods and property values are reasonably self evident. In LabVIEW, if you right click the Active-X reference terminal on any method, you can create a new method by simply selecting the appropriate one from a list. The parameters for the method appear automatically and should be reasonably self-evident from the names. If you want more details, download the SDK from Logitech.
Other methods allow you to make movies in real-time or time-lapse sequences.
Note that you can also monitor Active-X
events to detect inputs or parameter changes made elsewhere. For example it is possible to detect when
the button on the camera is pressed.)
08-09-2005 05:16 AM
08-11-2005 07:36 PM
08-12-2005 09:05 AM
Hi,
Steve was talking about the ActiveX server that your Webcam will be using. Fundamentally you need this server to allow you to access more than one webcam, as otherwise you won't be able to access more than one webcam. All LabVIEW will be doing is wrapping over this server so if your server can't handle more than one webcam in the first place then you are going to run into problems.
Regards,
Peter H.
Applications Engineer.
NIUK.
08-25-2005 10:31 PM
1. Choose the input mode (Video, Single Image Files, Screen, etc.)
XSetInputMode(0) // This chooses video as input
2. Choose the video device
XSetVideoInput(0) // Choose the first available video input device
3. Initialize XVideoOCX
XInit() // Initialize XVideoOCX
4. Start internal video capture
now XVideoOCX should display the live video ....
5. Stop internal video capture
6. Close XVideoOCX
09-02-2005 10:11 AM - edited 09-02-2005 10:11 AM
Message Edited by JamesC on 09-02-2005 04:16 PM
10-31-2006 04:40 AM
11-01-2006 08:25 AM
12-20-2007 06:10 AM
Hello James!
Thanks for the links and tips above.
I have downloaded the files. And installed the driver. Though, the example, accompanied, doesn't work. I have all the subvi's, but it says : subVI is not executable.
I am using LabVIEW 8.2
Any idea why this is happening?
Thanks ahead.
Best regards,
Vaibhav
12-21-2007 04:10 PM