LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error using System exec.VI calling a selfexecutable matlab-file

I got a err. message (no.2) when I try to call a self-
executable matlab file. I use LView 6.1 and WinNT.
0 Kudos
Message 1 of 2
(2,681 Views)
First of all, Error 2 is NOT a memory error (as shown in the error explanation in the error indicator). It's the code returned from the command prompt. In this case it's "File not found".

Also, I've had mixed results using the system exec vi. I have a vi that used it to run a batch file for quite some time, then it suddenly started returning Error 2 - although nothing had changed. A thread here suggested changing the input to "command.com \c file.exe"

Check out this thread for more suggestions.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000005D400000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=system+exec+error+2&USEARCHCONTEXT_QUESTION_S=0

Tim
0 Kudos
Message 2 of 2
(2,681 Views)