필터 지우기
필터 지우기

Using an enumerated data type defined within a MATLAB package folder with a Simulink.Parameter object

조회 수: 1 (최근 30일)
Hi, I am trying to use a Simulink.Parameter object with an enumerated data type in a Simulink model (R2011b). I have attached the files I am using.
In order to reproduce the problem I am facing, please try the following steps:
1. Extract all files to a single folder (e.g. <ROOT>)
2. Launch MATLAB R2011b and navigate to this ROOT directory
3. Type 'init' at the command line. A Simulink.Parameter object called SIMULINKPARAM should be instantiated in the base workspace
4. Open the included sample.mdl Simulink model, and enter 'SIMULINKPARAM' as the value of the constant block
After entering the value of the constant block, I get the error message shown in the attached file 'screenshot.jpg'.
Is there any reason for this error message to occur? Why is a Simulink.Parameter object with an enumerated datatype throwing this error in Simulink, only when the enumeration is defined inside a package folder?
Regards.

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by