wallyabcd Posted June 29, 2007 Report Share Posted June 29, 2007 Hi; I am calling a computation DLL(written in Labwindows) from labview RT. The DLL is marked as reentrant and given it's own thread. When certain fitting functions are called from DLL library, it seems to block the response from the rest of the threads momentarily. I was under the impression that this won't happen as the DLL has it's own seperate thread and that under all circumstances, labview RT will allocate some time to all six base threads. This doesn't appear to be so, in the case of a DLL call. Anyone knows how to force labview RT (PharLap) to do this ? Thanks. Walters Spinx Quote Link to comment
Grampa_of_Oliva_n_Eden Posted June 29, 2007 Report Share Posted June 29, 2007 QUOTE(wallyabcd @ Jun 28 2007, 05:03 AM) Hi;I am calling a computation DLL(written in Labwindows) from labview RT. The DLL is marked as reentrant and given it's own thread. When certain fitting functions are called from DLL library, it seems to block the response from the rest of the threads momentarily. I was under the impression that this won't happen as the DLL has it's own seperate thread and that under all circumstances, labview RT will allocate some time to all six base threads. This doesn't appear to be so, in the case of a DLL call. Anyone knows how to force labview RT (PharLap) to do this ? Thanks. Walters Spinx Is your call configured to run in the UI thread (yellow vs orange node)? Ben Quote Link to comment
crelf Posted June 30, 2007 Report Share Posted June 30, 2007 QUOTE(Ben @ Jun 29 2007, 01:07 AM) (yellow vs orange node) ...vs white Quote Link to comment
wallyabcd Posted July 10, 2007 Author Report Share Posted July 10, 2007 Hi Ben; The code is configured to use the other1 thread in Labview RT and not the UI thread and the function calls are marked as reentrant as we call them through a sequencer and there is no risk of multiple calls... Therefore the icon is colored yellow... QUOTE(Ben @ Jun 28 2007, 03:07 PM) Is your call configured to run in the UI thread (yellow vs orange node)?Ben Quote Link to comment
Grampa_of_Oliva_n_Eden Posted July 10, 2007 Report Share Posted July 10, 2007 QUOTE(wallyabcd @ Jul 9 2007, 09:15 AM) Hi Ben;The code is configured to use the other1 thread in Labview RT and not the UI thread and the function calls are marked as reentrant as we call them through a sequencer and there is no risk of multiple calls... Therefore the icon is colored yellow... Woops! You said that in your original Q! Are you using unique VI's to call the dll? What does the Execution trace toolkit show? Ben Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.