MATLAB: How to obtain the execution time associated with a signal value when I use GETSIGNAL using xPC Target 5.1 (R2011b)

Simulink Real-Time

I use GETSIGNAL to obtain signal values for a model running on the xPC target kernel. I would like to be able to get the exact execution time corresponding to the signal value returned by GETSIGNAL. Currently I use the ‘ExecTime’ property, but there is a lag between executing the command to fetch ‘ExecTime’ and then getting the signal value.

Best Answer

The ability to obtain the exact execution time corresponding to the signal value returned by GETSIGNAL is not available in xPC Target.
There is no workaround.