Chapter 3: commands and programming, Calibrate probe examples – Casio EA-100 Commands and Programming User Manual
Page 36

58
Chapter 3: Commands and Programming
Coefficient Parameter
This parameter specifies the coefficients of the calibration equation being
used. Two coefficients (
a
,
b
) are specified for the linear equation (
ax
+
b
),
while three coefficients (
a
,
b
,
c
) are specified for a quadratic equation (
ax
2
+
bx
+
c
).
CALIBRATE PROBE Examples
Example 1: Calibrating the light probe to a reference value
The light probe can perform sampling at a distance of one to four meters
from a light source. The following example uses a light source with a bright-
ness of 800 at one meter and 200 at four meters, to produce calibration
values based on changes in brightness between those two points.
{1,0}
→
List 6
↵
Send(List 6)
↵
{1,1,1}
→
List 6
↵
Send(List 6)
↵
ClrText
↵
”HOW MANY POINTS”?
→
N
↵
Seq(0,X,1,N,1)
→
List 2
↵
Seq(0,X,1,N,1)
→
List 3
↵
For 1
→
I To N Step 1
↵
ClrText
↵
”ENTER BASE VALUE”?
→
B
↵
B
→
List 2[I]
↵
{3,0.01,5,0,0}
→
List 6
↵
Send(List 6)
^
Receive(List 4)
↵
(Sum List 4-Min(List 4)-Max(List 4))
÷
3
→
List 3[I]
↵
Next
↵
LinearReg List3,List2
↵
”FINISHED”
↵
”A=”:a
^
”B=”:b
↵
Values a and b obtained by this program can be set using Command 9 before
performing actual sampling.
{9,Channel,1,a,b}
→
List 6
Send(List 6)
Specifies light probe connected to Channel
1 (CH1).
Calibration of probe for two-point data for
this example.
Input of reference value. At this time, light
probe should be in state that will be experi-
enced during sampling.
(display halt)
(display halt)
(“Channel” is the specification of the chan-
nel to be used for sampling.)