필터 지우기
필터 지우기

how to import enum into data dictionary

조회 수: 9 (최근 30일)
Magnus Persson
Magnus Persson 2018년 2월 5일
답변: Niwin Anto 2018년 2월 20일
I'm trying to import my existing enum defintion file (.m) but import function tells me "0 items were successfully imported."
.m file contains following enum definintions listed below
Simulink.defineIntEnumType('eAlarm', ... {'On','Off','Invalid'}, ... [1;2;3], ... 'Description', 'Alarm state', ... 'DefaultValue', 'Invalid', ... 'HeaderFile', 'Enumerations.h', ... 'DataScope', 'Exported', ... 'AddClassNameToEnumNames', true, ... 'StorageType', 'int16');

답변 (1개)

Niwin Anto
Niwin Anto 2018년 2월 20일
Your '*.m' file contains only Enumerated Data type definition.There in no variables created using this Enumerated Data type. That's why it is showing "0 items were successfully imported".
You can import Enumerated Data type into the data dictionary. Refer the link followed. https://in.mathworks.com/help/simulink/slref/simulink.data.dictionary.importenumtypes.html

카테고리

Help CenterFile Exchange에서 Manage Design Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by