10-16-2014 02:56 PM
Hello. I'm trying to model some mathematical equations in LabVIEW and trying to the find the integral using feedback node.
Here is the equation I'm trying to model:
i = integral([VBATT - i*R - i*(dL/dt)]/L), where L is a function as well.
At the output of i I get 0. I'm assuming I have to put an input into the feedback loop but I'm not sure what to do here. Any help would be appreciated. Attached is my VI as well.
10-16-2014 07:03 PM
Why are you using a feedback node?
Feedback nodes are for storing information from one iteration and using it in the next. Since you don't have any loop and your VI runs once, it will return the default value that the feedback node is initialized with. Thuse zero.
10-17-2014 09:19 AM
@OriolesFan wrote:
Why are you using a feedback node?
Feedback nodes are for storing information from one iteration and using it in the next. Since you don't have any loop and your VI runs once, it will return the default value that the feedback node is initialized with. Thuse zero.
The i I solved for is needed as an input. Those are differential equations.
I think I did this wrong actually. I modeled these equations in Simulink but used a transient response to get the results, so I think I need some other module in my LabVIEW to do this. I was trying to take my equations from Simulink and trying to model it in LabVIEW.