Error: File: C:\VeriSta​nd\2020\Mo​delInterfa​ce\tmw\cod​egen\NiBus​Lib.tlc Line: 134 Column: 17 The left-hand side of a . operator must be a valid scope identifier

조회 수: 18 (최근 30일)
Hi all,
I am interfacing NI Veristand and NI linux RT with matlab 2020a. When i develop a model in simulink and build the model, it is giving following error.
"Error: File: C:\VeriStand\2020\ModelInterface\tmw\codegen\NiBusLib.tlc Line: 134 Column: 17 The left-hand side of a . operator must be a valid scope identifier"
please give a solution.
Thank you.
  댓글 수: 1
Arnaud
Arnaud 2024년 10월 31일 9:13
Hello Jongcheol, I am facing the same difficulty. Do you remember what was causing this error and how to overcome it ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Shuba Nandini
Shuba Nandini 2024년 11월 11일 8:24
It seems like you are encountering an error "The left-hand side of a . operator must be a valid scope identifier" while you are building a model in Simulink.
This error may occur because MATLAB is referencing auto-generated files from a previous build of the same model in the working directory.
Kindly follow the below workarounds to troubleshoot the issue:
  • Clear Old Generated Files: The files may not be deleted or regenerated after modifications in the test harness configurations, leading to conflicts. To resolve this, manually delete all auto-generated files in the working directory before attempting a new build. This will force MATLAB to regenerate files from scratch, eliminating the potential for conflicts.
  • Create a New Model if Corruption is Suspected: If the model built successfully before but is now encountering errors, the issue may stem from model corruption. In this case, copy the contents of the top-level model into a new model file, reconfigure the Model Configuration Parameters, and attempt to build again. This step can help bypass issues introduced by model corruption.
  • Confirm the Correct System Target File is Selected: If the 'ASAP2 interface' option is checked, same error may arise. To resolve this, ensure the System Target File is set to grt.tlc or ert.tlc rather than Autosar.tlc.
I hope the above provided workarounds will resolve the issue!

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by