Hello juliana.rojas3062@ctag.com,
You can save this new block in a new mdl if you want -- you can start by copying our block, but don't forget to break the link between them (you can do this by right clicking on the new block -> Library link -> Disable Link and then again Library Link -> Break link, as you can't access break link the first time).
From what I understand, you don't need to modify the FCAN configuratin block, but the FCAN Send. There are some basic parts for every block - to put it briefly you have:
- the Simulink block (where you can edit the mask parameters -- by going to edit mask on the block)
- a mex file which determines your inputs and outputs (you link this mex file by right clicking on the block -> block parameters -> S-function name)
- a tlc file where you control what code gets generated by that block
- several m-files used to either control UI (how the mask interacts), either provide information that will be used in the tlc file (bringing parameters set in the mask to the tlc).
You can find examples and documentation for how to make a mex file (it's a C file with some specific functions that you can find detailed examples on Mathworks and all you have to do is build this C file using the mex command in the MATLAB terminal).
Hope this is helpful. We'll go into more details in the coming week if you need it.
Kind regards,
Razvan.