2-Dimensional lookup table |
Inputs(2) |
i1 i2 |
Parameters(7) |
Column Method NotUsed Index Format NrRows NrColumns |
Default |
Column=2, Method=1, NotUsed=0, Index=1, Format=0, NrRows=1, NrColumns=1, |
Text1 |
File name |
Text2 |
Not used |
Select from |
Components/Blocks/Functions&Tables |
Function |
2-Dimensional lookup table from a text based data file.The first column and the first row are the indexing values of the table, the indicated position specifies the function.
|
Special |
Using the LookUp2D a twodimensional data file can be read, for example, the efficiency of Speed-Torque curves.
Parameter | Value | Function | Column(p1) | 2 | Not used. | Method(p2) | 0 | No interpolation between the data points. | Method(p2) | 1 | Linear interpolation between the data points. | Repetitive(p3) | 0 | No repetition of the data points. | Repetitive(p3) | 1 | The data points are repeated with the modulus equal to the highest value in the first column. | Index(p4) | 0 | The inputs i1 and i2 of the Lookup2D block are used as index in the table. The input values i1 and i2 are rounded to its round integer value, which indicates the position in the table. In this case the values in the first column and first row are ignored. | Index(p4) | 1 | The inputs i1 and i2 of the Lookup2D block are used as index in the first column and first row of the table. | Format(p5) | 0 | Standard format. | Format(p5) | 1 | Matlab-Fortran format. | Format(p5) | 2 | Standard format, with preceding format info. | Format(p5) | 3 | Matlab no EOLN |
Format(p5)=0 Standard format.
0 | x1 | x2 | x3 | .. | xn | y1 | f11 | f12 | f13 | .. | f1n | y2 | f21 | f22 | f23 | .. | f2n | y3 | f31 | f32 | f33 | .. | f3n | y. | .. | .. | .. | .. | f.n | ym | fm1 | fm2 | fm3 | fm. | fmn |
Format(p5)=1 Matlab-Fortran format, where fxy and fyx are changed.
0 | x1 | x2 | x3 | .. | xn | |
y1 | f11 | f21 | f31 | .. | fn1 | |
y2 | f12 | f22 | f32 | .. | fn2 | |
y3 | f13 | f23 | f33 | .. | fn3 | |
y. | .. | .. | .. | .. | fn. | |
ym | f1m | f2m | f3m | f.m | fnm | |
Format(p5)=2 Standard format, with preceding format info. This first line is skipped.
Format info like m and n | |
0 | x1 | x2 | x3 | .. | xn | y1 | f11 | f12 | f13 | .. | f1n | y2 | f21 | f22 | f23 | .. | f2n | y3 | f31 | f32 | f33 | .. | f3n | y. | .. | .. | .. | .. | f.n | ym | fm1 | fm2 | fm3 | fm. | fmn |
|