LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR 1050

If I send a Matlab variable (as a string constant X)  into an input of a MatLab Script Node, I get an “ERROR 1050”

If I type the Matlab variable name directly into the plot command that’s in the MatLab Script Node, [eg. plot(X)] then it works.

Any help would be appreciated.

Chris

0 Kudos
Message 1 of 2
(3,300 Views)

CHRLAB47,

Please take a look at the following Knowledge Base article's (KB) that relate to instances where you might recieve error 1050.

How Can I Resolve MATLAB® script node and Xmath Script Node Issues in LabVIEW? 
MATLAB Script Node Allows "_" In Parameter Name But Does Not Execute Correctly 

Also please see if the MATLAB® Script Node is trying to open any files. If so, then make sure that the current MATLAB directory is set to the directory where that file is located. The MATLAB script node in LabVIEW does call the MATLAB script server and executes the function in the MATLAB script node through MATLAB. Therefore, even though LabVIEW may be in the correct directory where the file is located, make sure MATLAB is as well.

First, see if the MATLAB Script Node is trying to open any files. If so, then make sure that the current Matlab directory is set to the directory where that file is located. The MATLAB script node in LabVIEW does call the MATLAB script server and executes the function in the MATLAB script node through MATLAB. Therefore, even though LabVIEW may be in the correct directory where the file is located, make sure MATLAB is as well.


MATLAB® is a registered trademark of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.

 
Mark
NI App Software R&D
0 Kudos
Message 2 of 2
(3,263 Views)