How to call Matlab script from Labview using the Labview “Call Matlab Function” function
mycirclescript.m contains the following:
"r = 3
A = pi * r^2"
Labview program is simply the following:
"Open Matlab Session" with path to Release Name ("R2019b") in string constant.
followed by the "Call Matlab Session" function with .m file path selected with a control.
followed by the "Close Matlab Session"
All three functions have "Session Out" connected to "Session In" and "Error Out" connected to "Error In", with an indicator for Error Out
on the Close Matlab Session function.
This is the simplest possible script and I don’t see Matlab open and the only thing returned
is the following error below"
Source: E:LABVIEWPROGRAMSmycirclescript.m
Function Name: mycirclescript
MATLAB call returned the following error: Output argument "n" (and maybe others) not assigned during call to "niifm.RunFunction>getOutputArgumentsCount".mycirclescript.m contains the following:
"r = 3
A = pi * r^2"
Labview program is simply the following:
"Open Matlab Session" with path to Release Name ("R2019b") in string constant.
followed by the "Call Matlab Session" function with .m file path selected with a control.
followed by the "Close Matlab Session"
All three functions have "Session Out" connected to "Session In" and "Error Out" connected to "Error In", with an indicator for Error Out
on the Close Matlab Session function.
This is the simplest possible script and I don’t see Matlab open and the only thing returned
is the following error below"
Source: E:LABVIEWPROGRAMSmycirclescript.m
Function Name: mycirclescript
MATLAB call returned the following error: Output argument "n" (and maybe others) not assigned during call to "niifm.RunFunction>getOutputArgumentsCount". mycirclescript.m contains the following:
"r = 3
A = pi * r^2"
Labview program is simply the following:
"Open Matlab Session" with path to Release Name ("R2019b") in string constant.
followed by the "Call Matlab Session" function with .m file path selected with a control.
followed by the "Close Matlab Session"
All three functions have "Session Out" connected to "Session In" and "Error Out" connected to "Error In", with an indicator for Error Out
on the Close Matlab Session function.
This is the simplest possible script and I don’t see Matlab open and the only thing returned
is the following error below"
Source: E:LABVIEWPROGRAMSmycirclescript.m
Function Name: mycirclescript
MATLAB call returned the following error: Output argument "n" (and maybe others) not assigned during call to "niifm.RunFunction>getOutputArgumentsCount". labview MATLAB Answers — New Questions