LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control & Simulation Loop with changing input signal from outside

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

Download All
0 Kudos
Message 1 of 5
(3,251 Views)

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.

0 Kudos
Message 2 of 5
(3,240 Views)

Solution - local variable. it is possible to put it insede loop and it works

 

 

0 Kudos
Message 3 of 5
(3,218 Views)

@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.

0 Kudos
Message 4 of 5
(3,204 Views)

@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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(3,168 Views)