updateCANHWAttribute(can_blk_name,attribute_name,attribute_value)
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.
can_blk_name
, is loaded in MATLAB.gcb
command.'txperiod'
.'20'
.% 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');