Skip to content

Commit

Permalink
Moved PostLoadFcn to a script and there, add path of `RobotDynamicsWi…
Browse files Browse the repository at this point in the history
…thContacts` only if required
  • Loading branch information
nunoguedelha committed Apr 20, 2021
1 parent 0c7d0e0 commit 9eb7fcd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions postLoadFcn.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
% Set path to the utility functions and to WBC library
import wbc.*
addpath(genpath('./src'));
if ~contains(path,'RobotDynamicsWithContacts')
addpath('./lib/+mwbs/RobotDynamicsWithContacts');
end
37 changes: 18 additions & 19 deletions test_matlab_system_2020b.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Model {
NumRootInports 0
NumRootOutports 0
ParameterArgumentNames ""
ComputedModelVersion "1.115"
ComputedModelVersion "1.117"
NumModelReferences 0
NumTestPointedSignals 0
NumProvidedFunctions 0
Expand Down Expand Up @@ -53,8 +53,7 @@ Model {
PropName "mdlProps"
}
}
PostLoadFcn "% Set path to the utility functions and to WBC library\nimport wbc.*\naddpath(genpath('./src'));\nad"
"dpath('./lib/+mwbs/RobotDynamicsWithContacts');"
PostLoadFcn "postLoadFcn"
EnableAccessToBaseWorkspace on
ScopeRefreshTime 0.035000
OverrideScopeRefreshTime on
Expand All @@ -65,7 +64,7 @@ Model {
MinMaxOverflowArchiveMode "Overwrite"
FPTRunName "Run 1"
MaxMDLFileLineLength 120
InitFcn "init"
InitFcn "initFcn"
LastSavedArchitecture "maci64"
Object {
$PropName "BdWindowsInfo"
Expand Down Expand Up @@ -214,29 +213,29 @@ Model {
Dimension 2
Object {
$ObjectID 16
Type "GLUE2:PropertyInspector"
ID "Property Inspector"
Visible [1]
Type "Simulink:Editor:ReferencedFiles"
ID "Referenced Files"
Visible [0]
CreateCallback ""
UserData ""
UserData "{\"filterShowRefModels\":\"true\",\"filterShowRefSubs\":\"true\",\"filterShowOnlyDirtyFiles\":\"false\"}\n"
Floating [0]
DockPosition "Right"
DockPosition "Left"
Width [640]
Height [480]
Minimized "On"
Minimized "Unset"
}
Object {
$ObjectID 17
Type "Simulink:Editor:ReferencedFiles"
ID "Referenced Files"
Visible [0]
Type "GLUE2:PropertyInspector"
ID "Property Inspector"
Visible [1]
CreateCallback ""
UserData "{\"filterShowRefModels\":\"true\",\"filterShowRefSubs\":\"true\",\"filterShowOnlyDirtyFiles\":\"false\"}\n"
UserData ""
Floating [0]
DockPosition "Left"
DockPosition "Right"
Width [640]
Height [480]
Minimized "Unset"
Minimized "On"
}
PropName "DockComponentsInfo"
}
Expand Down Expand Up @@ -268,9 +267,9 @@ Model {
ModifiedByFormat "%<Auto>"
LastModifiedBy "nunoguedelha"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue Apr 20 03:39:00 2021"
RTWModifiedTimeStamp 540789033
ModelVersionFormat "%<AutoIncrement:1.115>"
LastModifiedDate "Tue Apr 20 03:54:18 2021"
RTWModifiedTimeStamp 540791560
ModelVersionFormat "%<AutoIncrement:1.117>"
SampleTimeColors off
SampleTimeAnnotations off
LibraryLinkDisplay "disabled"
Expand Down

0 comments on commit 9eb7fcd

Please sign in to comment.