11-08-2014 06:50 AM - edited 11-08-2014 06:50 AM
Dear Freinds!
Why my running program doesn't update automatically when I change some control in the front panel?
i have to abort and run again a VI after that I change any control in the FP. After thge new run everithing works fine.
Thank you for your help!
11-08-2014 07:21 AM
11-08-2014 08:01 AM
Sorry, my bad.
Thank you for your answer!
I attach a picture about my VI. It is an accelerometer. I know that tha dataflow takes time but it doesn't change affter five minutes that I modify the controls. My similar programs are much more adaptive.
11-08-2014 08:15 AM
Dataflow does not take any excessive amount of time. The issue in your code is dataflow! Sir GerdW was exactly right (or at least his magic ball was).
All of the control terminals outside the loop are read before the loop starts executing. The data in those controls is passed to the loop and reamins the same until the next time the VI runs. If you want the program to respond to chnges in the controls while it is running, the control terminals must be inside the loop where they will be read on each iteration of the loop.
The basic principle of dataflow is that any node may run only when it has received data on all its inputs and that its outputs will be available only after the node has completed execution. The node in this case is the while loop.
Lynn
11-08-2014 10:08 AM
I understand now!
I have put the controls in to the while loop and that solved the problem.
This was a huge help for me!
Thank you both!
11-08-2014 11:42 AM - edited 11-08-2014 11:44 AM
@GerdW wrote:
my magic ball says: You need to THINK DATAFLOW!
Way to go! pick a number for that magic ball though! (I reserve 😎 Or, "The Paisley Magic ball Proclaims...." would do
11-08-2014 02:01 PM
Or you can borrow Jeff's when he's not looking.
11-08-2014 05:39 PM
@billko wrote:
Or you can borrow Jeff's when he's not looking.
That will not happen.