Main Content

Run Virtual Vehicle Model Through Standard Drive Cycle

To build your virtual vehicle, use the Virtual Vehicle Composer app. After you build your virtual vehicle model, you can change the model configuration to simulate standard vehicle drive cycles and the visualization environment. This example shows you how to run a virtual vehicle model, ConfiguredVirtualVehicleModel, through the FTP75 drive cycle.

Configured virtual vehicle Simulink model.

To configure your virtual vehicle model to simulate a standard drive cycle, follow these steps.

Workflow StepDescription

Step 1: Configure Virtual Vehicle Model

After you build your virtual vehicle model, change the model configuration to simulate standard drive cycles like the FTP75.

Step 2: Configure Visualization

In the Visualization subsystem, select signals and options to view simulation results.

Step 3: Run Simulation

On the ConfiguredVirtualVehicleModel toolstrip, click Run.

Step 1: Configure Virtual Vehicle Model

After you build your virtual vehicle model, change the model configuration to simulate standard testing drive cycles. In this example, update the Scenarios and Driver Commands subsystems to configure the model to run the standard drive cycle FTP75.

Scenarios

In the configured vehicle model, in Scenarios, select the Drive Cycle variant.

  1. In ConfiguredVirtualVehicleModel, right-click Scenarios and select Mask > Look Under Mask.

  2. Right-click Reference Generator and select Variant > Label Model Active Choice. Select the maneuver. For this example, select Drive Cycle.

    Reference generator variant set to drive cycle

  3. In the Scenarios subsystem, navigate to Reference Generator > Drive Cycle and open the Drive Cycle Source block. Set Drive cycle source to FTP75.

    Drive cycle source block mask.

    Note

    To install additional drive cycles from a support package, see Support Package for Maneuver and Drive Cycle Data. The support package has drive cycles that include gear shift schedules, for example JC08 and CUEDC.

  4. Save ConfiguredVirtualVehicleModel.

Driver Commands

In the configured vehicle model, in Driver Commands, select the Longitudinal Driver variant.

  1. In ConfiguredVirtualVehicleModel, right-click Driver Commands and select Mask > Look Under Mask.

  2. Right-click Driver Commands and select Variant > Label Model Active Choice. Select the driver. For this example, select Longitudinal Driver. The model implements the Longitudinal Driver block.

    Driver command variant set to longitudinal driver

  3. Save ConfiguredVirtualVehicleModel.

Step 2: Configure Visualization

In the Visualization subsystem, you can select signals and options to view simulation results. For this example, enable signal logging for the velocity signal.

  1. In ConfiguredVirtualVehicleModel, right-click Visualization and select Mask > Look Under Mask.

  2. Right-click the Trace Velocity, Target, Action (mph) signal and select and enable signal logging.

    Enable signal logging for the Trace Velocity, Target, Action signal.

  3. Save ConfiguredVirtualVehicleModel.

Step 3: Run Simulation

  1. On the ConfiguredVirtualVehicleModel model toolstrip, confirm the simulation stop time. For this drive cycle example, set Stop Time to 2600.

  2. On the ConfiguredVirtualVehicleModel model toolstrip, click Run. As the simulation runs, view the simulation results. For this example, view the Trace Velocity signal for the FTP75 drive cycle simulation.

    Logged signal showing results for trace velocity.

See Also

| |

Related Examples

More About