Hi Rizwan,
What MATLAB Release are you using? Please note that support for custom target hardware (including the NI-9403) has been removed from Simulink Real-Time in R2018a. Starting from that release, only Speedgoat target machines are supported. Speedgoat offers encoder measurement and emulation modules fully compatible with the latest MATLAB releases.
For more information, have a look at www.speedgoat.com and at the Release Notes for Simulink Real-Time.
