03-04-2014 09:06 AM
I have a large amount of code that was written in FreeMat and am wondering what is the best way to deal with it, as I wish to integrate it into LabView. LabView would control the hardware, whilst FreeMat has some mathmatical scripts. What would be the best possible solution, either:
1) Somehow call the FreeMat files from LabView, although I do not know how to do this.
2) Copy and paste the FreeMat's code into a LabView Math Script, would this work?
3) Convert the FreeMat code to MatLab then call the MatLab Script Node in LabView, though this would mean getting a Matlab Licence?
03-04-2014 09:10 AM
I am not familiar with FreeMat, but is it possible to create a dll?
If not, then try option 2 if the syntax is supported by MathScript.
Otherwise, you're stuck with option 3.
03-05-2014 04:28 AM - last edited on 03-21-2024 07:28 PM by Content Cleaner
Hi Steve,
Building into a dll is one option, though I struggled to find resources on how to do this for FreeMat. Once you've built the FreeMat .dll you can follow the functions below:
If you have access to the Mathscript RT module then you should be able to call your FreeMat .m file directly within the LabVIEW engine.
Best Regards,
Chris