LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab node does not work

I tried to implement a function that a colleague had coded in Matlab.  I noticed that it did not seem to operate.  Next, I resorted to trying the example quoted in LabVIEW help.  This did not work either, i.e., the script
a = rand(50);
surf(a);
did not open any new windows.  Another test vi that used Matlab node with x (vector), a, b (real numbers) inputs and y (vector) output intended to produce a line with the slope of a and intercept b did not yield any output whatsoever.  Can anyone suggest the reason for this?  I am using LabVIEW 6.1 full version and Matlab 7 R14 SP1.
0 Kudos
Message 1 of 4
(2,822 Views)
Do you currently have MATLAB installed on your computer?  LabVIEW makes calls to MATLAB for the script node to work.  If you do have MATLAB, launch it first and then launch LabVIEW, and try to run the example code then.  Hope this helps!

Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 4
(2,807 Views)

Hi Andy,

Thanks for your comment.  Yes, I have Matlab installed (version 7.0.1 release 14 Serivce Pack 1) and I was running it when LabVIEW failed to execute the Matlab script node.  I already recoded the script in LabVIEW and now it is working.  However, it is disappointing that a simple port from Matlab did not work.  I suspect that the reason is the old "I did not tell you to upgrade to THAT version" problem.  I'll test the previous version of Matlab when I have a little more time.

0 Kudos
Message 3 of 4
(2,803 Views)

I might suggest taking a look at the following link:

http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument

I have a suspicion that you are correct about this being "I did not tell you to upgrade to THAT version" problem.  This interface is very susceptibility to the version of both LabVIEW and MATLAB. 

Andy F.

-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 4
(2,786 Views)