LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

display command line output

In my program LabVIEW calls an executable using a batch file and this executable returns a string. Is there a way for LabVIEW to be able to view this output string?
0 Kudos
Message 1 of 4
(3,294 Views)
Sets the "Wait until compltion?" to TRUE.

This way, the System Exec.vi will wait for the execution to complete and outputs its result through the "Standard output" terminal.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 4
(3,294 Views)
When I set the wait until completion to TRUE the command prompt window hangs and when I set it to FALSE I see that the command prompt only goes to the directory of the batch file, but doesn't run the batch file. Is there something I'm doing wrong?
0 Kudos
Message 3 of 4
(3,294 Views)
hi

I do not know how your batch files run, but you should get it run properly (with "wait until completion = False) before setting it to TRUE.

If your batch files do not even run correctly (with "wait until completion = False), it will hangs when your run the system exec.vi (with "wait until completion = TRUE).

Hope this is not too confusing....

... as it's late now... and Zzzzz..
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 4
(3,294 Views)