LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview stopped executing mutli-threaded

Hi I have a serious problem.

I have created a windows keyboard hook DLL and I call this DLL from Labview. Now in labview there are 2 threads (2 completely separated while loops) one for ControlPanel and one for processing data.

Now DLL works with events, so one of the DLL calls freezes the processing thread until there is data available.
Now the ControlPanel thread does what it does and it doesn't care if the other thread is frozen.

So until today everything worked perfectly. Now I'm not sure but it looks that since I've build an application (exe) the vi runs as single threaded VI. Now this means that as soon as the processing 'thread' is stopped the whole application really stops.

Now does somebody knows how to force Labview to use multiple threads? As I don't want to write the whole VI again. And more I would really like to know this.

Peace
Waldemar
Message 1 of 2
(2,596 Views)
Found the answer -> in Call Library Function window the function must be set to reentrant so that the Labview knows the function can be run in any thread.

Peace
Waldemar
Message 2 of 2
(2,586 Views)