ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab script in executable won't run

I'm having trouble with getting a VI with a MATLAB script to run reliably, specifically when built into an executable.
I'm using LV8.0, Matlab R2006a.

The VI (not executable) runs properly when I start the computer fresh (i.e. just after a reboot)
The MATLAB command window opens as soon as I open the VI.
If I build an executable and run it, it works, so long as I haven't closed LabVIEW and the VI.

If instead, I attempt to close out LabVIEW and run the executable alone, the MATLAB command window does not start, and the MATLAB functionality is ignored.

I have updated all of my dlls, and I have checked the box enabling the ActiveX server (though I don't know what to name the server).  I have also read all the associated Knowledge Bases, and found their solutions did not apply.

I also have intermittent issues running the VI once I have tried running the executable.
If I make a change to my MATLAB script, I can get the VI to run again, but if it has failed once, the MATLAB command window no longer opens when the VI is opened.

I can solve this problem by rebooting too, but it seems like there should be a better way.


Any ideas?

0 Kudos
Message 1 of 4
(3,269 Views)

Hi tblir,



Can you try to run and build into an executable one of the shipping examples (i.e.  MATLAB Script – Fractal.vi)?  Let me know if this exemplifies the same behavior.

Ecleamus Ricks, Jr.
National Instruments
Applications Engineer

0 Kudos
Message 2 of 4
(3,252 Views)
Fractal.vi creates an executable that runs with no problem.

0 Kudos
Message 3 of 4
(3,247 Views)
Interestingly, the command window opens momentarily, and then closes.
0 Kudos
Message 4 of 4
(3,243 Views)