Where can i access the variables defined in the official Double Lane Change Reference Application example by matlab?

2 Ansichten (letzte 30 Tage)
This example " Double lane change example " by matlab has no access to change variables defined such as VEH.FrontAxlePositionfromCG and others. I have no access to the script file in this example.
Please tell me how to access the script file to change variable values . Below are the ss to the values i am speaking of

Antworten (2)

Jacob Mathew
Jacob Mathew am 9 Mai 2024
After going through your query, I understand that you are trying to access the model workspace variables. To do this, go to the "Modelling Tab" in the Toolstrip. Within it, under the "Design", go to "Model Explorer":
Once the Model Explorer Dialog box opens, select "Model Workspace" to see the desired variables and edit their values:

Sanju
Sanju am 9 Mai 2024
Hi Rohit,
I have tried to open this example from my end and found a way to modify the variables,
Here are the steps that I have followed,
>> openExample('vdynblks/DoubleLaneChangeReferenceApplicationExample')
this command opens the project in the MATLAB, you can refer to the below image,
From the above screenshot you can see that, the project has scripts and system, under system we have the simulink model and its related sldd files.
  • open DLCReferenceApplication.sldd file (from project)
  • open slx file (from project)
  • You can see the simulink model blocks under DLCReferenceApplication.
  • The variables used are form Model Workspace, hence goto Model Workspace and goto VEH, since the TrackWidth is under structure VEH
  • select the value column and select open variable editor, which whill open a window as shown in the below image,
  • Here, you can edit the value and save the model Workspace.
  • now you can see in the model that the value got updated,
  • Like wise you can update the variable values.
You can refer to the below documentation link for information on simulink data dictionary,
Hope this helps!

Kategorien

Mehr zu General Applications finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by