LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to execute a TCL shell and issues commands to that shell as a test progress.

I am trying to create a labview application with a third party product. It uses a tcl shell for automation
I like to execute a TCL shell, load the third party lib
or dll file and then issues commands to the shell as the test progress in labview. I am very new to labview
and appreciate any help that I can get.
0 Kudos
Message 1 of 2
(5,023 Views)
Son,
We don't have any VIs that would be ready to use with TCL. You can use Call Library Node Function to call the dll you create with TCL, and this is the same for calling any external dll.
To execute commands from LabVIEW, you can use the Syst Exec. VI, located under Communication palette. However, I am not sure if you can continuously send these commands. The attached is an example that will send a single command to TCL. It was created using LabVIEW 6.0.2.
This example demonstrates one method of invoking Tcl scripts from LabVIEW. It uses the System Exec.vi and string functions to invoke the wish interpreter and pass command line arguments.
LabVIEW Files:
Run Tcl Script.vi: This VI runs Tcl scripts by invoking the wish interpreter and passing command
line arguments to the script using string functions.
Tcl Files:
Tcl_Dir.tcl: A Tcl script that creates a new directory in the current directory. The name of the directory is taken from the first command line argument. A text file is created in the new directory with the same name as the directory.
Tcl_Reverse_String.tcl: A Tcl script that takes in a string as a command line argument, reverses it, and prints it to standard out.
Tcl is required to be installed on your system for this example to work. It can be downloaded from http://www.tcl.tk
I think that TCL supports activeX. If this is correct, then the best solution would be to create a DataSocket interface for your TCL shell, and then use LabVIEW DataSocket VIs to communicate between the two.

Zvezdana S.
National Instruments
0 Kudos
Message 2 of 2
(5,023 Views)