Reports 1-1 of 1 Clear search Modify search
IOO (Laser Bench)
stefan.ballmer - 18:03 Thursday 14 June 2018 (5282) Print this report
Scripts for tracing front end target dependencies on models and c code
The simulink models of our RTCDS system can include parts from other simulink models as library part. While this is a very nice feature for standardizing interfaces across many model, changing a library part can become a nightmare: Which front end targets and intermediate models depend on any particular .mdl file? And which version of any model is currently installed on the front end target?

Here are some scripts to trace those dependencies:
/opt/rtcds/userapps/trunk/cds/common/scripts/checkCompiledModel
/opt/rtcds/userapps/trunk/cds/common/scripts/checkTargetDependencies
/opt/rtcds/userapps/trunk/cds/common/scripts/dumpTargetDependencies


Example 1: Which targets use TM_MASTER.mdl, and what version is currently running in the front-end target?
/opt/rtcds/userapps/trunk/cds/common/scripts/checkCompiledModel TM_MASTER.mdl
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1visbsp |
TM_MASTER.mdl | LastModifiedDate "Fri Mar 16 11:03:57 2018" | k1visbs |
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1vispr2 |
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1vispr3 |
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1visprm |
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1vissr2 |
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1vissr3 |
TM_MASTER.mdl | LastModifiedDate "Tue Apr 10 08:25:44 2018" | k1vissrm |

Example 2a: What .mdl and .c files does k1psl depend on, and what versions of those files is used in the front-end target?
/opt/rtcds/userapps/trunk/cds/common/scripts/checkTargetDependencies k1psl

.mdl files:
Modify tag of model | Model name | SVN tag
=============================================================================
LastModifiedDate "Thu Jun 14 10:56:59 2018" | modeswitch.mdl |
LastModifiedDate "Wed May 23 15:22:58 2018" | iss.mdl |
LastModifiedDate "Thu Jun 14 13:26:34 2018" | fss.mdl |
LastModifiedDate "Thu Jun 14 13:23:31 2018" | pmc.mdl |
LastModifiedDate "Thu Jul 13 09:40:52 2017" | DAC_CON.mdl |
LastModifiedDate "Thu Jun 14 17:35:23 2018" | cavity.mdl |
LastModifiedDate "Fri Jul 14 11:01:22 2017" | ADC_CON.mdl |
LastModifiedDate "Thu Jun 14 13:29:01 2018" | k1psl.mdl |
LastModifiedDate "Tue Feb 03 14:43:25 2015" | QPD.mdl |
Dependencies other than .mdl files:
=============================================================================
src files:
psl/common/src/fss/FSS_LOCKCOUNTER.c
=============================================================================

Example 2b: same question, simpler output:
/opt/rtcds/userapps/trunk/cds/common/scripts/dumpTargetDependencies k1psl
psl/common/src/fss/FSS_LOCKCOUNTER.c
psl/common/models/modeswitch.mdl
psl/common/models/iss.mdl
psl/common/models/fss.mdl
psl/common/models/pmc.mdl
psl/common/models/DAC_CON.mdl
psl/common/models/cavity.mdl
psl/common/models/ADC_CON.mdl
psl/k1/models/k1psl.mdl
isc/common/models/QPD.mdl


Non-image files attached to this report
Search Help
×

Warning

×