Neil Moniz
Neil Moniz

Reputation: 23

How can I write to a XCP parameter using Canoe .XCP and CAPL?

How can I write to an XCP parameter using Canoe .XCP and CAPL script? We can measure these parameters but can not change them, is it even possible?

Upvotes: 0

Views: 6910

Answers (2)

KRANTHI KUMAR
KRANTHI KUMAR

Reputation: 1

syntax: xcpActive(@XCP::XcpSim::a0)

Upvotes: 0

mspiller
mspiller

Reputation: 3839

CANoe creates a system variable for each .XCP parameter.

You setup the parameters in the XCP/CCP window.

In CAPL you can read and write the value of the parameters by accessing the corresponding system variables. Just check the symbol explorer. The system variables should all be in namespace XCP.

So changing the parameter a0 of device XcpSim in CAPL would be something like

@XCP::XcpSim::a0 = 17;

This example is taken directly from the CANoe documentation.

Upvotes: 3

Related Questions