Last modified by Mengting Qiu on 2024/09/02 17:23

From version 5.1
edited by Mengting Qiu
on 2024/09/02 12:01
Change comment: There is no comment for this version
To version 4.1
edited by Mengting Qiu
on 2024/09/02 11:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -21,11 +21,12 @@
21 21  1. Y axis is the real value, from 0 ~~ 10 meters
22 22  1. X axis is the probe output , from 4~~20mA
23 23  
24 +
24 24  We use two points to make the linear line: point1(x1,y1) = (4,0), point2(x2,y2)= (20,10). Since the reading is linear, all probe output and real value is on this line, so we can calculate the real value by probe output in two steps:
25 25  
26 26  Step1: Get k(Slope) for the line: k=(y2-y1)/(x2-x1) = (10-0)/(20-4) =10/16= 0.625
27 27  
28 -Step2: Get real value ( y ):
29 +Step2: Get real value (y):
29 29  
30 30  k=(y-y1)/(x-x1)  
31 31  
... ... @@ -82,4 +82,5 @@
82 82  
83 83  
84 84  
86 +
85 85