ГОСТ Р ИСО/МЭК 10373-6—2015
0
,
0
,
0
,
,
0
trstartin’3-cro3ses->time;
cxeatetime(tlmexes,tx,M,i
0
,trstaxtind,trendind,trstaxtind,trended,a,o,a,o,u,o,a,o,a,o,
0
,
0
,
0
,
0 0
,);
meek;
I
bxe-ak;
)
(Измененная редакция. Изм. A4:2012.)
П Checks monotony on the falLing edge
void monocheck (double *env, double «toutput, double Umax, TIMES *t.lmesp, int xate,ch-ai
type)
l
double timt-0.0;
double tend-0.0;
double compare-0.0,*
double timerO-O.O;
double tliner
1
-C.0;
double volt0-*0.0;
double volt1-0.0;
int counter-C;
ini fiag_mono-0;
switch (type)
<
case ’A’:
<
switch (rate)
l
case
10
6
:
<
while (env[counter|--0)
counter *•;
tinit«tlmesp->tlstart;
t«nd-tlmesp->t2s*.oxt;
while (toutput(counter1<tinlt.)
countecu; //tad hrst value
1
while (toutput(counter|<,t.end)
l
compate-env(countet};
if <eompare<er.v(counter
«1
])
(
twnerO-toutput(counter);
voltG-env[counter1г
while (volt0<env[counter-*2]> H growing values...
(
counterм ;
voIt0-envIcounter!;
1
timer1-toutput(counter ; II ...max.value -» time
it (timer1-timer0>Se-€)
fpxint£(stdout,"Monotony not Iu1111led \n");
1
else
countert-f;
)
I
82