LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building executables containing Matlab Script Node

I have read many posts that seem similar to my problem where I cannot get a LabVIEW executable I have created from a .vi file to execute if it contains a Matlab Script node. I tried solutions I saw in various Knowledgebase articles like copying the file "matscript.dll" to a directory called "scipt" where the executable also resides but that didn't help.

I am running LabVIEW 7.0, the matscript.dll version installed on my machine is 7.0.0.2 (I did not individually and purposefully upgrade to that as I read about that being recommended in some posts, I just found that to be the installed version), and the Matlab version on my machine is new, Version 6.5.0.196271 Release 13.0.1. I am running this under Windows 2000, Service Pack 4.

When I launch and run the .vi file, it works as expected with one notable caveat. When it opens it always comes up showing the * that says it will ask to be saved again when I later close it and this happens each time I open it whether I previously told it to save yet again or not. When I ask to Explain Changes it says "VI recompiled, changes to front panel data structure or block diagram data flow causes LabVIEW to recompile the vi, generating new execution code". First, should that be?? If I remove the Matlab Script node from the .vi file that request to save each time goes away so it is definitely related to the script node in some way.

Then, if I build an executable from that and try to launch it, Matlab launches as it should but the front panel of the executable never opens. I get no error messages but in essence it just sits there... When I go into Task Manager it always says the program is "not responding" and I stop it with the Task Manager. If I simply remove the Matlab Script node from my vi and make an executable from that (not what I want to do my work but just as a test) the executable works fine. So it clearly is a Matlab Script node related issue.

Again, did I miss the solution in my rather extensive perusal of the Knowledge Base where I found similar but not this identical problem?? Or can someone suggest what might be going on and how I might fix this issue?? Any help would be much appreciated... thanks... bob paris...
0 Kudos
Message 1 of 4
(3,180 Views)
Perhaps I just answered my own question... I did a search on my machine and found the "matscript.dll" to exist in a number of places. I checked the versions on all and discovered that in one place,
C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\7.0\script,
the version of the dll was still at 7.0.0.1. I replaced that with the newer version, 7.0.0.2 and now my executable appears to open ok... The bottom line appears to be that I didn't change the dll version in the locations that matter. Sorry for jumping the gun a bit on my earlier post... thanks.. bob paris...
0 Kudos
Message 2 of 4
(3,180 Views)
BTW, the relative location for matscript.dll is:

.\resource\script\matscript.dll

-Jim
0 Kudos
Message 3 of 4
(3,180 Views)
Here is a KnowledgeBase that also talks about this issue:
http://digital.ni.com/public.nsf/websearch/CCB969868C2946608625673E0077D841

-Julie
0 Kudos
Message 4 of 4
(3,180 Views)