%   Copyright 2021 The MathWorks, Inc.

val = Simulink.Parameter;
val.Value = 1;
val.DataType = 'int32';
val.CoderInfo.StorageClass = 'Custom';
val.CoderInfo.CustomStorageClass = 'GetSet';
val.CoderInfo.CustomAttributes.HeaderFile = 'slexVariantParametersStartup_VCtrl.h';

VCtrl = Simulink.VariantControl('Value', val, 'ActivationTime', 'startup');

spec = Simulink.Parameter(0);
spec.CoderInfo.StorageClass = 'ExportedGlobal';

Kp = Simulink.VariantVariable('Choices', {'VCtrl == 1', 0.15, 'VCtrl == 2', 0.5,...
    'VCtrl == 3', 0.75, 'VCtrl == 4', 1}, 'Specification', 'spec');

Ki = Simulink.VariantVariable('Choices', {'VCtrl == 1', 4.5, 'VCtrl == 2', 4,...
    'VCtrl == 3', 3.5, 'VCtrl == 4', 3}, 'Specification', 'spec');
