Generate Invariant ECU Extract
An invariant ECU extract contains no variation points. It is already fully resolved, meaning all configuration decisions have been applied and the extract represents a specific, fixed ECU setup.
Unlike variant ECU extracts, an invariant extract does not require an EVS. It can be used directly with EcuC Derive, as it already reflects a complete and unambiguous configuration.
Generate an Invariant ECU Extract
To generate an invariant ECU extract follow the steps below to create the extract correctly.
-
Navigate into installation path of the DaVinci Configurator Classic into the folder EcuXPro. By adding all files and the output folder which shall contain the generated ECU Extract to be generated later, you will be provided as a result of this command a suggestion of commands. If legacy files are input as well, then you need to install the Legacy Converter tool, or you will have to provide its path using the option -c. Depending on the shell type you want, you must specify the output format you want, using the option --output-format. Currently, you can choose between shell_cmd (for Windows Command Line) and shell_bash (for Linux Shell Bash). Setting a value for the option save-script will save the generated commands into a script file instead of printing them to the console." Below is an example command structure:
Analyze Commandecuxpro analyze -f <file1>,<file2...> -o="/Path/To/Generated/Ecu/Extract" -c="/Path/To/Legacy/Converter" --output-format=shell_cmd --save-script="/Path/To/Save/ScriptFile.bat"-
The result of this command will be a script file containing a set of ready-to-run commands that you can use to generate your ECU extract. Before running the script, you might need to set some variables in the script file, especially the ECU Instance Names.
-
If you haven’t provided the option --save-script, then you have to copy suggested ready-to-run commands in the console output to generate an ECU Extract out of your input files.
This may look like this:
Ready-to-use Commandsecuxpro merge -i="D:\DEV\Workspaces\VectorDemo\Input\OEMInput\Preprocessing\EthernetCluster.arxml" -i="D:\DEV\Workspaces\VectorDemo\Input\OEMInput\Preprocessing\DiagnosticData.arxml" -i="D:\DEV\Workspaces\VectorDemo\Input\OEMInput\Preprocessing\MyECU_LdCom_PW_Transformer.arxml" D:\DEV\Workspaces\MyProject\InvariantMerged.arxmlIn this case, paste the ready-to-use commands from the console into your terminal or build task script and execute it to generate your ECU extract.
-
-
In both cases, the result is a
generated ECU Extractwhich is now available in the specified output folder.