LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single Instance of Matlab Runtime when integrating Matlab .NET Assembly in Labview

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

0 Kudos
Message 1 of 3
(959 Views)

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)

0 Kudos
Message 2 of 3
(855 Views)

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. 

0 Kudos
Message 3 of 3
(848 Views)