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

조회 수: 3 (최근 30일)
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

답변 (2개)

Jacob Mathew
Jacob Mathew 2024년 5월 9일
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 2024년 5월 9일
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!

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by