I am looking to call some MATLAB code using the MATLAB Script Node in LabVIEW. The problem is I cannot get the script to call subfunctions. Specifically, I want to use the "fmincon" function for a constrained optimization problem. I can write the objective function inline, however the nonlinear constraints need to be specified as a function .m file. This does not seem to execute correctly (or at all) using the MATLAB script node from LabVIEW. I also understand that I can call MATLAB using the System Exec .vi, however, how would I input/output the information without reading/writing text files? This seems ungainly. Compilation into a DLL may be possible, but I am unfimilar with the process and do not have m
uch time to work on this. Is there a way I can get subfunctions to execute? Thanks.