07-24-2009 04:25 PM
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?
07-27-2009 11:48 AM