필터 지우기
필터 지우기

How do I fix a duplicate name error ?

조회 수: 14 (최근 30일)
shamma
shamma 2024년 4월 26일
댓글: Arthur Goldsipe 2024년 4월 26일
I am using the simBiology builder app on matlab. I keep receiving an error on one of my models of a duplicate name error ( names are SSRI, SERT, 5-HT ) However, it doesn't say how to fix it. I have to models in this project and only one has this issue. How do I fix it?

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2024년 4월 26일
It's hard to know exactly what's going on without more details. Can you share more details? Ideally, can you share the project and the steps we need to follow to reproduce the error?
Without those details, it's hard to know how to help you. But here's what I can say.
As of R2024a, SimBiology no longer allows most components within a model to have the same name. There are a few exceptions (for example, two species can have the same name as long as they're in different compartments). You can read more about that in the SimBiology release notes.
If you open a project that has duplicate names (because it was created in an earlier version that supports them), I expect a warning dialog to appear telling you that these duplicate names have been fixed by renaming some of the components. If that's what you're talking about, you can likely just dismiss the dialog and look at the components that have been renamed.
If you are seeing this error when you are trying to give name a component, you just need to give the component a different name. If you really want the component to have this name, then you need to find out what other component in your model has this name and give it a different name.
  댓글 수: 4
shamma
shamma 2024년 4월 26일
Arthur Goldsipe
Arthur Goldsipe 2024년 4월 26일
Oh, it looks like you are using R2023b. So the first thing to point out is that this version of MATLAB/SimBiology allows components with the same name. You're just getting a warning because these duplicate names will now be allowed in the future (specifically in R2024a). So if you don't plan on updating to R2024a any time soon, you can just ignore this warning.
If you open this project in R2024a, then the duplicate names will get fixed automatically. If you want to get rid of this warning now and make your model compatible with R2024a, the easiest thing would be to export the model to MATLAB and use updateduplicatenames to rename components now.
But if you want to rename the components yourself, here's where the duplicates are:
  • 5-HT: You have a species and a parameter with this name.
  • SERT: You have a species and a parameter with this name.
  • SSRI: You have a species and a dose with this name.
BTW, thanks for sharing this project. It's helpful to see how you are using SimBiology.

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by