update diagram (ctrl-D) fails due to missing bus signal, but the Bus Selector GUI finds the signal in the bus

3 Ansichten (letzte 30 Tage)
I have a model which is failing update diagram for the subject reason. I have tried several things, but none work.
  • tried re-selecting the signal
  • tried deleting the bus selector, the problem just shifted to another bus selector looking at the same bus.
each time, the error appears in the command line, but clicking the hyper link to the model location, and opening the bus selector GUI, shows that the signal is available. I have gone through the path from signal/bus original, to some signal destinations, each time, all bus creators and selectors show the signals as available. Also, there are not other missing signals in any of the bus selectors getting signals from this bus. I cant find any error except the error at the command line. any help? im using Matlab Simulink R2013b.

Akzeptierte Antwort

Drew Davis
Drew Davis am 23 Jun. 2015
See this answers page which may be relevant in your case
  1 Kommentar
Albert Mathews
Albert Mathews am 23 Jun. 2015
thank you, i appreciate the help. In my case, the model in its native location passes ctrlD, and can be used to generate code. However, when it is copied to another location (test harness model for example), this error appears. And what is strange and unseen from my experience in this case is that there appears to be no error from the bus selector GUI, but yet one appear at ctrlD cmd line (i.e. there is no way to see the error in the model). Although I would prefer use bus objects and a well structured model, unfortunately I must use this legacy model for the task at hand. Given these constraints, I'm curious to know if anyone else has seen this behaviour, and if so, is there an easier fix than restructuring the bus hierarchy. thanks again for the help.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Albert Mathews
Albert Mathews am 30 Jul. 2015
answering my own question. there was an upstream subsystem feeding the nested bus which was "commented out" in simulink. meaning, right click>comment out. for some reason doing this fails ctrlD, but still allows the mapping of signals, carried by nested buses, which originate form the commented out subsystem. uncomment-out the subsystem, and the ctrlD error goes away.

Kategorien

Mehr zu Conditionally Executed Subsystems and Models finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by