LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous data in State Machine (Data Flow?)

Solved!
Go to solution

Hello, I am using a state machine running with 3 parallel while loops (including the state machine), and am having trouble synchronizing the sampling loop random number when it hits the "acquire" state. I am currently using local variables, and tried using notifiers as well, but whenever the state machine goes to the acquire state, the PID loop and sampling loop freeze. I am trying to understand the data flow to make this synchronous, and parallel. Any ideas would be appreciated, thank you! The picture displays showed the frozen loops and what the acquire state retrieves...

One Loop.PNG

Download All
0 Kudos
Message 1 of 2
(1,058 Views)
Solution
Accepted by topic author kepham
You have to wire up the timeout to "Wait on Notification" in your Sampling Loop, otherwise that loop is going to freeze when you're not constantly sending notifications.
0 Kudos
Message 2 of 2
(1,022 Views)