07-23-2009 03:08 AM
Hello Guys,
I am a new commer in this fourm and this is my first post.
I am working on a project where i need to acquire analog video into labview 8.5 for this purpose i have a analog security camera and PCI TV tunner card (Manufactured by ASUS) and i built the routine in Matlab 2007 and its working(But not satisfying me).
I am very keen to watch live video stream in Labview so in this regard i need your help .
Thanks alot for your time.
07-23-2009 07:35 AM
Take a look at these links:
http://forums.ni.com/ni/board/message?board.id=170&message.id=7351&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=200&message.id=13205&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=200&message.id=45&requireLogin=False
07-24-2009 04:46 AM
well vt92,
i saw these posts earlier and now once again.but that driver is not working with my device.
i have "My Cinema P7131" Analog TV tunner card which is PCI based and manuafctured by ASUS.
and i am unable to find any clue to get the video from this device.
My target is to design a head up display for a flight simmulator in which i'l overlap the data(Yaw,Roll,Pitch Heading,GPS cord ets) on this video..
If some one have ever worked on this sort of project then kindly help me out.or share some example code.
Unlimmited Thanks
07-24-2009 08:29 AM
07-28-2009 12:53 AM
Its very easy in MATLAB.
i have just created the object with
////Matlab code
obj=videoinput('winvideo',1)
start(obj)
preview(obj)
pause(15)
stop(obj)
*****************
its all done...
i also have done it by calling this matlab code in labview ...but i want to know how to do it directly in Labview without using MATLAB.
thanks
07-28-2009 06:51 PM
07-29-2009 02:54 AM
Dear Nakeel,
i have checked it in Matlab.its not the ActiveX call and video opens in Matlab Preview window not in windows Medialayer.
obj = videoinput(adaptorname) constructs the video input object obj.
A video input object represents the connection between MATLAB® and
a particular image acquisition device.
adaptorname is a text string that specifies the name of the adaptor used to
communicate with the device. Use the "imaqhwinfo" function to determine
the adaptors available on your system.
when i checked imaqhwinfo command it displays the following result :
>> imaqhwinfo
ans =
InstalledAdaptors: {'coreco' 'winvideo'}
MATLABVersion: '7.6 (R2008a)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '3.1 (R2008a)'
can i call these adopters in Labview with the same way?
and one more thing .i also checked this code in Labview its running there but in Matlab preview window not in Labview.
which is not the requirment.
07-29-2009 03:56 AM
Most likely your interface card can be accessed through DirectX. And then the IMAQ USB driver that is available elsewhere on this site as free and unsupported download, and will be replaced by a USB acquisition interface in the upcoming IMAQdx release, should be able to interface with it.
Rolf Kalbermatter
04-20-2010 10:57 PM
Hi - did you do anything special to get the Labview Mathscript node to use the Matlab Image Acquisition Toolbox? It won't let me type the following: vid = videoinput('winvideo'); whereas this works just fine in Matlab proper. Do I have to configure the winvideo adapter in Labview or is it hating my code at an even higher level than this? (Block Diagram Errors: "Unknown symbol on line 2 column 7: videoinput" ...)
04-21-2010 12:09 AM - edited 04-21-2010 12:11 AM
Gondor wrote:
Hi - did you do anything special to get the Labview Mathscript node to use the Matlab Image Acquisition Toolbox? It won't let me type the following: vid = videoinput('winvideo'); whereas this works just fine in Matlab proper. Do I have to configure the winvideo adapter in Labview or is it hating my code at an even higher level than this? (Block Diagram Errors: "Unknown symbol on line 2 column 7: videoinput" ...)
First Mathscript is NOT Matlab. It is a National Instruments implementation resembling Matlab. As such it does not and can not make use of Matlab Toolboxes at all.
Second though not directly related to this. Looking at http://www.mathworks.com/products/imaq/supportedio.html I see that they support a list of specific frame grabber manufacturers and Video for Windows, but not Direct X. So my previous assumption was wrong. What they most likely do in their IMAQ Toolbox is to implement a driver interface to each manufacturer specific API. This is 100% true for the National Instruments boards since NI-IMAQ or IMAQdx is the only means to access them respectively. So I guess they simply interface to the frame grabber manufacturer provided DLLs which you can do of course too in LabVIEW but NI won't do for you since they sell their own frame grabber hardware.
www.alliancevision.com is a first interesting check to see if you can buy LabVIEW drivers for a particular brand of frame grabber. Many have in the past thought they could quickly put together a frame grabber interface for some hardware by playing around with the Call Library Node to interface to the manufacturer DLLs, but that is serious software business and buying a driver interface is a lot more effective time and economy ways for most people.