Read and scale specified axis value from direct memory
Read the value from an XCP channel characteristic, identifying the characteristic by name.
a2lObj = xcpA2L('myA2Lfile.a2l'); chanObj = xcpChannel(a2lObj,'CAN','Vector','Virtual 1',1); connect(chanObj); value = readCharacteristic(chanObj,'torque_demand');
Alternatively, create a characteristic object and read its value.
charObj = a2lObj.CharacteristicInfo('torque_demand'); value = readCharacteristic(chanObj,charObj);
chanObj— XCP channel
XCP channel, specified as an XCP channel object.
characteristic— XCP channel characteristic
XCP channel characteristic, specified as a character vector or characteristic object.
value— Value from characteristic read
Value from characteristic read, returned as a type supported by the characteristic.