LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labiview dll parallel code

Labview 2012 in PXI (PXIe8135) with WIndows 7.

We are developing application based in some labview timed loop work in parallel with external DLL (c, mingv based) . DLL was imported in Labview.

External DLL create some thread but this in Labview working sloowely.
Maybe labview different schedule internal dll THREAD ?

0 Kudos
Message 1 of 5
(2,391 Views)
Hi.

If i can help you, i have seen that in veristand or in labview timed loop has a higher priority than while loop.
I thonk the thread created in the dll is similar to a while loop.

So the fact that dll thread executes slowly is not strange.

Try to replace timed loop by while loop and check the priority and also the call parameters of the dll node (run in other thread is better than run in ui thread in ypur case).

Best regards.
R.Kaszubiak
0 Kudos
Message 2 of 5
(2,347 Views)
Hi.

If i can help you, i have seen that in veristand or in labview timed loop has a higher priority than while loop.
I thonk the thread created in the dll is similar to a while loop.

So the fact that dll thread executes slowly is not strange.

Try to replace timed loop by while loop and check the priority and also the call parameters of the dll node (run in other thread is better than run in ui thread in ypur case).

Best regards.
R.Kaszubiak
0 Kudos
Message 3 of 5
(2,345 Views)

Hi

By default the Call Library Function Node runs in the UI thread and is having to fight your application for time in that thread. try checking the Run in any thread checkbox and see if that helps your application

 

Mike

0 Kudos
Message 4 of 5
(2,329 Views)

Hi,

already set any thread in DLL execution.

0 Kudos
Message 5 of 5
(2,316 Views)