Why is it hardcoded to use <modelname>.sldd as data store?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why is it hardcoded to use <modelname>.sldd as data store?

Jump to solution
1,781 Views
Henrik-Wires
Contributor IV

Why does the NXP MBDT hardcode <modelname>.sldd as external data store?

This conflicts with other uses of external model data store, and makes using referenced configurations harder than it needs to be.

Mathworks recommended setup for referenced configurations is to use a common shared sldd for the configurations in the project, and link this to each model. But if you do this method with NXP MBDT then MBDT overrides the data store next time you open the model, and MBDT also gets very confused.

0 Kudos
Reply
1 Solution
1,674 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Henrik-Wires,

For reference, you can review the s32k3xx_refconfig_s32ct model structure located in the model_ref folder. This example illustrates how referenced configurations are applied within a model‑reference hierarchy: the top‑level model’s SLDD is referenced by the subordinate models through the use of Referenced Dictionaries.

dragostoma_0-1766398120533.png

If you prefer to apply the referenced‑configuration approach within a standard model hierarchy (rather than a model‑reference hierarchy), you can create a standalone SLDD file and reference it from each model‑specific SLDD that requires this configuration. This is done using the same mechanism described earlier, through the Referenced Dictionaries section.

 

Hope this helps, 

Dragos

View solution in original post

0 Kudos
Reply
2 Replies
1,675 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Henrik-Wires,

For reference, you can review the s32k3xx_refconfig_s32ct model structure located in the model_ref folder. This example illustrates how referenced configurations are applied within a model‑reference hierarchy: the top‑level model’s SLDD is referenced by the subordinate models through the use of Referenced Dictionaries.

dragostoma_0-1766398120533.png

If you prefer to apply the referenced‑configuration approach within a standard model hierarchy (rather than a model‑reference hierarchy), you can create a standalone SLDD file and reference it from each model‑specific SLDD that requires this configuration. This is done using the same mechanism described earlier, through the Referenced Dictionaries section.

 

Hope this helps, 

Dragos

0 Kudos
Reply
1,384 Views
Henrik-Wires
Contributor IV
Thanks. I'll give it a try.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2267019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWhy%20is%20it%20hardcoded%20to%20use%20%3CMODELNAME%3E.sldd%20as%20data%20store%3F%3C%2FMODELNAME%3E%3CLINGO-BODY%20id%3D%22lingo-body-2267019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhy%20does%20the%20NXP%20MBDT%20hardcode%20%3CMODELNAME%3E.sldd%20as%20external%20data%20store%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20conflicts%20with%20other%20uses%20of%20external%20model%20data%20store%2C%20and%20makes%20using%20referenced%20configurations%20harder%20than%20it%20needs%20to%20be.%3C%2FMODELNAME%3E%3C%2FP%3E%3CP%3EMathworks%20recommended%20setup%20for%20referenced%20configurations%20is%20to%20use%20a%20common%20shared%20sldd%20for%20the%20configurations%20in%20the%20project%2C%20and%20link%20this%20to%20each%20model.%20But%20if%20you%20do%20this%20method%20with%20NXP%20MBDT%20then%20MBDT%20overrides%20the%20data%20store%20next%20time%20you%20open%20the%20model%2C%20and%20MBDT%20also%20gets%20very%20confused.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2267654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Why%20is%20it%20hardcoded%20to%20use%20%3CMODELNAME%3E.sldd%20as%20data%20store%3F%3C%2FMODELNAME%3E%3CLINGO-BODY%20id%3D%22lingo-body-2267654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255097%22%20target%3D%22_blank%22%3E%40Henrik-Wires%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20reference%2C%20you%20can%20review%20the%20%3CCODE%3Es32k3xx_refconfig_s32ct%3C%2FCODE%3E%20model%20structure%20located%20in%20the%20%3CCODE%3Emodel_ref%3C%2FCODE%3E%20folder.%20This%20example%20illustrates%20how%20referenced%20configurations%20are%20applied%20within%20a%20model%E2%80%91reference%20hierarchy%3A%20the%20top%E2%80%91level%20model%E2%80%99s%20SLDD%20is%20referenced%20by%20the%20subordinate%20models%20through%20the%20use%20of%20%3CSTRONG%3EReferenced%3C%2FSTRONG%3E%20%3CSTRONG%3EDictionaries%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22dragostoma_0-1766398120533.png%22%20style%3D%22width%3A%20497px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dragostoma_0-1766398120533.png%22%20style%3D%22width%3A%20497px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22dragostoma_0-1766398120533.png%22%20style%3D%22width%3A%20497px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370937i2040BFC4A3D06547%2Fimage-dimensions%2F497x178%3Fv%3Dv2%22%20width%3D%22497%22%20height%3D%22178%22%20role%3D%22button%22%20title%3D%22dragostoma_0-1766398120533.png%22%20alt%3D%22dragostoma_0-1766398120533.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20prefer%20to%20apply%20the%20referenced%E2%80%91configuration%20approach%20within%20a%20standard%20model%20hierarchy%20(rather%20than%20a%20model%E2%80%91reference%20hierarchy)%2C%20you%20can%20create%20a%20standalone%20SLDD%20file%20and%20reference%20it%20from%20each%20model%E2%80%91specific%20SLDD%20that%20requires%20this%20configuration.%20This%20is%20done%20using%20the%20same%20mechanism%20described%20earlier%2C%20through%20the%20%3CSTRONG%3EReferenced%20Dictionaries%20%3C%2FSTRONG%3Esection.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20this%20helps%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDragos%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290011%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Why%20is%20it%20hardcoded%20to%20use%20%26lt%3Bmodelname%26gt%3B.sldd%20as%20data%20store%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290011%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThanks.%20I'll%20give%20it%20a%20try.%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E