Hi,
As per my understanding of the question, to make your Simulink model run in real time you can use Simulink Coder with the appropriate hardware and software configuration.
You can refer to the following documentation for a better understanding:
Thanks