LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I ignore long command line

Our company test platform calls a standalone executable built with LabView. In addition, it adds a long string (more than 256 characters) after the path of the executable.
Problem: Labview crashes when receiving this long command (access violation).

Question: How can make Labview ignore this long command? What I only need is to call to the standalone executable; the exceedind command is not used.

We're using Labview 5.1 under Windows NT.
Also buiding the executable with Labview 6.leads to the same problem.In this case we received the following message: error#3 : "memory.cpp", line 876.

Regards,

Jean-Claude
0 Kudos
Message 1 of 2
(2,458 Views)
LabVIEW usually ignores command line arguments unless the program has been modified to accept them by a windows function call (I believe it's something like GetCommandLine). If the VI has this function, then try deleting it. The other possibility I can think of is that with the 256 characters plus the characters necessary for the the executable is that you're exceeding some windows limit. In older versions of windows, the command line was limited to something like 250 characters total. I don't know what it was in NT. You might try a search of Microsoft's web page. You could also try testing this by trying to start the VI from the NT dos prompt with varying lengths of additional characters to see if you've got an OS limitation. Good luck.
0 Kudos
Message 2 of 2
(2,458 Views)