Example

 

We can test the Lookup Table block with the Colink model shown in the below figure. Let’s make a sin() function using Lookup Table block instead of the sin() function block. The Sine block is configured to a frequency of 1rad/sec and an amplitude of 90.

 

radian

value

0

0

30*π/180

0.5000

60*π/180

0.8660

90*π/180

1

Table 1  input values and output values for Lookup Table block

 

Figure 1  colink model

 

Figure 2  values in Lookup Table block

 

(a)  Interpolation-Extrapolation

 

(b)  Interpolation-Use End Values

Figure 3  Results according to the Lookup method