Step 3: How to Configure Function Ports of Bus Simulation Features

Objective

To access bus simulation features at run time and to configure their initial behavior, you have to configure the available function ports.

Depending on the configured settings, you can access the data of bus simulation features via experiment software (e.g., ControlDesk) and automation scripts, and/or exchange data with a behavior model at run time.


Part 1: To specify an initial LIN schedule table

  1. Select the Bus Configuration Ports table.

    The Bus Configuration Ports table displays all the ports that are available for bus configurations of the active ConfigurationDesk application.

  2. In the Bus Configuration Ports table, select the LinDoorCommController Schedule Index function port.

    The Properties Browser displays the properties of the function port.

  3. In the Properties Browser, set Initial value to 1.

    For each LIN master, multiple schedule tables can be specified in the communication matrix. Via the Initial Value property of the Schedule Index function port, you can specify the schedule table that is initially active at run time.


Interim result

You specified the first schedule table of the LIN master as the initial schedule table. This enables LIN communication by default. You can now configure to access bus simulation features via experiment software and automation scripts. Continue with the next part.


Part 2: To enable access for experiment software and automation scripts

  1. In the Bus Configuration Ports table, right-click the Feature column header and select Set Column Filter on the context menu.

    The Column Filter Expressions for Column: Feature dialog opens, displaying the filter settings that were specified last.

    Tip

    If you open the filter dialog for an unfiltered column, the dialog displays the last specified column filter, regardless of the table or browser for which the column filter was specified.

  2. In the dialog, specify ISignal Value as the Filter expression.

  3. Select Inverse.

  4. Click OK.

    The dialog closes. The Bus Configuration Ports table displays all ports that are available for bus configuration features except for the ISignal Value feature. The Feature column header indicates the active column filter by a blue square.

    Note

    The filter is active until you clear it explicitly. This applies even when you close ConfigurationDesk or the Bus Manager (stand-alone).

  5. Press the Ctrl+A keys to select all the displayed function ports.

  6. Press and hold the Ctrl key and click the LinDoorCommController Enable State function port to deselect the function port.

  7. Scroll to the right until the Test Automation Support column is displayed.

  8. In the Test Automation Support column, right-click one of the highlighted cells and select Fill with one of - Enabled on the context menu.

    Test automation support is enabled for the selected ports. This lets you access the values of the function ports via experiment software (e.g., ControlDesk) and automation scripts at run time.


Interim result

You enabled test automation support for selected function ports to access the function port values via experiment software and automation scripts at run time. You can now enable the access to a behavior model. Continue with the next part.


Part 3: To enable the behavior model access

  1. In the Bus Configuration Ports table, scroll to the right until the Direction column is displayed.

  2. Right-click the Direction column header and select Set Column Filter on the context menu.

    The Column Filter Expressions for Column: Direction dialog opens, displaying the previously specified filter settings.

  3. In the dialog, specify RX as the Filter expression and click OK.

    The dialog closes and the Bus Configuration Ports table is filtered by two column filters, i.e., by the filters you specified for the Feature column and for the Direction column. Because the Inverse checkbox was selected for both filters, all function ports of the ISignal Value feature and all RX function ports are hidden.

    Note

    Even though the function ports are hidden, they are still selected. Because of this, any changes you make in the Bus Configuration Ports table will also affect the hidden ports.

  4. In the Bus Configuration Ports table, right-click an empty area without selecting a command on the context menu.

    All function ports, including the hidden function ports, are deselected.

  5. Select all the displayed function ports except for the following:

    • LinDoorLeftCommController Enable

    • LinDoorLeftCommController Enable State

    • DoorRightStatusIPdu Enable

  6. In the Model Access column, right-click one of the highlighted cells and select Fill with one of - Enabled on the context menu.

    Model access is enabled for the selected function ports. This lets you map the function ports to model ports and exchange data with a behavior model at run time.

  7. Right-click the Direction column header and select Clear Column Filter on the context menu.

    The specified column filter is cleared and the function ports are displayed regardless of their direction. For the RX function ports, model access is disabled.

  8. Right-click an empty area without selecting a command on the context menu to deselect all function ports.


Interim result

You enabled the access to a behavior model for the selected function ports of some bus configuration features. You can now enable test automation support and model access for further function ports. Continue with the next part.


Part 4: To enable test automation support and model access for further function ports

  1. In the Bus Configuration Ports table, right-click the Feature column header and select Set Column Filter on the context menu.

    The Column Filter Expressions for Column: Feature dialog opens, displaying the currently active filter of the Feature column.

  2. In the dialog, clear Inverse and click OK.

    The dialog closes. The Bus Configuration Ports table displays only function ports that are available for the ISignal Value feature.

  3. Click the Name column header.

    The function ports are sorted alphabetically in ascending order. The sorting order is indicated by an arrow () in the column header.

  4. Select the following function ports:

    • All DoorLeftLockedISignal Value function ports

    • All DoorRightLockedISignal Value function ports

    • All LockCarISignal Value function ports

    • All SpeedISignal Value function ports

  5. For the selected function ports, set Model Access to Enabled.

  6. In addition to the function ports that are already selected, select the following function ports:

    • All DoorLeftClosedISignal Value function ports

    • All DoorRightClosedISignal Value function ports

    • All UnlockCarISignal Value function ports

  7. For the selected function ports, set Test Automation Support to Enabled.

  8. Right-click the Feature column header and select Clear Column Filter on the context menu.

    The specified column filter is cleared and all function ports of the bus configuration are displayed.

  9. Right-click the Name column header and select Clear Sorting on the context menu.

    The function ports are sorted in the original order.


Result

You enabled LIN communication by specifying an initial schedule table. Additionally, you configured the run-time access for bus simulation features by enabling test automation support and/or model access for some of the available function ports. This lets you access the function port values via experiment software (e.g., ControlDesk) and automation scripts, and/or exchange data with a behavior model at run time.

Note

For optimum performance, it is recommended to enable model access and test automation support only for those function ports that you want to access via a behavior model or experiment software and automation scripts, respectively.


What's next

In the next step, you will check the configured bus communication for conflicts and resolve conflicts.


Redaction