发布于 2011-01-03 12:37:04
5楼
Ov = [(Osh - Osl) * (Iv - Isl) / (Ish - Isl)] + Osl
Ov = scaled output value
Iv = analog input value
Osh = high limit of the scale for the scaled output value
Osl = low limit of the scale for the scaled output value
Ish = high limit of the scale for the analog input value
Isl = low limit of the scale for the analog input value
把上面这个式子写成一个FC,就可以了