When I perform Hardware Co-simulation, I want to change the clock type to "Select from Input Port." According to the User Guide, I use a Boolean signal to drive the clk_sel pin. But an error appears during simulation:
"S-function should set the data type of input port 3 of 'cosimtest/CoSimTest hwcosim' to the data type specified by the input argument of method mdlSetInputPortDataType. "
The clk_sel should be driven by double signal. After you remove GatewayIn block, then it can be simulated correctly.
This has been addressed in System Generator for DSP 7.1. Please see the Hardware in the Loop Co-Simulation Documentation for more information.