11-05-2024 05:18 AM
Thank you, Ninja, for the tips!
And I'm really grateful I don’t have to stop (just joking about that!). I really appreciate you,altenbach, for continuing to help me through my chaos. I know a lot of this might look like I don’t care, but it’s more that I don’t know yet. Your assistance, and everyone else's, really helps a lot.
I’ll try to reorganize the code. Just to confirm—am I on the right track to get it to work in parallel?
Or did I misunderstand?
11-05-2024 07:57 AM
yes and no.
It runs in parallel, But following DATA FLOW, the plot will only happen after the loops are done. If you want the curves to be plotted while they are being acquired it will not work. However if you want the plot them after acquiring the data, you are in the right track.
You may need to do some research on how to stop both loops together, and ensure that they run at a similar frequency. LabVIEW does not guarantee that each loop will run at the same rate, or one loop will run 2x as fast. You need to invest some time investigating how to do that.
11-05-2024 09:09 AM - edited 11-05-2024 09:12 AM
@MarcusP. wrote:
I’ll try to reorganize the code. Just to confirm—am I on the right track to get it to work in parallel?
Not even close. Get rid of all the inner loops. All you need is a toplevel loop and proper state machine architecture.
(Also, in your faulty code, the two acquisitions could only run in parallel if the subVI is reentrant. We cannot tell that from a picture!)
11-05-2024 10:01 AM - edited 11-05-2024 10:06 AM
ok, I gonna post the code
but now I change I think now I am in the right path... I think
the Right one is in the "normal7"
And how do I do a "reentrant" code ?