Waveform filter programs
◆
convert_v_to_Pres_PSI_0_2500()
double DDAS3::convert_v_to_Pres_PSI_0_2500
(
double
volts
)
Definition at line
405
of file
sigscale.cc
.
Referenced by
convert_to_display_units()
.
406
{
407
double
dPSI;
408
409
if
( volts < 0.1 )
410
// clip value to -400PSI if out of range e.g.sensor faulty
411
return
-400.0 ;
412
413
else
if
( volts > 1.8 )
414
// clip value to 6000PSI if out of range e.g.sensor unplugged
415
return
6000 ;
416
417
dPSI = (volts - 0.1996) * 3131.263 ;
418
419
//Should there be an error condition??
420
//if ( x <= -1.0 || x >= 1.0 ) x = 0 ; /* error condition */
421
return
dPSI;
422
}
// double convert_v_to_Pres_PSI_0_2500(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