⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fm_setting.m

📁 这是一个很适合研究和学习用的电力系统仿真软件
💻 M
📖 第 1 页 / 共 2 页
字号:
               'Tag','Checkbox4', ...
               'Value',Settings.showlf);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings.robust = get(gcbo,''Value'');', ...
               'Position',[0.078  9.5*d1   0.43   d2], ...
               'String','Robust Power Flow', ...
               'Style','checkbox', ...
               'Tag','Checkbox44', ...
               'Value',Settings.robust);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings.conv = get(gcbo,''Value'');', ...
               'Position',[0.078     8*d1    0.43   d2], ...
               'String','Check Component Bases', ...
               'Style','checkbox', ...
               'Tag','Checkbox3', ...
               'Value',Settings.conv);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','fm_setting setplot', ...
               'Position',[0.078   14*d1  0.43  d2], ...
               'String','Plot during Simulation', ...
               'Style','checkbox', ...
               'Tag','Checkbox2', ...
               'Value',Settings.plot);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','fm_setting simulink', ...
               'Position',[0.078   15.5*d1  0.43  d2], ...
               'String','Update Simulink during TD', ...
               'Style','checkbox', ...
               'Tag','CheckboxSimulink', ...
               'Value',Settings.simtd);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings.status = get(gcbo,''Value'');', ...
               'Position',[0.078   12.5*d1   0.43    d2], ...
               'String','Show Iteration Status', ...
               'Style','checkbox', ...
               'Tag','Checkbox1', ...
               'Value',Settings.status);
% VS computations: 'Callback', 'fm_setting setvscomp'
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings.pq2z = get(gcbo,''Value'');', ...
               'Position',[0.078   3.5*d1   0.43   d2], ...
               'String','Convert PQ bus to Z', ...
               'Style','checkbox', ...
               'Tag','Checkbox7', ...
               'Value',Settings.pq2z);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings.pv2pq = get(gcbo,''Value'');', ...
               'Position',[0.078   2*d1   0.43   d2], ...
               'String','Check PV reactive limits', ...
               'Style','checkbox', ...
               'Tag','Checkbox9', ...
               'Value',Settings.pv2pq);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','fm_setting fixt', ...
               'Position',[0.078   19.5*d1   0.43   d2], ...
               'String','Fixed time step', ...
               'Style','checkbox', ...
               'Tag','Checkbox8', ...
               'Value',Settings.fixt);

% Right-hand side
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings.beep = get(gcbo,''Value'');', ...
               'Position',[0.558     4*d1  0.356    d2], ...
               'String','Acoustic Signal', ...
               'Style','radiobutton', ...
               'Tag','RadioButton1', ...
               'Value',Settings.beep);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color04, ...
               'Callback','fm_setting tstep', ...
               'ForegroundColor',Theme.color05, ...
               'FontName',Theme.font01, ...
               'HorizontalAlignment','left', ...
               'Position',[0.558    18*d1   0.356   d2], ...
               'String',num2str(Settings.tstep), ...
               'Style','edit', ...
               'Tag','EditTextTimeStep');
if Settings.fixt
  set(h1,'Enable','on');
else
  set(h1,'Enable','off');
end
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'HorizontalAlignment','left', ...
               'Position',[0.558   19.25*d1  0.294  d2], ...
               'String','Time step [s]', ...
               'Style','text', ...
               'Tag','StaticText13');

h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color04, ...
               'Callback','fm_setting deltadelta', ...
               'ForegroundColor',Theme.color05, ...
               'FontName',Theme.font01, ...
               'HorizontalAlignment','left', ...
               'Position',[0.558    15*d1   0.356   d2], ...
               'String',num2str(Settings.deltadelta), ...
               'Style','edit', ...
               'Tag','EditTextDelta');
if Settings.checkdelta
  set(h1,'Enable','on');
else
  set(h1,'Enable','off');
end
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'HorizontalAlignment','left', ...
               'Position',[0.558   16.25*d1  0.294  d2], ...
               'String','Max delta diff [deg.]', ...
               'Style','text', ...
               'Tag','StaticText13');


h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color04, ...
               'Callback','Settings.pfsolver = get(gcbo,''Value'');', ...
               'ForegroundColor',Theme.color05, ...
               'Position',[0.558    12*d1   0.356   d2], ...
               'String',pfsolver, ...
               'Style','popupmenu', ...
               'Tag','PopupMenu3', ...
               'Value',Settings.pfsolver);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'HitTest','off', ...
               'HorizontalAlignment','left', ...
               'Position',[0.558   13.25*d1    0.3   0.8*d2], ...
               'String','Power Flow Solver', ...
               'Style','text', ...
               'Tag','StaticText15');

h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color04, ...
               'Callback','Settings.method = get(gcbo,''Value'');', ...
               'ForegroundColor',Theme.color05, ...
               'Position',[0.558    9*d1   0.356   d2], ...
               'String',methods, ...
               'Style','popupmenu', ...
               'Tag','PopupMenu1', ...
               'Value',Settings.method);
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'HitTest','off', ...
               'HorizontalAlignment','left', ...
               'ListboxTop',0, ...
               'Position',[0.558   10.25*d1  0.294  0.8*d2], ...
               'String','Integration Method', ...
               'Style','text', ...
               'Tag','StaticText12');

h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color04, ...
               'Callback','fm_setting setplotvar', ...
               'ForegroundColor',Theme.color05, ...
               'Position',[0.558     6*d1  0.356    d2], ...
               'String',plottype, ...
               'Style','popupmenu', ...
               'Tag','PopupMenu2', ...
               'Value',Settings.plottype);
if Settings.plot
  set(h1,'Enable','On');
else
  set(h1,'Enable','Off');
end
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'HitTest','off', ...
               'HorizontalAlignment','left', ...
               'Position',[0.558   7.25*d1    0.3   0.8*d2], ...
               'String','Plotting Variables', ...
               'Style','text', ...
               'Tag','StaticText11');

h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color03, ...
               'Callback','close(gcf);', ...
               'FontWeight','bold', ...
               'ForegroundColor',Theme.color09, ...
               'Position',[0.558     2*d1    0.16   d2], ...
               'String','OK', ...
               'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
               'Units', 'normalized', ...
               'BackgroundColor',Theme.color02, ...
               'Callback','Settings = get(gcf,''UserData''); close(gcf);', ...
               'Position',[0.754     2*d1   0.16  d2], ...
               'String','Cancel', ...
               'Tag','Pushbutton5');

if nargout > 0, fig = h0; end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -