How Can I Call a .m Script in LabVIEW?

Updated Sep 17, 2020

Reported In


  • LabVIEW
  • LabVIEW MathScript Module

Issue Details

I have an script written in MATLAB® and I want to know the methods available to call it from LabVIEW and which one is the fastest one.


There are several ways to call a .m script in LabVIEW.
As with any software, speed is relative to your application.  You will want to benchmark your application to ensure it meets your requirements.  If it is not meeting your requirements, benchmark another option to determine which is fastest for your specific application.

Additional Information

MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc.