I have two inputs to my C MEX S-function, each of different data type. How do I set the output data type of the S-function to that of the second input?
MATLAB: How to set the output port data type in the C MEX S-function in Simulink 6.4 (R2006a)
cdatamdl_set_input_port_data_typemdloutputportdatatypemdlsetdefaultportdatatypesmdlsetinputportdatatypes-functionsimulinktype
Related Question
- Dynamically sized IO ports in simulink
- ‘rtwinext’: undefined symbol “__imp__Z13TT_Initializev” Error loading real-time executable Error occurred while executing External Mode MEX-file motive 1.5 API C-MEX S-Function
- Do I get a Port Width mismatch error in the CMEX S-function when using dynamically_sized for either the inputs or outputs
- Do I receive an error message when I use the ssSetInputPortWidth macro in the C MEX S-function that takes frame-based input
- How to get the exact Simulink.Bus object name inside the S-function that accept Bus input/output
Best Answer