Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to separate the GUI interface from program execution in Labwindows?

Hallo,
I am trying to combine TCL interpreter with Labwindows in order to executes tcl scripts with user implemented C functions that interact with devices in Labwindows. The idea is from another hand to have the ability to control my program from GUI and in the same time to be able to execute command scripts that will take a more control on the device interface.
I can invoke the tcl interpreter for a single command or not so complicated script. When I execute a simple loop from the script my user interface stop to respond to any messages until interpreter exits the loop.
The question is how to separate both the GUI and the program that executes in background in my case the tcl interpreter?


Thanks,
Nikolai
0 Kudos
Message 1 of 2
(3,276 Views)
Probably the best solution would be to do the TCP loop in another thread. For help with multithreading programming, see the CVI Multithreading Overview (cvi\bin\MultithreadingOverview.pdf) and the multithreading example programs (cvi\samples\utility\Threading).

Best Regards,

Chris Matthews
National Instruments
Message 2 of 2
(3,276 Views)