Set Resolution of analog-in and analog out using Matlab or Simulink?

thank you,

i solved the problem with a s-function.

greets