Класс: Simulink. VariantConfigurationData
Пакет: Simulink
Удалите контрольную переменную из различной настройки
vcdataObj.removeControlVariable (nameOfConfiguration, nameOfControlVariable)
удаляет контрольную переменную из различной настройки.vcdataObj.removeControlVariable(nameOfConfiguration,nameOfControlVariable)
|
Имя различной настройки. |
|
Имя контрольной переменной, которая будет удалена. |
% Define the variant configuration data object
vcdataObj = Simulink.VariantConfigurationData;
% Add a variant configuration named LinInterExp
vcdataObj.addConfiguration('LinInterExp',...
'Linear Internal Experimental Plant Controller');
% Add control variables SmartSensor1Mod and PlanLocation
vcdataObj.addControlVariables('LinInterExp',...
[struct('Name','SmartSensor1Mod','Value','2')]);
% Remove the control variable SmartSensor1Mod
% from the configuration LinInterExp
vcdataObj.removeControlVariable('LinInterExp',...
'SmartSensor1Mod')