How to Activate XCP Sysvar Objects
How can I activate XCP Sysvar objects to make them accessible with CAPL?
There are two possibilities. The first one is to set all possibly required XCP variables to Configured, so that they can be accessed with the CAPL code. These variables can then be controlled f.e. with the CAPL command XcpActivate(sysvar::XCP::XcpSim::ampl) which activates the Auto Read checkbox.
The second possibility is to work with different measurement groups. It’s also necessary to set here all possibly required XCP variables to Configured. The measurement group contains a predefined XCP variable setup. This has the positive effect that it’s not necessary to activate the Auto Read checkbox for each single XCP variable. The measurement groups can be controlled by the CAPL code. You can find the syntax of the CAPL function in the CANoe help under CAPL functions | XCP | xcpActivateMeasurementGroup.
In CANoe XCP variables are handled as system variables. That’s the difference in comparison to signals which are not sent with the XCP protocol. Therefore it is necessary to set the required XCP variable to Configured in the XCP configuration window.You can find the syntax of the XCP CAPL function in the CANoe help under CAPL functions | XCP.