10-08-2018 08:29 AM
As is shown in the picture, my question is that two tasks in my scene have to run in parallel and both of them are expected to restart when a certain error comes up.
Could my structure run correctly?
Is there any potential problem here AND better methods for my model?
Solved! Go to Solution.
10-08-2018
08:49 AM
- last edited on
01-06-2025
01:22 PM
by
Content Cleaner
Your structure is wrong.
First finished inner loop will wait for second one.
Use state machine/
1st state = initialization
2nd = work. And if error 2->1
10-08-2018 10:20 AM
Understand! Thanks! I learn much from your answer. In my another scene, I want some parallel tasks can stop and restart togheter(the first finished task is expected to wait for the last task), I think your advice and such a structure will be useful. Thx again!
10-08-2018 10:32 AM - edited 10-08-2018 10:33 AM
In fact, in my program, when a certain inner loop is finishing, other inner loop is indicated to be finished and so that the program will end soon if without the outer loop. The main point I want to know clearly is that when the two tasks are both running , are they in parallel if the outer loop exists?thx!
10-08-2018 10:52 AM
As long as there is no data dependency between the loops they will run in parallel. In fact, any node in LabVIEW will run in parallel provided there are no data dependencies between the nodes. A node is ready to execute when all of its inputs are available. This is the core premise of data flowing programming.
06-16-2019 10:39 PM
Well I also thought so until I faced this problem I have right now with mine. If you could check it out that would be great 🙂
https://forums.ni.com/t5/LabVIEW/Running-two-Python-Coded-simultaneously/m-p/3937866