xPC Target | ![]() ![]() |
xPC Target Scope Blocks
An xPC Target scope block is added to your model the same way you add any Simulink block. After adding an xPC Target scope block, you define the properties of the scope object and the signals you want to display. When the target application is downloaded to the target PC, the a scope is automatically created on the target PC. No additional definitions are necessary.
Note
The scope object created on the host PC is not assigned to a MATLAB variable. To assign the scope object, use the target object function getscope . Also, if you use the function remscope to remove a scope created during the build and download process, and then you restart the target application, the scope is recreated.
|
Alternative methods for creating xPC Target scopes - For information on using xPC Target functions to create scopes, see Signal Tracing with MATLAB Commands. For information on using the xPC Target graphical interface to create scopes, see Signal Logging with xPC Target Graphical Interface.
![]() | xPC Target Scope Blocks | Adding xPC Target Scope Blocks | ![]() |