05-24-2015 09:11 AM
Hi,
Could you please advise how is it possible to bring changing signal (like from knob for example, (check the picture)) into control loop from outside.
Control loop takes the knob value that was set when I press the start button, and then it does not react to knob change..
You can find what I need actually in attachments, I used knob just to explain the issue. In attached file only the first value fom the input array are taken by the control loop, It does not changed every 100 ms..
How is it possible to force control loop to take updated inputs from the outside?
Thank you in advance
05-24-2015 09:15 AM
Just drag the knob into the loop and rewire.
No. You can't cause the loop to read new values from a control outside the loop. It violates the dataflow.
05-24-2015 10:17 AM
Solution - local variable. it is possible to put it insede loop and it works
05-24-2015 10:42 AM
@Negvet wrote:
Solution - local variable. it is possible to put it insede loop and it works
BAD.
Local variables should be avoided.
Proves you don't understand LabVIEW.
05-24-2015 08:07 PM
@Negvet wrote:
Solution - local variable. it is possible to put it insede loop and it works
In that example, what is the point of moving the terminal out of the loop anyways? Reading from the terminal is faster and uses less memory.