S
Well the Idea which you mention seems to me particle and to calculate average of measurments values is exactely same as you mention.
It's a cool idea that one have several static runing averages of each time interval and work with structures.I talk with another guy we disscuss Scenario_A & i think Scenario A can be implimented on AT39 machines with Circular_Buffer idea to use array,that's mean when we will use array then Laufindex(pointer) will be important to calculate the time average values of measurments,like when i worked with AT39 controller then my C codes have two parts like KOP Initialisation and KOP cyclic part,so KOP_Initialisation will be look like this
Array [1][1]='a';
Array [2][1]='b';
Array [3][1]='c';
Array [4][1]='d';
Array [5][1]='e';
Array [6][1]='f';
Array [7][1]='g';
Array [8][1]='h';
Array [9][1]='i';
Array [1][0]='A';
Array [2][0]='B';
Array [3][0]='C';
Array [4][0]='D';
Array [5][0]='E';
Array [6][0]='F';
Array [7][0]='G';
Array [8][0]='H';
Array [9][0]='I';
SetVar (Array_i,0); //SetVar is µ.C TOS function
SetVar (Array_j,0);
SetVar (Array_1,' ');
SetVar (Array_2,' ');
SetVar (Array_3,' ');
i=0; // Laufparameter auf 1 setzen
j=0;
}
and KOP_Cyclic part will be like this
if (IsKeyPressedNew(2)) // IsKeyPressedNew is Time Oertating System(TOS) function µ.C specific)
{
SetVar (Array_i, i);
SetVar (Array_i1, i+1);
SetVar (Array_i2, i+2);
SetVar (Array_j, j);
SetVar (Array_1, Array [i][j]); // Inhalt des Array auf Bildschirm schreiben
SetVar (Array_2, Array [i+1][j]); // Inhalt des Array auf Bildschirm schreiben
SetVar (Array_3, Array [i+2][j]); // Inhalt des Array auf Bildschirm schreiben
i=i+3;
if (i>=9) {i=1; j=1-j;}
} // End if (IsKeyPressedNew(2))
}
*****************************************************************************
May be it's seems to you little bit strange,but as you know all µ.C's guys have their own environments.
This is just an example how we can realize ring buffer with AT39 type of µ.C's,but as i saw your idea is also original idea,but guy with whom i m working told me try to work with arrays and Scenario A as you mention as
"Messwerte in einem Ringspeicher gespeichert und zur Darstellung
berechnet man den Mittelwert über n Elemente in dem Ringspeicher. Das sind dann die X Minuten Mittelwerte."
Any way i just want to share my idea with you,so you can also see or perhaps that also help some who like to work with such situation later on....as i said any suggestions,comments or even objections always most well come....i love when some one criticised on me so one can improve him/herself.
Thanks for your supports.
V.G
Slfzn