LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1047 when trying to run a matlab script

I cannot run matlab scripts - even in the example vi - 'matlab differential equations'.
I tried the solution of rewriting the .dll file with the new one found on http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument
but it did not resolve the issue. the error message keeps popping up everytime I try to run the VI. My Matlab version is 7.0.4. pleae help.
 
 
0 Kudos
Message 1 of 5
(3,591 Views)

Hi ,

I started a thread on this a few days ago reporting the same problem. I don't there's a solution just yet from NI

http://forums.ni.com/ni/board/message?board.id=170&message.id=149700&query.id=92956#M149700

0 Kudos
Message 2 of 5
(3,584 Views)

Sbanerji,

Which version of LabVIEW are you using?  If you are using version 7.1.1, it may be that you need to mass compile the VIs before the MATLAB script will work.  If that does not work, I would suggest repairing the installation of LabVIEW, the following the steps in the KB that you referenced very closely.  I would also make sure that you have run MATLAB to verify that the ActiveX files have been registered correctly. 

Hope this helps!

Andy F.

-----------------------------------------------------------------
National Instruments
0 Kudos
Message 3 of 5
(3,568 Views)
After banging my head against the wall for a few hours I came up with the idea that the change in install path that Matlab started with version 7.0.4 i.e instead of putting it  right under the root directory like C:\MATLAB6p5... - it was following what all other windows programs do- C:/program files/MATLAB 7.0.4 - So I tried first installing MATLAB 6.1 on top of everything I had - which went to directly under C:/ and voila!
all the scripts now worked. So to test it furthur I reinstalled the new MATLAB 7.0.4 under C:/MATLAB7.0.4 and that worked too. I guess that solves that. I think the .dll file does not address this install directory change since 7.0.4 
0 Kudos
Message 4 of 5
(3,564 Views)
sbanerji,

That's a very good tip.  Thank you for pointing that out!  Glad to hear that everything works now!

Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 5 of 5
(3,555 Views)