External application video link to Matlab
Show older comments
I have a external Borland C builder application (and source code) that I want to link to Matlab. This borland application read a video data of custom hardware and I need to send it to my boss Matlab application.
Also I need also a link back from Matlab to my application to control the hardware.
What is the easiest why to achieve this?
Thanks Hurter
Answers (1)
Walter Roberson
on 23 Jan 2013
0 votes
Is the program written to use ActiveX ?
What kind of link were you thinking of? What does the application do with the data once it reads it?
If the code interface can be rewritten into the form of a DLL, then you can use loadlib() and call the routines.
Possibly, though, it might make more sense to recode as a device driver for data acquisition purposes.
7 Comments
Hurter
on 23 Jan 2013
Walter Roberson
on 23 Jan 2013
MATLAB can convert YUV422 to RGB in the Image Acquisition Toolbox. It might possibly be easiest to connect the USB to the machine MATLAB is running on, and (if necessary) adapt a driver so that MATLAB can see the device as a camera that it can get frames from.
Hurter
on 23 Jan 2013
Edited: Walter Roberson
on 23 Jan 2013
Walter Roberson
on 23 Jan 2013
I note that you have opened a new Question on how to deal with structures with bitfields, so the loadlib() issues are probably best handled over there.
Hurter
on 25 Jan 2013
Categories
Find more on Image Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!