Jbatista,
Read the following KB. It can help you solve your issue.
Title:
Why Do I Get Error 1050 When Trying to Run a MATLAB Script Node?
Problem:
I have installed MATLAB 6.1 and LabVIEW 6.0.2 on the same machine and am trying to run the MATLAB Differential Equation example VI located in C:\Program Files\National Instruments\LabVIEW 6\examples\scriptnode\HiQMATLAB.llb. However, I get error 1050, "LabVIEW: The server failed to execute the script sent by LabVIEW. An error message has been received". I did not install MATLAB in its default installation directory. Could this be causing the problem?
Solution :
To run a script node, LabVIEW uses ActiveX technology to communicate with the script server engine that is installed with MATLAB. However,
the ActiveX components of MATLAB, including the script server, are not registered with the operating system when MATLAB is first installed. They are registered the first time MATLAB is launched. Therefore, when using a MATLAB script node in LabVIEW make sure that MATLAB has been launched on that particular machine and its ActiveX components have been registered with the operating system. After following this procedure, LabVIEW should be able to run the MATLAB script nodes without error, regardless of what directory MATLAB has been installed into.
Related Links:
KnowledgeBase 1HBAMMSR: How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?
http://digital.ni.com/public.nsf/websearch/4f811a9b23f1d46e862566f700615b7a?OpenDocument
KnowledgeBase 2C1AH6DM: LabVIEW Does Not Interface Properly with MATLAB 6.1
http://digital.ni.com/public.nsf/websearch/ce309627064a3d5686256a9c005b0a5f?OpenDocument
L Aguila
Applications Engineer
National Instruments