LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec.vi Error 2, Memory Full

I am receiving an Error 2, Memory Full error when using the System Exec.vi. Althought there is a support note for a similar issue, it doesnt really apply to the situation I am seeing. I am calling a single program, in the form of:

arg1 arg2

This is working for a while, and then eventually will generate the above error on a XP box, and never runs on a NT box. After I saw the note that arguments are not supported, I tried running them without any arguments, i.e. just:



and still run into this problem on the NT system.

Any suggestions?

Brian
0 Kudos
Message 1 of 4
(3,525 Views)
I ran into a similar problem and the support notes helped alot.

Try the following:
cmd /c arg1 arg2

Jack
0 Kudos
Message 2 of 4
(3,525 Views)
Jack,

Thanks, that resolved the memory error (for now anyway). However, now I am get no standard output from the call. I assume that an easy work around would be to pipe to to a file, then read that. Not the most efficient, but should work.

I suppose the calling of a new command.com somehow nukes that link.

Brian
0 Kudos
Message 3 of 4
(3,525 Views)
As a follow up, I resolved this issue (the standard output issue):

/C command Executes the specified command and returns.
/K command Executes the specified command and continues running.

using /K allows labview to capture the the standard output, and apparently the application terminates cleanly, despite the suggestion that command.com will continue running indefintely.

Brian
0 Kudos
Message 4 of 4
(3,525 Views)