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

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

Summary

Details

Page properties
Content
... ... @@ -21,12 +21,11 @@
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 -
25 25  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:
26 26  
27 27  Step1: Get k(Slope) for the line: k=(y2-y1)/(x2-x1) = (10-0)/(20-4) =10/16= 0.625
28 28  
29 -Step2: Get real value (y):
28 +Step2: Get real value ( y ):
30 30  
31 31  k=(y-y1)/(x-x1)  
32 32  
... ... @@ -83,5 +83,4 @@
83 83  
84 84  
85 85  
86 -
87 87