Waveform filter programs
◆
convert_v_to_Pres_MPa_0_17236()
double DDAS3::convert_v_to_Pres_MPa_0_17236
(
double
volts
)
Definition at line
475
of file
sigscale.cc
.
Referenced by
convert_to_display_units()
.
476
{
477
double
MPa;
478
479
if
( volts < 0.1 )
480
// clip value to -2.700MPa if out of range e.g.sensor faulty
481
return
-2.7000 ;
482
483
else
if
( volts > 1.8 )
484
// clip value to 42.000MPa if out of range e.g.sensor unplugged
485
return
42.000 ;
486
487
MPa = (volts - 0.1996) * 21.589295 ;
488
489
//Should there be an error condition??
490
//if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
491
return
MPa;
492
}
// double convert_v_to_Pres_MPa_0_17236(double volts)
Here is the caller graph for this function:
DDAS3
Generated on Mon Aug 21 2023 17:36:35 for Waveform filter programs by
1.8.14