LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to acquire video from PCI TV tunner card in Labview

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.

 

wAqAs
Design Engineer
COMTEC PAK
0 Kudos
Message 1 of 10
(4,582 Views)

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

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 10
(4,561 Views)

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

 

 

 

wAqAs
Design Engineer
COMTEC PAK
0 Kudos
Message 3 of 10
(4,544 Views)
I am not familiar with this card.  How did you do it in MATLAB? Are you calling a DLL?  Are you using ActiveX?
Randall Pursley
0 Kudos
Message 4 of 10
(4,531 Views)

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

 

wAqAs
Design Engineer
COMTEC PAK
0 Kudos
Message 5 of 10
(4,500 Views)
Do you know what "winvideo" means?  It sounds like you are making an activeX call.  When you run this code does a Windows Media Player (or some other Windows software) play the actual video?  If that is the case you can also make the activeX call with LabVIEW and run Media Player from there. 
Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 6 of 10
(4,482 Views)

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.

 

wAqAs
Design Engineer
COMTEC PAK
0 Kudos
Message 7 of 10
(4,470 Views)

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

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 10
(4,466 Views)

 

 

 

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" ...)

0 Kudos
Message 9 of 10
(4,168 Views)

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.

Message Edited by rolfk on 04-21-2010 07:11 AM
Rolf Kalbermatter
My Blog
Message 10 of 10
(4,142 Views)