I am trying to call a MATLAB M-file from LabVIEW 8.0. I keep getting Error Code 1050:
"Error 1050 occurred at LabVIEW: Error occurred while executing script. Error message from server: ??? Error: Function definitions are not permitted at the prompt or in scripts.
. in rickfito.vi->impedo.vi
Possible reason(s):
LabVIEW: Error occurred while executing script"
I tried running the sample MATLAB script example on the knowledge base, and everything works fine.
I am guessing that this error is happening because I have functions defined in the MATLAB script. But i thought this is better programming techinque. Also, the MATLAB window opens up when I start the VI.
Is there a way around this? I really do not want to remove the function definitions on the script.
Thx,
Pelo...