Thread Subject: cvs keyword substitution and external mode

Subject: cvs keyword substitution and external mode

From: Robert

Date: 14 Oct, 2009 07:35:18

Message: 1 of 2

Hello,

is there a way to use cvs keyword substitution in a simulink model without disabling external mode?
I have models running in hardware-in-the-loop tests and frequently use the external mode to look up internal signals. On top level I use a text field for some general model information, and as we use cvs for configuration management I placed a keyword for substitution into that text box. Whenever I check a model in to cvs this will cause an update on the text field. When I want to connect to the realtime model after that I am denied access, because the model has "changed" and some checksum comparisons fail.
How can I avoid this? Is there some region in the model file excluded from the checksum computation or can I influence the external mode to just check something like the models automatic version counter?
TIA,

     Robert

Subject: cvs keyword substitution and external mode

From: Gavin

Date: 19 Nov, 2009 10:18:03

Message: 2 of 2

"Robert " <notrust@lummert.net> wrote in message <hb3uvm$1or$1@fred.mathworks.com>...
> Hello,
>
> is there a way to use cvs keyword substitution in a simulink model without disabling external mode?
> I have models running in hardware-in-the-loop tests and frequently use the external mode to look up internal signals. On top level I use a text field for some general model information, and as we use cvs for configuration management I placed a keyword for substitution into that text box. Whenever I check a model in to cvs this will cause an update on the text field. When I want to connect to the realtime model after that I am denied access, because the model has "changed" and some checksum comparisons fail.
> How can I avoid this? Is there some region in the model file excluded from the checksum computation or can I influence the external mode to just check something like the models automatic version counter?

Hi Robert,

A change like that should not alter the checksum. You can use

[checksum, additionalInfo] = Simulink.BlockDiagram.getChecksum(model)

to get more information on the checksums for your model. Can you try this before and after the model has been checked into CVS?

Gavin

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com