필터 지우기
필터 지우기

Initialise a data store memory without using the default value

조회 수: 4 (최근 30일)
Craig Barry
Craig Barry 2012년 12월 9일
Hi,
I am using embedded coder and want a data store memory to read from the non volatile flash on my target. Currently the code can read and write to the desired area of memory during running. However when starting the model it will first run the following:
/* Model initialize function */
void tstnv_initialize(void)
{
/* Start for DataStoreMemory: '<Root>/Data Store Memory' */
SET(tstnv_P.DataStoreMemory_InitialValue);
}
This has the obvious effect of initialising my DataStoreMemory with the 'factory' defaults. How to I disable this feature, and instead allow it to read directly from my memory on the first step. The platform code can assign the value from NV before stepping the model.
Thanks
Craig

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by