MATLAB: How to read a value of S function popup in C code

s function popup in c codesimulinksimulink coder

I have masked a S function in which popup menu(ex: CAN1,CAN2,CAN3) is added. i need to get the selected index in C code.

Best Answer

Just like Inputs and Outputs there are S-function APIs to access the parameters.
Please check