Why I am getting this error message? Please HELP. Thanks

조회 수: 10 (최근 30일)
Abhishek
Abhishek 2024년 2월 21일
댓글: Abhishek 2024년 3월 5일
Hi Everyone. I am facing a problem while connecting the FMU to the buses. I have one FMU which expects 9 inputs and I did clarify the same while using bus creator. But in the end i am getting this error which i am trying to solve for couple of hours but didn't get any solution. So if any knows about the same please help me. I would give details as well if you need any other information.

채택된 답변

Aiswarya
Aiswarya 2024년 3월 1일
Hi,
I understand that you are getting a value type mismatch error for a parameter, which states that it does not match the structure defined in modelDescription.xml file. This may happen if you have changed your parameters of FMU (added new parameters to the struct "refrigeration_Cycle_4WV_TLK_detailed_newBus" or changed the name of parameter) and regenerated the FMU. You may refer to the following steps to resolve the issue:
  1. Check if your parameter is present in the modelDescription.xml file. This can be found inside the "_fmu" folder created.
  2. Right click on your FMU block and navigate to Mask > Mask Parameters. In the Parameters section, you can find the "refrigeration_Cycle_4WV_TLK_detailed_newBus" struct of your FMU model. Ensure that it has the same parameters as mentioned in the modelDescription.xml file. In case of mismatch (missing/extra parameters) , you can modify the struct in the dialog box itself.
  3. Update your model. Once the parameter struct is ensured to be the same, the type mismatch error should get resolved.
Hope this helps!
  댓글 수: 1
Abhishek
Abhishek 2024년 3월 5일
Hello,
Thank you so much for the reply. Yes I changed a parameter name but then I just deleted and again put the import FMU block and uploaded the FMU model again and it worked. Anyways, thanks for your input I will keep this masking trick in mind.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by