How to use matlab codes in a stand alone application without matlab license?

How to use matlab codes in a stand alone application without matlab license?

Post by amir_zarga » Sun, 26 Nov 2006 02:10:08


Hi,
 
I am not an expert in programming and i don't know about C++, i have a program using matlab codes and now i want to transfer it to a computer without matlab license. I've read something about using DLL, but i think i have to know C++ programming  to wrtie "WRAPPER" and add some lines to the program, now transformed in C++.
 
I just would llike to know that really isn't any other way to integrate matlab for a stand-alone application? i read somethings in Matlab help about using COM (Common Object Model ) but i am not sure that labview works with it, and also about runtime engine and "mglinstaller.exe".
 
 
my labview version is 8, matlab is 2006, and the real problem is using matlab codes in another computer without matlab license.
 
Thanks
Amir
 
 
 

How to use matlab codes in a stand alone application without matlab license?

Post by amir_zarga » Sun, 26 Nov 2006 04:40:08

Hi, agian
so thanks, but i read somewhere in forum that mathscript is not working in run-time application, then i think  i have to use really matlab and not machscript.

 
 
 

How to use matlab codes in a stand alone application without matlab license?

Post by Brian » Sat, 02 Dec 2006 02:10:08

Hey Amir,     I found some information that may help this issue.  See if the following info resolves your situation:" The problem is that
although you can save your function or script anywhere on your
computer, the software by default only looks in the following folder:C:\Documents and Settings\....\My Documents\LabVIEW DataYou
should go in and physically specify the MathScript software to look
into the directory where you saved your .m function or script. This can
be done by selecting the MathScript Preferences from the File Menu in
MathScript. The "path" section in the middle of the window specifies
all of the directories where the MathScript software queries for
functions and .m files. You can also change the default working
directory in the section at the bottom of the window. There is also a function, addpath, that can be used to add the path of a .m file. The syntax is as following:addpath('path to file')For more information on the addpath function, type "help addpath" into the command window of MathScript."
 
 
 

How to use matlab codes in a stand alone application without matlab license?

Post by amir_zarga » Sat, 02 Dec 2006 03:40:08

Hi, Brian,
 
my problem is exactly the function addpath, in attachment you can find the vi, and its standalone application. if you run just vi, then you will find that it works, but if you compile it  then i can not recognized the function 'addpath'.
 
i will be happy if you can discribe what is the problem (i hope that my  *.rar works)
 
thanks
Amir
 
attention: change the ext. from .zip to .rar and open it (i can't add with .rar ext.)


fadd3.zip:
http://www.yqcomputer.com/