Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

WinTV OCX and LabVIEW, how to save to file?

Hi!
 
I have successfully installed a Hauppauge Impact VCB (video capture board), Hauppauge OCX-components and made a small LabVIEW test software. Now I would like to save the images I'm looking at into a movie format instead of one of the following "image-formats".
 
ClipBoard_clp
IFFILBM_iff
JPEG_jpg
MacPic_pct
MultiPagePCX_dcx
PCX_pcx
PhotoShop_psd
PNG_png
SiliconGraphics_sgi
SunRaster_ras
Targa_tga
Tiff_tif
WindowsBMP_bmp
XPixmap_xpm
 
Basically I would like to have an AVI-movie instead of a bunch of images.
Do you have any idea of how I can solve this problem?
 
Many thanks in advance!
/Mattias
 
0 Kudos
Message 1 of 12
(5,584 Views)
Hi Mattias,
 
The ClipBoard image would be the best to use for each image you capture.
After aquiring each image you then need to call up the avi vi's and write the images to avi frames.
Attached is a quick mock up of the vi I would use.
 
Hope this helps
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 12
(5,580 Views)
Hi!
 
Thanks for the quick answer.
 
I can however not find the VI ClipBoardToImage. Is this VI only available if I have the Vision Toolbox?
 
Best regards,
Mattias
0 Kudos
Message 3 of 12
(5,566 Views)

Hi Mattias,

Unfotunatelly yes that vi is only avaliable if you have the toolkiit.

Regards

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 4 of 12
(5,564 Views)
Hi Adam
 
Thanks again for your quick answer. Currently I dont have the possibility to buy the Vision toolkit. Do you know if there is any other way of doing this? Is there any other plugins or activeX controls that can capture from a standard windows capturing board? I use the Hauppauge Impact VCB.
 
Any idea would be gratefully received.
Mattias
 
0 Kudos
Message 5 of 12
(5,561 Views)
Hi Mattias,
 
Well there is another option then.  If you can get your software to save to file, then you can use the image file read vi to open that file.
All the same, exept we are now going through the HDD for the images.  It's a lot slower but at least we can get some images out of it.
You'll have to benchmark it to try it out.
 
Another option is the activeX.  However the Hauppauge would need to have it's own ActiveX server.  Do you know if it does?
How do the LabVIEW Vi's work?  are they dll calls or activeX calls?
 
Thanks
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 6 of 12
(5,559 Views)

Thanks for your reply.

I will try to save the image to disk and then create an avi from there. But instead of saving direkt to the harddrive I'm thing about trying a ramdisk, and then get the file from there to create an avi. Perhaps will this solution be faster compared to using a standard HD?

Regards,

/Mattias

 

0 Kudos
Message 7 of 12
(5,543 Views)
Hauppage provides an ActiveX interface and dlls.

There appears to be a Motion Capture function (to avi) in the dll documentation, but it doesn't seem to be available via ActiveX.



Message Edited by rpursley8 on 01-22-2007 11:14 AM

Randall Pursley
0 Kudos
Message 8 of 12
(5,525 Views)
Thank you for your reply.
 
I have tried to use the Hauppauge ActiveX interface but I have only succeeded with saving data to an image, not into a movie format.
Have you been able to save the images as a movie using the ActiveX interface?
 
Thanks for any help.
Regards,
Mattias
 
 
0 Kudos
Message 9 of 12
(5,518 Views)
There appears to be a Motion Capture function (to avi) in the dll documentation, but it doesn't seem to be available via ActiveX.

Wait, there is a Motion Capture method available in the ActiveX


Message Edited by rpursley8 on 01-22-2007 11:17 AM

Randall Pursley
0 Kudos
Message 10 of 12
(5,515 Views)