how i get longitudinal driver for electric vehicle simulation ?

4 views (last 30 days)
hi
i am modeling the electic vehical simulation on simulink. i need the block name longitudinal driver for the input purpose ,so i am trying hard to download that block but could not succeeded so can any body help me to get that block. i am studnet and doing research on EV model and need it very urgent

Answers (1)

Prasanna
Prasanna on 21 Oct 2024
Hi Muhammed,
The Longitudinal Driver block in Simulink is part of the Vehicle Dynamics Blockset. This block implements a longitudinal speed-tracking controller, generating normalized acceleration and braking commands based on reference and feedback velocities.
Follow these steps to access the Longitudinal Driver block:
  • Ensure that Vehicle Dynamics Blockset is present. This can be checked by going to the Add-Ons menu in MATLAB and searching for “Vehicle Dynamics Blockset”.
  • If the toolbox is not installed, download and install it from the MathWorks website or directly through MATLAB’s Add-Ons menu.
  • Once installed, the block can be found by opening Simulink and searching the same in the blocks library or by navigating to the Vehicle Dynamics Blockset library.
To open the block model setup programmatically, refer the below code which initializes and adds a longitudinal driver block to the model:
% Open a new Simulink model
open_system(new_system('ElectricVehicleModel'));
% Add Longitudinal Driver block
add_block('vehdynlibdriver/Longitudinal Driver','ElectricVehicleModel/longitudinal driver');
For more information about the block, refer to the following documentation: https://www.mathworks.com/help/vdynblks/ref/longitudinaldriver.html

Categories

Find more on Green Vehicles in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!