10-25-2022 04:09 AM
Hello community,
I'd like to integrate compiled Matlab functions with LabView 2022Q3 using the .NET Assembly approach see https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGE2CAO&l=de-DE .
To reduce overhead and save ressources during program runtime, I wish to start the Matlab Runtime only once in an 'initialize' node, call several Matlab generated .NET Assemblies and than close the Matlab Runtime in a 'teardown" or 'finalize' node. Is there a way to do so? Or do you have other suggestions to improve runtime, when calling to .NET Assemblies?
Looking forward to your advice, Max
12-20-2022 05:48 AM
Hi maxine_mumann,
To my knowledge, if you want to run any MatLab generated program you need to have MatLab runtime running. Therefore you can't close runtime while calling MatLab code from LabVIEW.
Regards)
12-20-2022 09:20 AM
Thanks for the response,. In fact for each .NET assembly generated with Matlab a Matlab Runtime is instantiated, I would like to re-cycle one Matlab Runtime instance for the entire runtime of my Labview Program. Apparently, this needs to be done on Matlab side.