LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview pda module multithread

Hi,

Im trying to build a pda application, in which i read speech from microphone, do some filtering and display the results in real time. I have C functions written for filtering and built into dll, let me call this function Process(). Second function updates the display buffer with newer processed result, function Display(). Because displaying the result takes up lot of time and i want the application to run in real time, I want to keep doing the processing and display the result only once in 1s.I wanted to know if i can have two different function calls, in the first i can call the function Process() and it keeps running in the background continously. The second function call which invokes the Display() function every 1s once and updates the buffer used to display.and if i can set the priority of this thread to be lesser than function 1. Its fine if i miss displaying once, but cannot afford to delay processig function.

I have set the dll call configuration as 'run in any thread'. But im not sure if it is really running in two different threads. The function call Process() does not return back to labview until the application is closed, andDsiplay() function has to be calledevery 1s.

But what i notice is, the GUI stops responding once Process() function is called. This could be because the function never returns.

My question is, is there a way in which i can make that two function calls can execute simulataneously, by which i mean, when Process() function sleeps, or waits for data, Display() function can be executed?

 

 

0 Kudos
Message 1 of 2
(2,529 Views)
What OS are you using?  I know that Windows CE does not support multithreading but I am unsure about the other PDA OS's.  Have you tried putting your function call into a subVI and then changing the Priority of this VI in VI Execution properties? (File > VI Properties > Execution > Priority).  This might help do what you want to do...
0 Kudos
Message 2 of 2
(2,509 Views)