Generate Variant ECU Extract
A variant ECU extract contains variation points, meaning it represents a configurable ECU that can take on different forms depending on the selected variant.
To process a variant extract, an EVS is required. This EVS defines the specific configuration and can be provided either as a separate ARXML file or embedded directly within the extract.
From a single variant extract, you can model multiple individual ECU extracts, each representing a specific ECU configuration. However, before applying EcuC Derive, these must be merged using the Variant Merger in EcuXPro, since DeriveEcuC operates on a single variant extract.
Generate an Variant ECU Extract
-
For the special use case of a variant ECU project (several Input File Sets), you need to provide additional information to correctly specify your variants, as the analyze command expects also the option -e to be set to specify an Evaluated Variant Set (EVS) file. This EVS contains among other information the Post-Build Variant names. See Create Evaluated Variant Set for more information about creating an EVS.
-
Retrieve the information from your EVS file. If you have an EVS and don’t know all the Post-Build Selectable variants contained within it, you can use the following command to query Post-Build variant names within your EVS.
ecuxpro evs-info -e="/Path/To/EVS.arxml"The console will display the possible variants in your EVS file, for example: FrontLeft and FrontRight.
-
Run the analyze command to get suggestions for ready-to-run commands. Add your variant names along with the input files you want to include in each variant. Please note that here the additional option -e is used to specify the EVS file.
ecuxpro analyze -f FrontLeft=<file1> -f FrontRight=<file2>,<file3> -o="/Path/To/Generated/Ecu/Extract" -c="/Path/To/Legacy/Converter" -e="/Path/To/EVS.arxml" --output-format=shell_cmd --save-script="/Path/To/Save/ScriptFile.bat"In this example, the variant FrontLeft is assigned to <file1>, and FrontRight is assigned to <file2> and <file3>.
-
Executing the command will generate a script file containing ready-to-run commands for generating your variant ECU Extract. The execution of the script file will create the variant ECU Extract in the specified output folder. Please make sure that you set all variables in the script file before executing it.