11-11-2014 07:13 AM
Hi NI community
I'm currently working on a VI where I run mainly calculations. I use the formula noda structure which I have a little experience with. I did insert some quiet easy formulas, but when I run the VI something happens which I don't understand. Here's the Formula Node:
This is the problem:
consider the first iteration and don't spend attention to H1,H3 and H4.
In the first iteration my input values are V201 = 0 and pw = 4. So H2 should be calculated to be = 0 (this also happens when I run the VI in highlight execution).
If H2 = 0 also Q1 should be = 0 (also this happens when I run the VI in hightlight execution).
In the next step occurs the problem when I want to calculate VRw2. It should take VRw1 (which is 0 the first iteration) and add it with 0.25 times Q1. Because Q1=0 this should give VRw2 = 0. Instead of that it calculates somehow that VRw2 = 25. For some reason it sees Q1 as 100 instead of 0. In the next iterations it always adds +25 to VRw2.
Has someone an explanation how this can happen and how I can fix this?
I will add the VI (LV13) as attachment so you can try some things out if you want.
Solved! Go to Solution.
11-11-2014 07:33 AM
When in doubt, read the help...Formula Node. There is a special note in there.
Note The Formula Node accepts only the period (.) as a decimal separator. The node does not recognize localized decimal separators.
11-11-2014 08:24 AM
I already thought it would be something small like that, but couldn't find it out. Thank you Crossrulz.