LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MATLAB 7.0 and Labview 8

Hi,

Unfortunately, I did'nt remeber anything about that have changed : I've just restart my computer.
Last week I download the MATLAB script dll for Labview 7 and replace my MATLAB script dll (LV 😎 and it works fine every days
http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument

Sincerly

Olivier
0 Kudos
Message 11 of 16
(2,437 Views)
Hi!
I have an Labview 8 interface, which contains a MATLAB script node to implement an external MATLAB algorithm to my interface.
I have run everything with MATLAB 6.5 but know I have MATLAB 7.3.0 (R2006b) and id does not work anymore. I always get the error 1050 or 1047 if i run the Labview interface.
It seems like, Labview can not send the input 2D array to MATLAB 7.3.0 anymore and run the algorithm.
What is the problem with the connection between LV 8 and MATLAB 7.3.0, since it has worked with MATLAB 6.5?
1050: too many input arguments
1047: not able to send the input to the script server
Please give me advice ASAP.
Thank you!
Daniel Herrmann
0 Kudos
Message 12 of 16
(2,393 Views)

Hi Daniel,

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.

The error may also occur if there is a disruption in the script server between MATLAB and LabVIEW and the connection was never re-established (possibly by closing MATLAB prematurely). Close both LabVIEW and MATLAB then relaunch them both and run the VI.

Please also check this KnowledgeBase for additional information.

If that does not answer your question, please feel free to post back.

 
Lorielle P.
Applications Engineer
National Instruments
0 Kudos
Message 13 of 16
(2,375 Views)
I experience the same problem with Labview 8.5 and MATLAB Version 7.3.0.267 (R2006b)
 
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.
 
Why do I get this error?
Are there any limitation in what MatLab functions you can use in LabView?
 
Simon
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 14 of 16
(2,102 Views)
Don't use Function definitions in the matlab script. You can try to use mathscript in LabVIEW 8.5.
 

You can also extend LabVIEW MathScript by adding your own user-defined functions or by installing a LabVIEW add-on toolkit. The NI LabVIEW Control Design and Simulation Module and the NI LabVIEW Digital Filter Design Toolkit add text-based functions to MathScript.

0 Kudos
Message 15 of 16
(2,089 Views)

I am also getting same error. (1047)

What I found while trying to solve this problem is memory issue. If possible try to minimize your input and output variables. Otherwise best solution for this, create 1D array of input and output variable. This should solve your problem.

0 Kudos
Message 16 of 16
(1,111 Views)