LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab script node fails with LabVIEW 7.1.1 and Matlab R2006a

I am having trouble running LabVIEW 7.1.1 with a Matlab script node with MATLAB R2006a installed.  When I run a program (for example, the "MATLAB Script - Lorenz Diff Eq.vi" example, I get an error: 

Error 1047 occurred at LabVIEW:  LabVIEW failed to send variable to the script server.
Server:"" in MATLAB Script - Lorenz Diff Eq.vi

Here is the history of this error.
Previously, I had LabVIEW 7.1 and MATLAB 7.0 (R14) installed, and my MATLAB script nodes worked fine (after installing the updated matscript.dll as described in 300A6NDT).  Then, I installed the newest version of MATLAB, 7.2 (R2006a), and all of my VIs with MATLAB script nodes returned an error (typically 1047). 

I tried re-downloading the newest matscript.dll from knowledge base article 300A6NDT, but of course that didn't work since that version was already installed.
I then updated LabVIEW 7.1 to 7.1.1, but after all of the mass compiling was finished, the same errors are reported (including in the example VIs, Lorenz Diff Eq.vi (error 1047) and Fractal.vi (error 1050)).

Does anyone have any idea how to resolve these errors short of rolling back my Matlab version?

Thanks,

Doug Martin
0 Kudos
Message 1 of 4
(3,301 Views)

Hi,

Matlab 2006a came out in March 2006 which is a lot later than we released any major version of LabVIEW. Hence we have not tested LabVIEW against this version of Matlab. I have however requested a LabVIEW developer to test out the same. I will let you know as soon as I get any new information.

Regards,

Ankita Agarwal

National Instruments

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

Hi,

Matlab 2006a came out in March 2006 which is a lot later than we released any major version of LabVIEW. Hence we have not tested LabVIEW against this version of Matlab. I have however requested a LabVIEW developer to test out the same. I will let you know as soon as I get any new information.

Regards,

Ankita Agarwal

National Instruments

0 Kudos
Message 3 of 4
(3,294 Views)

Hi,

We have been able to run the Lorenze Diff Eq.vi as well as Fractal.vi succesfully with Matlab 2006a and LabVIEW versions 7.0, 7.1, 7.1.1 and 8.0.  So it looks like a issue with teh way your system is set up. I would suggest the following:

1. Remove the patch dll that you installed to get LabVIEW 7.1 to work with Matlab R14. Or a longer route is to uninstall and reinstall LabVIEW.

2. Run Matlab atleast once on its own before running LabVIEW code that is using Matlab Script node.

Please let me know if you have any further questions.

Regards,

Ankita

0 Kudos
Message 4 of 4
(3,289 Views)