Excluding ActiveX, MATLAB 6.1.0.450 help says the only way to call external code is with a MEX file (dll, for windows). Unfortunately, App Builder is needed to make a dll from LabVIEW. If you find an acceptable method of using the LabVIEW runtime engine, .m files can be called in batch mode using "System Exec.vi".