How can i set the Simulink lookup table output limit

조회 수: 6 (최근 30일)
환곤
환곤 2023년 1월 6일
답변: Nehemiae 2023년 3월 8일
i want to get data from 1-D Lookup table in simulink with includeing extrapolation method and only plus side.
but i don't know how can this.
Ex)
1) LUT Data
X : [0.7, 0.8, 0.9, 1, 1.1]
V : 1.5, 1.4, 1.3, 1.2, 1.1]
2) Data INPUT and result (Current)
2-1) INPUT : 1 --> OUTPUT : 1.3
2-2) INPUT : 16 --> OUTPUT : -~~~ (Extrapolation method)
if Extrapolation method result is lessthen zero, I want to get result 0.
2-3) INPUT : 0.2 --> OUTPUT ; +~~~(Extrapolation method)
i was tryied Data Types - Output Minimum and Maximum Seting but that is not working. (Using verstion is 2015b)
Please letme know this solution.
  댓글 수: 4
Nithin
Nithin 2023년 1월 13일
What problem are you exactly facing with the parameters? Are you receiving any error messages?
환곤
환곤 2023년 1월 16일
I tried setting "Table Data Maximun" and "Table Data Minimum" parameters.
Like below picture
And goto some values in Lookuptable, dosen't working "Maximum","Minimum" parameter.
LUT is working and nothing error. but can't applying parameters.

댓글을 달려면 로그인하십시오.

답변 (1개)

Nehemiae
Nehemiae 2023년 3월 8일
Hello,
The Output Minimum and Maximum properties in the 1-D lookup table, are the information stored for further optimizations done, such as:
  • Parameter range checking.
  • Simulation range checking.
  • Automatic scaling of fixed-point data types.
  • Optimization of the code generated from the model.
It does not limit the output of the lookup table as such, and hence a saturation block with upper limit being inf and the lower limit being 0, can be used.
The documentation on 1-D lookup tables (https://www.mathworks.com/help//releases/R2021a/simulink/slref/1dlookuptable.html), specifically the section under “Output Minimum – Minimum value the block can output”, can be explored to understand the underlying optimisations where this property is used.

제품


릴리스

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by