MATLAB: How to change the refresh rate of the xPC Target Host Scope Viewer in xPC Target 2.8 (R14SP3)

Simulink Real-Time

I would like to change the refresh rate of the Host Scope Viewer in xPC Target Explorer.

Best Answer

This enhancement has been incorporated in Release 2008a (R2008a). For previous product releases, read below for any possible workarounds:
To change the refresh rate of the Host Scope Viewer in xPC Target Explorer, use the attached function, 'setrefreshrate'. This function will change the refresh rate of xPC Target Explorer and the Host Scope Viewer each time you start xPC Target Explorer.
Usage:
xpcexplr
setrefreshrate(0.2)