Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69620

Looking for a way to synchronize two subview at some point

$
0
0

Hi all,

  I have two individual subview, says SVA and SVB. They are place in the same code so they will run in parallel. SVA performs heave IO operation (read data from a big file) while SVB will run some code first, then it will use the data in read by SVA. Since SVA and SVB runs in parallel, it is hard to tell when SVB is able to read the data from SVA so I add a timer to wait some times before it reads the data from SVA.

 

the main program is like

 

 

in SVB, the code is like the follow, I add a timer to delay 35 secs so SVA will finish.

 

 

 

But if I do this way, the waiting time is not precise, if we set too short time, it will not works. If we set too long time, it works but wait too long. I am thinking to use sequence to resolve the problem

 

 

will this will solve the problem but since the first part of SVB also takes quite a long time. If I make SVA and SVB in sequence, it also wait so long to finish the code. I am thinking if it is possible to run SVA and SVB in parallel but in some way SVB can check if SVA finish so to advance to next step.


Viewing all articles
Browse latest Browse all 69620

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>