I understand that you want to execute real time input/output using your Simulink model. You can do that by browsing in the Simulink library for Simulink Real Time and choose the appropriate block which suits your needs.
For more information, check the links below: