LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A silly question about Gaph XY

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,, 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?

MarcusP_0-1730804920145.png

Or did I misunderstand?

0 Kudos
Message 21 of 24
(124 Views)

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. 

 

 

0 Kudos
Message 22 of 24
(113 Views)

@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!)

 

 

0 Kudos
Message 23 of 24
(100 Views)

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 ? 

0 Kudos
Message 24 of 24
(90 Views)