Simulink provides a Simulink model for digital to analog converter. we can use such blocks or models for this purpose.
You can use xPC target built in Simulink, but you will have buy a xPC card to install on your target computer and run it in host computer.