05-19-2015 03:22 AM
A colleague of mine has made a Matlab .m file that I should call in from LabVIEW. I have imported the function into a Matlab script node. I haven installed Matlab on my PC and therefore i get a licence error. Before I ask my boss for a matlab licence i will ask this forum if there is another way. The Matlab function is still under development and will change a number of times. I could be nice if I didn't have to import the function every time the .m file changes
1. Could I use a MathScript node instead? Or is there another way for importing or calling that function without a Matlab Licence?
2. Is it possible to dynamically call the Matlab Script node/ MathScript node eg via a propertynode or another method instead of importing the function?
05-26-2015 07:52 AM - last edited on 03-20-2024 02:07 PM by Content Cleaner
Hi Kimumortensen,
Why are you getting a license error if you have MATLAB installed on the computer already? What is the error message? Is there error code to it?
Regarding your first question, yes, if you have MatchScript RT node, you can use that in stead of the MATLAB Script node (which comes with LabVIEW Full Development Environment). The latter requires a MATLAB license while the first one does not.
Regarding question 2, could I get you to elaborate on what you mean by dynamically calling the nodes?
05-26-2015 09:33 AM
Thanks Eirikur
Sorry for not being clear in my explanation. I haven't got a license for Matlab, therefore I wish to use the MathScript node.
2. I can import a .m file into a MathScript Node by right click and choose import. If the .m file happen to change I want to import the changes without opening the .vi and importing it again. How do I do that?
05-27-2015 03:19 AM
The documentation does not state anything about dynamic import of .m files, which leads me to think that you will need to do this manually.
If you think this should be an option I encourage you to post on NI's product feedback forum NI Idea Exchange
05-28-2015 12:31 PM - last edited on 03-20-2024 02:07 PM by Content Cleaner
I know the Model Interface Toolkit has some options for Matlab but I think that is only for compiled Matlab models.
https://www.ni.com/en-us/shop/product/labview-model-interface-toolkit.html
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord