Syntax

updateCANHWAttribute(can_blk_name,attribute_name,attribute_value)

Description

updateCANHWAttribute updates the hardwarerecord.db entry for each toRTDBm/fromRTDBm block contained within the DBC CAN block, can_blk_name. Use this function after configuring a DBC CAN block and before generating an RTDB associated with the model.

Assumptions:

Arguments

can_blk_name
Block name, specified as a string as returned by the gcb command.
attribute_name
Attribute to be updated, specified as a string. For example, 'txperiod'.
attribute_value
Value to be set for attribute_name, specified as a string. For example, '20'.

Example:

% m is the name of the model 
open_system(m);
% set GCB as the relevant DBC CAB block
can_blk_name = gcb;
updateCANHWAttribute(can_blk_name,'txperiod','20');

See also: