Simulink lookup tables

조회 수: 2 (최근 30일)
James
James 2012년 2월 20일
댓글: DORIN Constantin FRUNZETE 2018년 4월 24일
Hello all
I am running a model in Simulink. I want 2 values from the model to input into a look up table while the simulation is running. I tried the dynamic look up table but the it take one value at every time instant. What I want is that these values should get stored as an array(2 columns) and get accumulated in the table during the simulation. Is this possible? could anybody help me out with this?
Thank you! James
  댓글 수: 2
TAB
TAB 2012년 2월 20일
Do you want to change the 'Vector of input values' and 'Table data' properties of lookup table during run time?
James
James 2012년 2월 20일
Yes...that is exactly what I want to do...I was thinking if I could access the internal buffer of the 'To workspace' block and feed it to a dynamic look up table. But I don't know is that is actually possible.

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

채택된 답변

Rick Rosson
Rick Rosson 2012년 2월 20일
You may want to try using the Data Store Memory (DSM) block instead of the Look Up Table (LUT).
You can then use the MATLAB Function block to modify the DSM and/or to create your own LUT based on the DSM.
HTH.

추가 답변 (1개)

James
James 2012년 2월 20일
Hello Rick
Actually I need to use the look up tables because the look up is not based on a particular function or relation. It is simply matching from the table data. I tried using DSM but the problem is I need the data from the DSM to get into the dynamic lookup table as an array(created while running the simulation) and this should constantly keep updating during the simulation time. I hope I am expressing my problem properly.
Thanks James
  댓글 수: 1
DORIN Constantin FRUNZETE
DORIN Constantin FRUNZETE 2018년 4월 24일
Hello James, Did you find any solution to this? I'm facing exactly the same problem.
Thank you in advance!

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

카테고리

Help CenterFile Exchange에서 Nonlinearity에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by