MATLAB: At what rate is the signal sampled if I introduce the xPC Scope Block using C-API in xPC Target 2.5 (R14)

apiratesamplingscopeSimulink Real-Timexpcxpcscope

The release notes for xPC Target 2.5 (R14) mention the following with regards to xPC Scope blocks:
Scopes created by xPC Target Scope blocks now acquire data according to Simulink sample time rules. In previous releases, scopes created by xPC Target Scope blocks acquired data at the base sample rate of the model, regardless of the sample time of their input signal. This includes non-regular execution, such as if the scope is in an enabled or triggered subsystem. Note that Scopes created dynamically from the MATLAB Command Window behave as before.
However, I am using xPC Scope block using C-API, and would like to know if the sampling would be at the base rate of the Simulink model or if the above mentioned enhancement would apply here too.

Best Answer

This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
Documentation on the inheritance of sample times for the xPC Target Scope block when using the xPC Target API is missing from the xPC Target reference documentation.
Scopes added with the xPC Target API behave as added at the MATLAB Command Window. As a result, scopes sample at the base rate.
Here is additional information on the xPC Target Scope block:
Note that dynamically created xPC Target scopes (from the MATLAB Command Window or the API) sample at the base rate, irrespective of the sample time of their signals.
Related Question