I am trying to programmatically add a runnable. I am executing the following commands:
% Define and open the model
hModel = 'ExampleName'; open_system(hModel); % Create a default autosar api
autosar.api.create(hModel,'default'); % Get the AUTOSAR properties
arProps = autosar.api.getAUTOSARProperties(hModel); % Add a runnable
add(arProps,hModel,'Runnables','Runnable4');
I get the following error message:
"The AUTOSAR element 'ExampleName', does not have properties 'Runnables'. Valid properties are 'Behavior', 'ReceiverPorts', 'SenderPorts', 'SenderReceiverPorts', 'ModeReceiverPorts', 'ModeSenderPorts', 'ClientPorts', 'ServerPorts', 'NvReceiverPorts', 'NvSenderPorts', 'NvSenderReceiverPorts', 'ParameterReceiverPorts', 'TriggerReceiverPorts', 'appliedStereotypeInstance'."
Why do I get this error?
Best Answer