![]() |
Open Test Framework
|
|
With the Declaration - Settings, you can view and configure the properties of a declaration (see the image below). To access the properties dialog box of a declaration, please right click on the corresponding declaration node in the Solution Explorer and select Properties menu entry, or just double click on the declaration node.
The Declaration - Settings dialog box is a standard form used for the global declarations, local declarations and parameters. Depending on the type of the declaration or the value type (data type), special buttons are displayed to expand the dialog box e.g. the case of the procedure parameter of String data type or to open another dialog box e.g. in case value type of Quantity (see below).
The standard Declaration - Settings dialog box consists of the following controls:
- The Type combo box:Note that the name should conform to the OTX Naming Conventions and the name must be unique among the declarations within the same scope. Also, the name of global declarations must be unique throughout all global identifiers defined in the same OTX document.
- The Default value (or Initial value) text box/combo box:If the declaration is referred (used) in anywhere, the selected type will be unchangable.
- The Description (or "Specification") area:This property is optional excepts that the constants must have the default value.
As mentioned above, in some cases there will be special buttons to expand the dialog box or to open another new dialog box:
Normally, you can input the initial value directly for a declaration with Quantity or Unit value type e.g. @Quantity:12.5/"km/h"/2, but you can also use the supported dialog box for quantity (or unit) to create the initial value more easily (see the image below). When the data type of a declaration is the Quantity or the Unit, you will find the " ... " button on the right of the Default value combo box, which enables you to open the supported dialog box for the corresponding type. In the dialog box, you first have to select the available unit odx file referred by the project (see Quantity Settings), then you can select a unit value in the unit file, also remember to set the numeral value and the display precision for the declaration.
The parameters of a procedure signature or a procedure can contain the diagnostic metadata (or access path) in the following cases:
With parameters of the case above, there will be the More/Less button in the Parameter - Settings dialog box. If you click on this button, the Access Path section will be displayed to set an access path for the parameter. In the section, you can set the access path easily by selecting the corresponding node from the ODX tree view. To hide the section, click on the same button.
This access path just only supports ensuring the data consistency and selecting the short names from the database more easily, it can not replace the result from such activities as GetComChannel, CreateDiagServiceByName, etc. at runtime. In case of In-Parameter of String type, you first have to select the radio button of the diagnostic element type (LogicalLink, EcuVariant, etc.) to determine the corresponding access path.