Using Uploaded Calibration Values

MotoHawk™ supports a procedure that allows calibrated values to be uploaded from a Target ECU and applied to the model.
Blocks that define a calibration include a checkbox in the block mask dialog named 'Use uploaded calibration values'. This allows the user to select whether to use the default value given in the mask or the uploaded value from a Target ECU in the next Target application build.

 

How to obtain the uploaded calibration values

With the model open, and a Target ECU programmed with application software created from the same model, ensure the Target is powered and connected physically via CAN. The model must support MotoTune and the default port must be correctly setup in MotoServer to communicate as it would for a MotoTune session.

Run from the matlab command line execute:
>> motohawk_upload_cals

The script should create another script in the form <model name>_load_cals.m in the working directory along side the Simulink model.

Close and re-open the model.

How to check if uploaded calibration values are used

A Calibration block with 'Use uploaded calibration values' checkbox checked, will show on the block face the uploaded calibration value with an asterisk * alongside, indicating that the value shown is the uploaded value.

 

When 'Use uploaded calibration values', checkbox is NOT checked, the default value shown on the block face is the default value entered in the mask dialog and NOT the uploaded value.

 

NOTE: Other blocks that define calibrations such as Tables may not support the block face asterisk '*' visibility feature and therefore the user can only check the values used by programming the built firmware and viewing the data with an instrumentation tool.