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

4 次查看(过去 30 天)
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.

采纳的回答

Drew Davis
Drew Davis 2015-6-23
See this answers page which may be relevant in your case
  1 个评论
Albert Mathews
Albert Mathews 2015-6-23
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.

请先登录,再进行评论。

更多回答(1 个)

Albert Mathews
Albert Mathews 2015-7-30
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.

类别

Help CenterFile Exchange 中查找有关 Conditionally Executed Subsystems and Models 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by