Parameters saving/loading

The structures ST_TcPfw_TempMparamFromHmi_Itf, ST_TcPfw_TempPparamFromHmi_Itf, ST_TcPfw_SupplyParam contain parameters that must be stored remanently. The following variables are stored in each structure for this purpose:

The path C:\Data must be created on the target system so that the parameter files can be created. The corresponding subdirectories within this folder are generated automatically after the first save.

The following flow chart should make clear how the saving process works.

Parameters saving/loading 1:

During saving, a temporary file is created first. Then the backup file is deleted and the original file is converted to a backup file. As a final step, the temporary file is converted into an "original file".
This mechanism ensures that there is always a completely saved parameter file.

Parameters saving/loading 2:

When loading a product via bLoadParams the following process checks whether the saved file is consistent.

Parameters saving/loading 3: