le 04-18-2011 01:38 AM
Generating the Formula of selected values with this logic!
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a9 a11 a12 a13…….a100 values
A5^=Summation (a2+a3+a4)-Summation(a6+a7+a8) /100
If “i” is the number of data values:
Résolu ! Accéder à la solution.
le 04-18-2011 01:58 AM
For loops, Index array, Array subset, Array sum and division.
/Y
le 04-18-2011 02:13 AM
Thank you for the reply!
Please see the VI attached.
In my VI I calculate A6^ value only how can I use the formula for many values or generalize it?
le 04-18-2011 03:01 AM
I have tried two methods now, in my new VI.
1. If I am using a large data set I do not have to choose the value with index array everytime
for the value in concern it automatically:
takes the summation of first values of the current minus the summation of next three values, divide by 100
2. Is there any simple way?
Please see the attached!
le 04-18-2011 03:09 AM
Good start. Now you can add an Index-control to control your A[i]. The first element of the Index array will be i-3 and the 4th i+1, the others dont need any inputs as they per default will be [previous+1].
If you want the answer as an array you'll just need to wire your restlt to the for loop border.
/Y
le 04-18-2011 03:40 AM
How can I introduce index? Please can you modify my VI and show.
le 04-18-2011 06:04 AM
Minor modification to your 3rd loop/try.
/Y
le 04-18-2011 11:34 PM
Sorry can you send the modification in LV2009.
le 04-19-2011 01:20 AM
2009 version
/Y
le 04-19-2011 03:13 AM
Thanks!