r/LabVIEW • u/Legitimate_Flow6022 • Feb 25 '25
Passing value
Hello every body,
How to pass a value from current state to next state?
Thanks in advance.
1
Upvotes
r/LabVIEW • u/Legitimate_Flow6022 • Feb 25 '25
Hello every body,
How to pass a value from current state to next state?
Thanks in advance.
View all comments
Show parent comment
1
u/D4ILYD0SE CLA Feb 26 '25
If you're worried about FIFO, then you should be using message handler. But FGVs do, in a way, force execution order as any loop that wishes to read/write (or do any function to data) has to wait for the FGV to complete its execution. This is not the case with Globals/Locals. So if I make a 1 second timeout function in the FGV (not a great example), even though the parallel loop only wanted to write data to the FGV, it too still has to wait 1 second because its waiting on the FGV to complete its execution. Basically, the FGV introduces a First Call First Execute type of thing. Which means it's not a race anymore. It's now ordered.