forked from bpoolla/Australian10gen-lowinertia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomment_blocks.m
53 lines (38 loc) · 1.84 KB
/
comment_blocks.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
function comment_blocks(sys)
vibus=[102; 208; 212; 215; 216; 308; 309; 312; 314; 403; 405; 410; 502; 504; 508];
lfbus=[ 24; 28; 27; 26; 25; 20; 23; 22; 21; 1; 29; 16; 18; 17; 19];
switch sys.model
case 'Australian14gen_following_inertia'
node='Australian14gen_inertia/Measurements_VI';
set_param(node,'commented','off')
node='Australian14gen_inertia/Measurements_low';
set_param(node,'commented','on')
for i=1:15
node=['Australian14gen_inertia/VI',num2str(vibus(i,:)),'_form'];
set_param(node,'commented','on')
node=['Australian14gen_inertia/','VI',num2str(vibus(i,:))];
set_param(node,'commented','off')
end
case 'Australian14gen_forming_inertia'
node='Australian14gen_inertia/Measurements_VI';
set_param(node,'commented','off')
node='Australian14gen_inertia/Measurements_low';
set_param(node,'commented','on')
for i=1:15
node=['Australian14gen_inertia/VI',num2str(vibus(i,:)),'_form'];
set_param(node,'commented','off')
node=['Australian14gen_inertia/','VI',num2str(vibus(i,:))];
set_param(node,'commented','on')
end
case 'Australian14gen_low_inertia'
node='Australian14gen_inertia/Measurements_VI';
set_param(node,'commented','on')
node='Australian14gen_inertia/Measurements_low';
set_param(node,'commented','off')
for i=1:15
node=['Australian14gen_inertia/VI',num2str(vibus(i,:)),'_form'];
set_param(node,'commented','on')
node=['Australian14gen_inertia/','VI',num2str(vibus(i,:))];
set_param(node,'commented','on')
end
end