EasyManua.ls Logo

Pendulum CNT-91 - Page 53

Default Icon
264 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
break;
}
// this is not pacing. fallthrough to next arg
nArg++;
}
case 3: // meas func
{
// copy Meas Func
int n = strlen(s);
if(n>=sizeof(pArgs->Func) /
sizeof(pArgs->Func[0]) )
{
// func is too long
bError = true;
break;
}
strncpy(pArgs->Func, s, n);
pArgs->Func[n] = 0;
// determine if it is period (and if it is valid
// at all)
n = CheckStr(s, n, StrMeasFuncs, nMeasFuncs);
if(n>=0)
{
pArgs->bPeriod = (n < nFirstFreq);
break;
}
// not a function specification. fallthrough
nArg++;
}
case 4: // Reference Value
{
if(1!=sscanf(s, "%lf", &(pArgs->RefFreq)) )
bError = true;
break;
}
case 5: // Delta
{
if(1!=sscanf(s, "%lf", &(pArgs->Delta)) )
bError = true;
break;
}
default:
bError = true;
}
}
// display usage string in a case of error
if ( bError )
Programming Examples
Error Code 4-17

Table of Contents

Other manuals for Pendulum CNT-91

Related product manuals