A submodel is shown in a model diagram while its pathname is wrong and the model doesn't simulate
— at Version 9
Consider the model InvPwmPQ in the attached package invPwmPkg.
I'm not sure whether its sub-model PwmPulser has a valid pathname.
But whatever the answer OMEdit seems inconsistent:
1) its icon is visible in the InvPwmPQ diagram
2) when the model is checked the following error is issued:
Error
[invPWMPkg: 12:5-12:156]: Class invPWMPkg.PwmPulser not found in scope invPWMPkg.InvPwmPQ.
I think that if PwmPulser is not in scope, its icon should not be visible.
* A later addition: comment 3 explains that PwmPulser is not in scope, and therefore it should not be visible in InvPwmPQ.
Change History
(10)
Cc: |
Per Östlund Adrian Pop added
|
Cc: |
Adeel Asghar added; Per Östlund removed
|
Owner: |
changed from Adeel Asghar to Per Östlund
|
Status: |
new → assigned
|
Cc: |
Per Östlund added; Adeel Asghar removed
|
Cc: |
Adeel Asghar added; Per Östlund removed
|
Milestone: |
1.12.0 → 1.13.0
|
Milestone: |
1.13.0 → 1.14.0
|
Milestone: |
1.14.0 → 1.16.0
|
Description: |
modified (diff)
|
Summary: |
A path issue → A submodel is shown in a model diagram while its pathname is wrong and the model doesn't simulate
|
The model is invalid, because looking up invPWMPkg requires going to the scope outside invPWMPkg. But since invPWMPkg is encapsulated that's not allowed. So to fix the model, just remove the invPWMPkg prefix from the pwmPulser component.
The icon lookup doesn't seem to follow those rules though, so that should be fixed.