Main Content

getXCPPage

Get current page number used by XCP on real-time application

Since R2021b

Description

getXCPPage(target_object) returns the current page number used by the Universal Measurement and Calibration Protocol (XCP) on a real-time application that is loaded on the Speedgoat® target computer. This function returns the logical number for the calibration data page that is currently activated for XCP.

example

Examples

collapse all

Get the calibration page for XCP.

tg = slrealtime;
mdlSTF = getSTFName(tg);
mdlName = 'slrt_ex_osc';
openExample(mdlName);
set_param(mdlName,"SystemTargetFile",mdlSTF);
slbuild(mdlName);
load(tg,mdlName);
getXCPPage(tg)
ans =

  uint8

   0

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2021b