It is a matter of defining new blocks which would include
the proper drivers. Take a look at SIMULATION TOOLS in
Realtime capability which is the key feature is already
available in Scilab.
Some, take a look at "Save as Interf func." in the
Diagram menu. For maksing then you simply need to
edit the generated Scilab file. It is not automatic and
all menu driven.