Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

running matlab program thruogh my Visual Basic interface

I have developed my program through Visual Basic. But there were some parts that cannot be done using VB. So I did those calculation part using Matlab. Now I want to call that matlab program(answers and a graph) thruogh my VB interface. I cannot find the method to do that. Also I don't know how to create a matlab executable file. Hope you will kindly help me. Thankyou.(My operating system is windows 98)
0 Kudos
Message 1 of 2
(3,565 Views)
Hi,
You can :
> use Matlab as an Automation Server, but Matlab need to be installed, see :
http://www.mathworks.com/support/solutions/data/29080.shtml
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/ch07cl17.shtml
> compile a Matlab executable file, but you'll need the Matlab Compiler Toolbox (which isn't free) :
http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/compiler.shtml
Then you'll have to exchange data between your VB and Matlab programs, it can be done using temporary files but it's not really a reliable solution.
> compile a COM objet (in Matlab), but you'll need the Matlab COM Builder (either not free) :
http://www.mathworks.com/access/helpdesk/help/toolbox/combuilder/combuilder.shtml
This is I think the bett
er solution, see VB examples on the link above.
Hope this will help you. Bye !
0 Kudos
Message 2 of 2
(3,565 Views)