-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function blk = wind_turbine_activeVariantBlock(variant_sub_name) | ||
% Code to return path to block which is the active variant. | ||
|
||
% Copyright 2022 The MathWorks, Inc. | ||
|
||
vnt_list = get_param(variant_sub_name,'Variants'); | ||
vnt_actv = get_param(variant_sub_name,'ActiveVariant'); | ||
|
||
blk = []; | ||
if(~isempty(vnt_actv)) | ||
blk = vnt_list(strcmp(vnt_actv,{vnt_list(:).Name})).BlockName; | ||
end |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info location="wind_turbine_activeVariantBlock.m" type="File"/> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.