Main Content

removeSignal

Remove Simulink block signal from AUTOSAR mapping

Since R2020b

Description

example

removeSignal(slMap,slPortHandle) removes the Simulink® block signal associated with outport port handle slPortHandle from AUTOSAR mapping.

Examples

collapse all

In example model autosar_swc_counter, remove Simulink signal equal_to_count, which originates in the RelOpt block, from the AUTOSAR component signal mapping.

hModel = 'autosar_swc_counter';
openExample(hModel);
slMap = autosar.api.getSimulinkMapping(hModel);

portHandles = get_param('autosar_swc_counter/RelOpt','portHandles');
outportHandle = portHandles.Outport;
removeSignal(slMap,outportHandle);

Input Arguments

collapse all

Simulink to AUTOSAR mapping information for a model, previously returned by slMap = autosar.api.getSimulinkMapping(model). model is a handle, character vector, or string scalar representing the model name.

Example: slMap

Outport port handle for a Simulink block signal to remove from AUTOSAR mapping. Use MATLAB® commands to construct the outport port handle. For example, for a Relational Operator block named RelOpt:

portHandles = get_param('autosar_swc_counter/RelOpt','portHandles');
outportHandle = portHandles.Outport;

Example: outportHandle

Version History

Introduced in R2020b