Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Suppress Callbacks From Firing During Model Comparison

3 Ansichten (letzte 30 Tage)
Richard Hopple
Richard Hopple am 7 Dez. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi all. I'm trying to figure out a way to surpress callbacks from firing during a model comparison? Or maybe a better question is if there is a way to check if a model comparison is being done.
Background: Our models have a callback (call it model resize) in them that finds the size of the primary monitor and will resize the model's window to an approprate size based on the monitor size, when the model is first opened. Well, when you use Matlab's comparison tool to compare the two different models, the model resize call back fires and overrides where the comparison tool puts the two model windows (upper right corner and lower right corner). I am hunting for a way to prevent this specific call back from firing. Any ideas? I can't really post a good example of it due to working restrictions.
  8 Kommentare
Walter Roberson
Walter Roberson am 10 Dez. 2018
Bearbeitet: Walter Roberson am 14 Dez. 2018
...so don't use the gui compare button ? ;)
Looking at the call stack might work, but there is a tendency to lose the call stack for callbacks which are eval() automatically because of button presses in the MATLAB gui.
Richard Hopple
Richard Hopple am 14 Dez. 2018
Ha! I wish I could dissable that button! I think I will have to look at the call stack info since I don't think there is an internal Matlab variable that is set that I can look at

Antworten (0)

Diese Frage ist geschlossen.

Produkte


Version

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by