Bus selector cannot find signals where the name has been changed programmatically?
Hi,
I programmatically need to change signal names in simulink.
I use a code similar to:
lineH = find_system(gcs, ‘FindAll’, ‘on’, ‘type’, ‘line’);
set(lineH, ‘Name’, ‘NewName’);
So far so good, but when the changed signal is fed into a bus and should then be selected with a bus selector block, the selector block does not find the "NewName".
I would need to manually open the bus selector block and select the "NewName". Problem is, that there are hundrets of signals to be changed and even much more bus selectors, where the change needs then to be done manually.
Interresting is, that if a signal name change in Simulink is done manually, the bus selectors are somehow updated and the "NewName" is detected automatically without the need of selecting the signal in the respective bus selectors.
Has anyone a solution for this problem?
It would be nice, if there was a built in matlab/simulink function that can automatically update all bus selectors after a programmatically performed signal name change?
Thanks for you help.
ThomasHi,
I programmatically need to change signal names in simulink.
I use a code similar to:
lineH = find_system(gcs, ‘FindAll’, ‘on’, ‘type’, ‘line’);
set(lineH, ‘Name’, ‘NewName’);
So far so good, but when the changed signal is fed into a bus and should then be selected with a bus selector block, the selector block does not find the "NewName".
I would need to manually open the bus selector block and select the "NewName". Problem is, that there are hundrets of signals to be changed and even much more bus selectors, where the change needs then to be done manually.
Interresting is, that if a signal name change in Simulink is done manually, the bus selectors are somehow updated and the "NewName" is detected automatically without the need of selecting the signal in the respective bus selectors.
Has anyone a solution for this problem?
It would be nice, if there was a built in matlab/simulink function that can automatically update all bus selectors after a programmatically performed signal name change?
Thanks for you help.
Thomas Hi,
I programmatically need to change signal names in simulink.
I use a code similar to:
lineH = find_system(gcs, ‘FindAll’, ‘on’, ‘type’, ‘line’);
set(lineH, ‘Name’, ‘NewName’);
So far so good, but when the changed signal is fed into a bus and should then be selected with a bus selector block, the selector block does not find the "NewName".
I would need to manually open the bus selector block and select the "NewName". Problem is, that there are hundrets of signals to be changed and even much more bus selectors, where the change needs then to be done manually.
Interresting is, that if a signal name change in Simulink is done manually, the bus selectors are somehow updated and the "NewName" is detected automatically without the need of selecting the signal in the respective bus selectors.
Has anyone a solution for this problem?
It would be nice, if there was a built in matlab/simulink function that can automatically update all bus selectors after a programmatically performed signal name change?
Thanks for you help.
Thomas busselector, bus selector, programmatically, signal name change programmatically, signal name change, programmatically change simulink signal name, signal name change with m script MATLAB Answers — New Questions