Fatal error running reference example Double Lane Change Maneuver after adding a scope to the model

2 views (last 30 days)
I'm using latest R2020a and trying to run the reference model "Double Lane Change Maneuver"( https://www.mathworks.com/help/vdynblks/ug/double-lane-change-maneuver.html ) with a slight change: adding a scope within "DLCReferenceApplication/Passenger Vehicle/Body, Suspension, Wheels/PassVeh14DOF (PassVeh14DOF)/Wheel Routing" to understand some of the signals, not modifying any meaningful signals. But once I clicked run button, this following two errors showed up:
2 Error Messages
Looks like some Visual Studio 2017 Command prompt was called and then some files were missing. I did install Visual Studio 2017 in this computer a while ago and its still there, but could it be interfering with MATLAB so much that it stopped the Simulink model? Not an expert in this and appreciate some help.
Files mentioned in the error message:
[vcvarsall.bat]
rtwshared.mk(138)
'\rtw\c\tools\vctools.mak'

Answers (1)

Ryan Chladny
Ryan Chladny on 15 Oct 2021
Hi Tong,
Please let me know if this is still an open issue for you and I can escalate with our Technical Support Team as it looks like an install or environment issue which would be more efficient to troubleshoot directly with.
Best regards,
Ryan
  1 Comment
xiaolu bian
xiaolu bian on 26 Nov 2021
HI Ryan,
I have the same problem. Can you help me?The following error occurred when I converted my model into a DLL file.
Using Microsoft Windows SDK for Visual Studio 2010
G:\MATLAB_veristand\project7\five_singal_niVeriStand_rtw>cd /d G:\MATLAB_veristand\project7\five_singal_niVeriStand_rtw\
G:\MATLAB_veristand\project7\five_singal_niVeriStand_rtw>nmake -f five_singal.mk MATLAB_ROOT= ALT_MATLAB_ROOT= MATLAB_BIN= ALT_MATLAB_BIN= ISPROTECTINGMODEL=NOTPROTECTING EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 TMW_EXTMODE_TESTING=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0 MAT_FILE=1 NIDEBUG=0 NIOPT="Default" OPTS="" /I
five_singal.mk(139) : fatal error U1052: file '\rtw\c\tools\vctools.mak' no found.
Stop.
G:\MATLAB_veristand\project7\five_singal_niVeriStand_rtw>echo The make command returned an error of 2
The make command returned an error of 2
G:\MATLAB_veristand\project7\five_singal_niVeriStand_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' .

Sign in to comment.

Categories

Find more on Embedded Coder in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!