LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview thread

Dear All,

I want to know how labview form threads from a user created VI. I have a VI in which I have a while loop that contains a wait function and some other code both are running in parallel(data independent). I want to know the following things with reagrd to this VI

1. How labview creates threads  form this VI, how many threads will be created?

2. If we are not using any sequence structures inside the loop, whether labview will follow any particular repeated sequence for this code?(Like it will execute wait function first, and code after that ...) or labview will follow  any random order for this threads for each loop iteration?

 

Best regards,
Pradeep Kumar Mishra
love to do engineering
0 Kudos
Message 1 of 3
(2,404 Views)

Hi pkmishra,

 

search the AppNotes on ni.com, I remember some older explanations how the compiler works by building "clumps" of code…

 

For question 2:

Once the code is compiled it will behave always the same, as the code doesn't change between iterations of the while loop. But that wait will always be executed in parallel to the math part!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,386 Views)

Hii GerdW,

Can you please suggest me some links ..

 

Thanks

PKMishra

Best regards,
Pradeep Kumar Mishra
love to do engineering
0 Kudos
Message 3 of 3
(2,366 Views)