LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

launch expect from System Exec.vi

I tried using System Exec.vi to run some expect scripts but got an error message saying "tclsh80 generated errors and will be closed
by windows. You will need to restart the program".

I use window 2000 and tclsh80 with expect-5.21.

Under the command line in System Exec.vi window. I put "path\tclsh80.exe" "path\test1.tcl".

Thanks in advance.

-Kevin
0 Kudos
Message 1 of 3
(2,813 Views)
Hi Kevin -

As the error message indicates, it seems to be a problem with your TCL script. Can you run this guy independently of your LabVIEW program? Can you run any TCL scripts? I would try to trim down the current script to its simplest form and work your way back. There are several posts on DevExchange (exchange.ni.com) about using TCL & LabVIEW together,
you might want to follow their suggestions. There is nothing incorrect about your approach, System Exec literally hands over operation directly to the OS.

good luck
ben schulte
national instruments
0 Kudos
Message 2 of 3
(2,813 Views)
Hi Ben,

The tcl file is only a hello file and it runs fine
under command line. I can also run it using
tclsh83.exe but have problem when using tclsh80.exe
with expect.

-Kevin
0 Kudos
Message 3 of 3
(2,813 Views)