LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop in whlie loop

How can I change this programm, that i will always replace the variable C instead of adding it to the value from the last while loop.

It is supposed to calculate a new C because the temperature T0 and the pressure P0 are changing. Right now it will always add the value to the previous value of C.

0 Kudos
Message 1 of 2
(2,854 Views)

Hi joschilly,

 

remove the add function (and the feedback node next to it).

Edit: after digging deeper into that BD you should replace the feedback node by a shift register and initialize that register with a zero…

In the next step you should replace that formula node by "real" LabVIEW functions (multiplication, power function), followed up by removing the FOR loop. Use polymorphism instead!

 

When you need help for that task you really should take the free online courses to learn LabVIEW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,838 Views)