How can i modify a model automatically which uses an excel file as an input when this excel file is modified (checksum is modified) ?

조회 수: 1(최근 30일)
Hello everybody,
I am working on a simulink model which should be modified every time an excel file is modified. the idea is to use the getfile checksum function but i can't find a solution to make an automatic check in the model to know if the excel file is modified or not ?
Thanks in advance,

답변(1개)

Titus Edelhofer
Titus Edelhofer 2019년 6월 4일
Hi Lamjed,
does the entire Simulink model needs to be changed or only a block? If it's only a block you could mask the block and add to the mask initialization the call to update (or not).
If it is the whole model, you would need to add this to the model init function (menu File->Model Properties->Callbacks->InitFcn).
Titus
  댓글 수: 3
Lamjed ESSID
Lamjed ESSID 2019년 6월 4일
Hi Titus,
I think second idea of the timer is great, i will try it and put a response here to confirm the solution for the other users.
Thanks a lot.

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

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by