Hello aungkm@outlook.com,
Regarding the CAN ISR usage, you can use the TX Complete event for every example in which you are sending something over CAN. Something that you must be aware is that the ISR block should be executed after the CAN Config block. You can view this either in the executed code, either by editing the priority in the model - you can do this by right clicking on a block -> Properties -> Priority. Note that lower number = HIGHer priority. Another thing you could do is hit CTRL + D while in the model, and watch the order that Simulink gives the blocks (e.g.: Config block has 0:12, and CAN ISR block has 0:18 - so in this example, the config block would be the 12th block for which code will be generated, while ISR will be the 18th).

I have attached a working model here.
Note: a TX complete event will be triggered after each CAN Send, so the toggle of the red LED in the example attached is actually made up of more toggles, as we execute 3 consecutive CAN writes.
(initial LED state - off)
1st stage - 3 frames sent
CAN Send - LED toggle to ON
CAN Send - LED toggle to off
CAN Send - LED toggle to ON
2nd stage - other 3 frames sent
CAN Send - LED toggle to off
CAN Send - LED toggle to ON
CAN Send - LED toggle to off
[etc]
Kind regards,
Razvan.