-
Notifications
You must be signed in to change notification settings - Fork 3
/
gendata.m
23 lines (19 loc) · 970 Bytes
/
gendata.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% This script updates GUI data after any one of the
% following actions:
% New generator selection
NewGenNo=max([1,round(get(sli_gen,'Value'))]);
set(gen_cur,'String',num2str(NewGenNo));
set(GenInertia,'String',num2str(gen_inertia(NewGenNo)));
set(GenDamp,'String',num2str(gen_damp(NewGenNo)));
set(GenBranch,'String',num2str(gen_branch(NewGenNo)));
set(ControlBusName,'String',num2str(bus_R(NewGenNo)));
set(VoltageLimitMax,'String',num2str(VRmax(NewGenNo)));
set(VoltageLimitMin,'String',num2str(VRmin(NewGenNo)));
set(ExcitorCompKA,'String',num2str(ExKA(NewGenNo)));
set(ExcitorCompTA,'String',num2str(ExTA(NewGenNo)));
set(ExcitorStabKF,'String',num2str(ExKF(NewGenNo)));
set(ExcitorStabTF,'String',num2str(ExTF(NewGenNo)));
set(ExcitorDymKE,'String',num2str(ExKE(NewGenNo)));
set(ExcitorDymTE,'String',num2str(ExTE(NewGenNo)));
set(ExcitorSatAEX,'String',num2str(ExAEX(NewGenNo)));
set(ExcitorSatBEX,'String',num2str(ExBEX(NewGenNo)));