diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json index 99987e5..36f4043 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json @@ -100,8 +100,7 @@ 88, 89, 90, - 91, - 92 + 91 ], "hierarchyUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json" diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json index f57e430..18304b1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json @@ -1,4 +1,35 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10009", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10012", "className":"Simulink.Outport", @@ -146,37 +177,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10009", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10007", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10008#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg index 320f2f4..d06e4bc 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + @@ -23,11 +71,11 @@ - + - + 1 @@ -45,11 +93,11 @@ - + - + r_inpTgtScaDft @@ -71,11 +119,11 @@ - + - + 1 @@ -93,11 +141,11 @@ - + - + r_inpTgtScaRaw @@ -108,11 +156,11 @@ - + - + sfix16_En4 @@ -122,54 +170,6 @@ - - - - - - - - - - - - - - - - - - else { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -186,5 +186,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg index 40eea73..625ae9e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg @@ -181,7 +181,7 @@ - + @@ -519,5 +519,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json index f99a267..e9834b5 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json @@ -147,40 +147,63 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10513", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10520", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"r_fieldWeak ", + "label":"r_fieldWeak ", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "Threshold", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "u2 ~= 0", - "off", + "1", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", + "Inherit: auto", "off", + "inherit", "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", "0", - "on" + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -189,8 +212,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -199,7 +222,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Outport", "masktype":"" } }, @@ -253,42 +276,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10512", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10516", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Sum4", - "label":"Sum4", + "name":"n_fieldWeakAuthHi", + "label":"n_fieldWeakAuthHi", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "FramePeriod" ], "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", + "n_fieldWeakAuthHi", + "on", + "inf", "[]", "[]", - "Inherit: Same as first input", + "fixdt(1,16,4)", "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -297,8 +310,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 3, + 7 ] }, "viewer":{ @@ -307,7 +320,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Constant", "masktype":"" } }, @@ -360,65 +373,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10511", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10510", "className":"Simulink.Sum", @@ -616,11 +570,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10503", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10515", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"id_fieldWeakMax", + "label":"id_fieldWeakMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "id_fieldWeakMax", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10504", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -629,7 +632,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "n_motAbs", "local", "Tag" ], @@ -649,11 +652,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10504", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10503", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -662,7 +665,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "r_inpTgt", "local", "Tag" ], @@ -715,39 +718,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10506", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10501", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" + "z_ctrlTypSel", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -755,7 +746,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Goto", "masktype":"" } }, @@ -791,11 +782,117 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10498", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10519", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"r_fieldWeakLo", + "label":"r_fieldWeakLo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "r_fieldWeakLo", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10513", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10497", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -803,7 +900,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -821,6 +918,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10511", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10495", "className":"Simulink.Product", @@ -936,51 +1092,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10492", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10499", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"From24", + "label":"From24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(0,16,15)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "r_inpTgt", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -988,7 +1118,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, @@ -1050,27 +1180,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10505", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10517", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"n_fieldWeakAuthLo", + "label":"n_fieldWeakAuthLo", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "r_blendFactor", - "local", - "Tag" + "n_fieldWeakAuthLo", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1078,7 +1224,52 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10506", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", "masktype":"" } }, @@ -1132,21 +1323,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10501", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10498", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlTypSel", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -1160,7 +1349,144 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10512", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum4", + "label":"Sum4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10490", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs5", + "label":"Abs5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10496", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_blendFactor", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -1263,19 +1589,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10497", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10505", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "r_blendFactor", + "local", "Tag" ], "tabs":[ @@ -1289,148 +1617,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10519", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10492", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"r_fieldWeakLo", - "label":"r_fieldWeakLo", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "r_fieldWeakLo", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,15)", + "off", + "Simplest", "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10499", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10520", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_fieldWeak ", - "label":"r_fieldWeak ", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1440,7 +1665,7 @@ "tabs_idx":[ 0, 2, - 11 + 9 ] }, "viewer":{ @@ -1449,85 +1674,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10496", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_blendFactor", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10490", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", + "blocktype":"Product", "masktype":"" } }, @@ -1598,104 +1745,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10516", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_fieldWeakAuthHi", - "label":"n_fieldWeakAuthHi", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_fieldWeakAuthHi", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10517", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_fieldWeakAuthLo", - "label":"n_fieldWeakAuthLo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_fieldWeakAuthLo", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10486", "className":"Simulink.Inport", @@ -1763,55 +1812,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10515", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"id_fieldWeakMax", - "label":"id_fieldWeakMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "id_fieldWeakMax", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10514#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png index ed880b4..54359b3 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg index 6800785..a29d9dd 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg @@ -86,188 +86,44 @@ - - - + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + 1 - - + + - - - + + + - - + + - - sfix16_En4 + + r_fieldWeak @@ -288,11 +144,11 @@ - + - + r_fieldWeakHi @@ -310,11 +166,11 @@ - + - + r_fieldWeakHi @@ -325,11 +181,11 @@ - + - + sfix16_En4 @@ -341,59 +197,58 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - + + n_fieldWeakAuthHi - - + + + + + + + + + + + + + + + + + n_fieldWeakAuthHi - + - - + + - + sfix16_En4 @@ -415,11 +270,11 @@ - + - + a_phaAdvMax @@ -437,11 +292,11 @@ - + - + a_phaAdvMax @@ -452,75 +307,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -542,27 +333,27 @@ - + - + - + - + - + - + @@ -580,11 +371,11 @@ - + - + sfix16_En4 @@ -606,27 +397,27 @@ - + - + - + - + - + - + @@ -644,11 +435,11 @@ - + - + sfix16_En4 @@ -662,7 +453,7 @@ - + @@ -670,35 +461,35 @@ - + - + - + - + - + - + - + - + @@ -710,35 +501,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -756,11 +547,11 @@ - + - + sfix16_En4 @@ -774,7 +565,7 @@ - + @@ -782,35 +573,35 @@ - + - + - + - + - + - + - + - + @@ -822,35 +613,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -868,11 +659,11 @@ - + - + sfix16_En4 @@ -884,29 +675,59 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + id_fieldWeakMax - - + + + + + + + + + + + + + + + + + id_fieldWeakMax + + + + + + + + + + + + + + + sfix16_En4 @@ -927,11 +748,11 @@ - + - + [n_motAbs] @@ -948,6 +769,39 @@ + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + @@ -960,11 +814,11 @@ - + - + [r_fieldWeak] @@ -981,11 +835,755 @@ + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + r_fieldWeakLo + + + + + + + + + + + + + + + + + + + + + + r_fieldWeakLo + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + n_fieldWeakAuthLo + + + + + + + + + + + + + + + + + + + + + + n_fieldWeakAuthLo + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -993,27 +1591,27 @@ - + - + - + - + - + - + @@ -1039,11 +1637,11 @@ - + - + boolean @@ -1053,393 +1651,6 @@ - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En15 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En15 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En15 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_blendFactor] - - - - - - - - - - - - - - - @@ -1452,11 +1663,11 @@ - + - + CTRL_FOC @@ -1474,11 +1685,11 @@ - + - + uint8 @@ -1490,250 +1701,43 @@ - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [z_ctrlTypSel] + + [n_motAbs] - + - - + + - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - + - - r_fieldWeakLo - - - - - - - - - - - - - - - - - - - - - - r_fieldWeakLo - - - - - - - - - - - - - - + sfix16_En4 @@ -1745,43 +1749,59 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + + + + + + + + + + + + + + + + + - - + + - + - + - + sfix16_En4 @@ -1791,107 +1811,11 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_fieldWeak - - - - - - - - - - - - - - - - - - - - - - - - - - [r_blendFactor] - - - - - - - - - - - - - - - - - - - - - - ufix16_En15 - - - - - - - - - + @@ -1899,35 +1823,35 @@ - + - + - + - + - + - + - + - + @@ -1953,11 +1877,11 @@ - + - + sfix16_En4 @@ -1967,6 +1891,271 @@ + + + + + + + + + + + + + + + + + + [r_blendFactor] + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_blendFactor] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + @@ -1979,11 +2168,11 @@ - + - + 2 @@ -2001,11 +2190,11 @@ - + - + r_inpTgt @@ -2016,137 +2205,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuthHi - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuthHi - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuthLo - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuthLo - - - - - - - - - - - - - - + sfix16_En4 @@ -2168,11 +2231,11 @@ - + - + 1 @@ -2190,11 +2253,11 @@ - + - + z_ctrlTypSel @@ -2205,11 +2268,11 @@ - + - + uint8 @@ -2219,69 +2282,6 @@ - - - - - - - - - - - - - - - - - - id_fieldWeakMax - - - - - - - - - - - - - - - - - - - - - - id_fieldWeakMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -2796,5 +2796,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json index a310c6e..064c7cb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json @@ -48,6 +48,86 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10186", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"task3", + "label":"task3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10168", "className":"Simulink.Outport", @@ -179,43 +259,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10184", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10167", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"UnitDelay5", - "label":"UnitDelay5", + "name":"task1", + "label":"task1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", [ ], - "Auto" + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -224,7 +334,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Outport", "masktype":"" } }, @@ -328,86 +438,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10167", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"task1", - "label":"task1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10190", "className":"Simulink.DataTypeConversion", @@ -456,73 +486,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10186", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10184", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"task3", - "label":"task3", + "name":"UnitDelay5", + "label":"UnitDelay5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "InitialCondition", + "InputProcessing", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", "0", + "Inherited", + "-1", "", + "", + "off", [ ], - "Dialog", - "Auto", - "off" + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 4 ] }, "viewer":{ @@ -531,7 +531,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"UnitDelay", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg index db4340b..6e6cb36 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg @@ -39,6 +39,54 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + task3 + + + + + + + + @@ -51,11 +99,11 @@ - + - + 2 @@ -73,11 +121,11 @@ - + - + task2 @@ -99,35 +147,35 @@ - + - + - + - + - + - + - + - + @@ -148,127 +196,80 @@ - - - - - - - - - - - boolean - - - - - + - + Ini=0 + + + + + + + + + + + boolean + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + 1 + - - + + - - - + + + - - + + - - boolean - - - - - - - - - - - - - - - Ini=0 + + task1 @@ -289,35 +290,35 @@ - + - + - + - + - + - + - + - + @@ -343,11 +344,11 @@ - + - + Ini=1 @@ -355,29 +356,29 @@ - + - + - + - + - + - + @@ -401,35 +402,35 @@ - + - + - + - + - + - + - + - + @@ -455,11 +456,11 @@ - + - + Ini=1 @@ -470,11 +471,11 @@ - + - + boolean @@ -484,54 +485,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - task1 - - - - - - - - @@ -544,19 +497,19 @@ - + - + - + - + @@ -582,11 +535,11 @@ - + - + boolean @@ -598,44 +551,91 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 3 - - - + + - - - + + + + + + + + + + + Ini=0 + + + + + + + - + - - task3 + + boolean @@ -871,5 +871,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json index 63b974b..e735862 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json @@ -1,90 +1,10 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10370", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vd", - "label":"Vd", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Voltage_Mode", - "label":"Voltage_Mode", + "name":"Vd_Calculation", + "label":"Vd_Calculation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -92,8 +12,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -105,7 +25,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -116,9 +35,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -128,7 +48,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -141,7 +61,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -151,18 +70,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -176,142 +98,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Torque_Mode", - "label":"Torque_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108", - "className":"Simulink.SwitchCase", - "icon":"WebViewIcon3", - "name":"Switch Case", - "label":"Switch Case", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "CaseConditions", - "ShowDefaultCase", - "SampleTime", - "ZeroCross" - ], - "values":[ - "{VLT_MODE, SPD_MODE, TRQ_MODE}", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SwitchCase", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "className":"Simulink.SubSystem", @@ -325,8 +111,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -338,7 +124,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -349,9 +134,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -361,7 +147,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -374,7 +160,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -384,18 +169,120 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Open_Mode", + "label":"Open_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, 6 ] }, @@ -448,6 +335,82 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10425", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10391", "className":"Simulink.Goto", @@ -481,6 +444,78 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108", + "className":"Simulink.SwitchCase", + "icon":"WebViewIcon3", + "name":"Switch Case", + "label":"Switch Case", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "CaseConditions", + "ShowDefaultCase", + "SampleTime", + "ZeroCross" + ], + "values":[ + "{VLT_MODE, SPD_MODE, TRQ_MODE}", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SwitchCase", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10424", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10420", "className":"Simulink.Goto", @@ -548,11 +583,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10388", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10418", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -561,7 +596,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq_max", "local", "Tag" ], @@ -646,792 +681,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10735", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Vd_Calculation", - "label":"Vd_Calculation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10412", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10424", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10410", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10409", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10723", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10722", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10425", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8834", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_Vlt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8830", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_Open", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10030", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From60", - "label":"From60", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10367", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From59", - "label":"From59", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From58", - "label":"From58", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Open_Mode", - "label":"Open_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From57", - "label":"From57", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8831", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_Trq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8841", "className":"Simulink.Goto", @@ -1466,290 +715,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8803", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From48", - "label":"From48", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Trq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Spd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10730", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8799", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From44", - "label":"From44", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8793", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8804", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From49", - "label":"From49", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Open", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_mot", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From68", - "label":"From68", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10724", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10418", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10412", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1758,102 +728,7 @@ "IconDisplay" ], "values":[ - "Vq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From54", - "label":"From54", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8852", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto30", - "label":"Goto30", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq", + "id", "local", "Tag" ], @@ -1906,19 +781,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10722", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_enaAdvCtrl", + "r_iqLimProtMax", + "local", "Tag" ], "tabs":[ @@ -1932,510 +809,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8834", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From53", - "label":"From53", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10417", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_nLimProtMax", - "label":"Vq_nLimProtMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "20", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10720", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_iqLimProtMax", - "label":"r_iqLimProtMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "17", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10422", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "15", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10742", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10406", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "13", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10366", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8801", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "Vq_Vlt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10398", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq", "local", "Tag" ], @@ -2454,170 +846,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10421", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8832", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_Spd", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10415", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "12", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From67", - "label":"From67", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10368", "className":"Simulink.Outport", @@ -2698,6 +926,1162 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10408", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10030", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8830", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Open", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From68", + "label":"From68", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From67", + "label":"From67", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From58", + "label":"From58", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From57", + "label":"From57", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10742", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8852", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto30", + "label":"Goto30", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From60", + "label":"From60", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8801", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From46", + "label":"From46", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Vlt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10730", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8804", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From49", + "label":"From49", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Open", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8793", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From38", + "label":"From38", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10388", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10410", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8792", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From37", + "label":"From37", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10370", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vd", + "label":"Vd", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From36", + "label":"From36", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_mot", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10724", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Voltage_Mode", + "label":"Voltage_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10723", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10421", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto31", + "label":"Goto31", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8777", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10409", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From34", + "label":"From34", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10367", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10366", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10416", "className":"Simulink.Inport", @@ -2766,11 +2150,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10404", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8832", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Spd", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10423", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -2793,7 +2210,105 @@ "OutputFunctionCall" ], "values":[ - "9", + "16", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From45", + "label":"From45", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10415", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_min", + "label":"Vq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "12", "Port number", "[]", "[]", @@ -2900,11 +2415,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10369", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From54", + "label":"From54", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -2912,7 +2427,7 @@ "IconDisplay" ], "values":[ - "Vd", + "Vd_min", "Tag" ], "tabs":[ @@ -2931,11 +2446,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10403", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From47", + "label":"From47", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Spd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10720", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id", - "label":"id", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -2958,7 +2504,7 @@ "OutputFunctionCall" ], "values":[ - "7", + "17", "Port number", "[]", "[]", @@ -2997,37 +2543,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8773", "className":"Simulink.From", @@ -3127,145 +2642,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10426", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Torque_Mode", + "label":"Torque_Mode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Auto", + "", + "", "off", "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", "on", "off", - "off", - "off" + "" ], "tabs":[ "Main", - "Signal Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 5, + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10423", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "16", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8792", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3273,7 +2753,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -3292,11 +2772,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10734", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8799", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From44", + "label":"From44", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10403", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtScaAbs", - "label":"r_inpTgtScaAbs", + "name":"id", + "label":"id", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3319,7 +2830,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "7", "Port number", "[]", "[]", @@ -3359,11 +2870,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From59", + "label":"From59", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3371,7 +2882,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "iq_max", "Tag" ], "tabs":[ @@ -3390,11 +2901,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10372", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From53", + "label":"From53", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10422", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlMod", - "label":"z_ctrlMod", + "name":"iq_max", + "label":"iq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3417,7 +2959,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "15", "Port number", "[]", "[]", @@ -3457,11 +2999,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10369", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3469,7 +3011,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vd", "Tag" ], "tabs":[ @@ -3488,42 +3030,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10373", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10404", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"Vd_max", + "label":"Vd_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3546,7 +3057,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "9", "Port number", "[]", "[]", @@ -3585,72 +3096,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10408", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10427", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10402", "className":"Simulink.Inport", @@ -3718,37 +3163,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8777", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10721", "className":"Simulink.Inport", @@ -3817,11 +3231,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10371", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10398", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10426", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3844,7 +3291,238 @@ "OutputFunctionCall" ], "values":[ - "1", + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10406", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_max", + "label":"id_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "13", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8831", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Trq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8803", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From48", + "label":"From48", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Trq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10427", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10372", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlMod", + "label":"z_ctrlMod", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", "Port number", "[]", "[]", @@ -3950,6 +3628,271 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10417", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "20", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10371", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10734", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10735", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto21", + "label":"Goto21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10414", "className":"Simulink.Inport", @@ -4017,6 +3960,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10373", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png index 75edb28..ca02516 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg index 40a53a5..b9619dc 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg @@ -13,57 +13,9 @@ - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vd - - - - - - - - - - - - - + + + @@ -71,74 +23,74 @@ - + - + - - r_inpTgtSca + + id_Tgt - + - - r_inpTgtScaAbs + + id - + - - Vq_max + + Vd_max - + - - Vq_min + + Vd_min - + - - r_iqLimProtMax + + id_max - + - - r_nLimProtMax + + id_min - + - - Vq_Vlt + + Vd - + - - case: { } + + if { } @@ -150,7 +102,7 @@ - + @@ -163,16 +115,16 @@ - - + + - - + + - - Voltage_Mode + + Vd_Calculation @@ -184,15 +136,15 @@ - + - - + + - + action @@ -205,15 +157,15 @@ - + - - + + - + sfix16_En4 @@ -225,15 +177,15 @@ - + - - + + @@ -241,81 +193,65 @@ - + - - + + - + r_inpTgtSca - - + + - + Vq_max - - - - - - Vq_min - - - + - - iq + + Vq_min - - + + - - iq_max + + n_mot - - + + - - iq_min + + iq_limProtErr - - - - - - Vq_nLimProtMax - - - + - - Vq_Trq + + Vq_Spd - + - + case: { } @@ -328,7 +264,7 @@ - + @@ -341,16 +277,16 @@ - - + + - - + + - - Torque_Mode + + Speed_Mode @@ -362,16 +298,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -383,16 +319,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -403,140 +339,15 @@ - + - - - - - - - - - - - - - - - u1 - - - - - - - - case [ 1 ]: - - - - - - - - case [ 2 ]: - - - - - - - - case [ 3 ]: - - - - - - - - default: - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - + + @@ -544,66 +355,34 @@ - - + + - - + + - + r_inpTgtSca - - + + - - Vq_max + + Vq_Open - - + + - - Vq_min - - - - - - - - n_mot - - - - - - - - iq_limProtErr - - - - - - - - Vq_Spd - - - - - - - - case: { } + + default: { } @@ -615,8 +394,8 @@ - - + + @@ -628,16 +407,16 @@ - - + + - - + + - - Speed_Mode + + Open_Mode @@ -649,15 +428,15 @@ - + - - + + - + action @@ -670,15 +449,15 @@ - + - - + + - + sfix16_En4 @@ -698,7 +477,7 @@ - + @@ -706,19 +485,19 @@ - + - + - + - + @@ -744,11 +523,11 @@ - + - + sfix16_En4 @@ -758,6 +537,95 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + @@ -770,11 +638,11 @@ - + - + [b_enaAdvCtrl] @@ -791,6 +659,164 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + case [ 1 ]: + + + + + + + + case [ 2 ]: + + + + + + + + case [ 3 ]: + + + + + + + + default: + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + @@ -803,11 +829,11 @@ - + - + [Vq_nLimProtMax] @@ -836,11 +862,11 @@ - + - + [Vq_min] @@ -859,28 +885,28 @@ - - + + - + - + - - [z_ctrlMod] + + [Vq_max] - + @@ -902,11 +928,11 @@ - + - + [id_min] @@ -935,11 +961,11 @@ - + - + [r_inpTgtSca] @@ -956,1013 +982,6 @@ - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id_Tgt - - - - - - - - id - - - - - - - - Vd_max - - - - - - - - Vd_min - - - - - - - - id_max - - - - - - - - id_min - - - - - - - - Vd - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Vd_Calculation - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Vlt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Open] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - Vq_Open - - - - - - - - default: { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Open_Mode - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Trq] - - - - - - - - - - - - - - - @@ -1975,11 +994,11 @@ - + - + [Vd] @@ -1998,589 +1017,28 @@ - - - - - - - - - - - - - - - - [Vq_Trq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Spd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Open] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [Vq_max] + + [id] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - + @@ -2602,11 +1060,11 @@ - + - + [id_max] @@ -2625,44 +1083,29 @@ - - - + + + - - + + - - + + - - [b_enaAdvCtrl] + + [r_iqLimProtMax] - - - - - - - - - - - - - - - - - boolean + + @@ -2673,44 +1116,29 @@ - - - + + + - - + + - - + + - - [Vd_max] + + [Vq_Vlt] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2721,107 +1149,44 @@ - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - 20 + + 2 - + - - + + - - + + - - Vq_nLimProtMax - - - - - - - - - - - - - - - sfix16_En4 + + Vq @@ -2832,44 +1197,29 @@ - - - + + + - - + + - - + + - - [Vq_max] + + [id_Tgt] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2880,43 +1230,43 @@ - - + + - + - + - + [r_inpTgtSca] - + - + - - + + - + sfix16_En4 @@ -2928,58 +1278,124 @@ - - - + + + - - + + - - + + - - 17 + + [Vq_Open] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - r_iqLimProtMax + + [iq_limProtErr] + + + + + + + - + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + - - + + - + sfix16_En4 @@ -2991,58 +1407,91 @@ - - - + + + - - + + - - + + - - 15 + + [id_min] - - - - - - - - - - - - - - - - - iq_max + + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3064,11 +1513,11 @@ - + - + [r_inpTgtScaAbs] @@ -3086,11 +1535,11 @@ - + - + sfix16_En4 @@ -3102,58 +1551,76 @@ - - - + + + - - + + - - + + - - 13 + + [Vq] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - id_max + + [iq_min] + + + + + + + - + - - + + - + sfix16_En4 @@ -3163,54 +1630,6 @@ - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -3223,11 +1642,11 @@ - + - + [Vq_Vlt] @@ -3245,11 +1664,11 @@ - + - + sfix16_En4 @@ -3261,28 +1680,648 @@ - - - + + + - - + + - - + + - - [iq] + + [r_nLimProtMax] - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Open] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Vd + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + r_inpTgtScaAbs + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + r_iqLimProtMax + + + + + + + + r_nLimProtMax + + + + + + + + Vq_Vlt + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Voltage_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + @@ -3304,11 +2343,11 @@ - + - + [iq_limProtErr] @@ -3327,28 +2366,124 @@ - - + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - - + + - - [Vq_Spd] + + [Vd_max] - + @@ -3358,465 +2493,6 @@ - - - - - - - - - - - - - - - - - - 12 - - - - - - - - - - - - - - - - - - - - - - Vq_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - Vq - - - - - - - - - - - - - - - - - - - - - - - - - - 19 - - - - - - - - - - - - - - - - - - - - - - iq_limProtErr - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - - - - - - - - - - - - - - - - - - - - Vd_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 14 - - - - - - - - - - - - - - - - - - - - - - id_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - id - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -3829,11 +2505,11 @@ - + - + [Vq_min] @@ -3851,11 +2527,11 @@ - + - + sfix16_En4 @@ -3867,344 +2543,44 @@ - - + + - + - - + + - - [Vq_max] + + [b_enaAdvCtrl] - + - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_mot - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 16 - - - - - - - - - - - - - - - - - - - - - - iq_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtScaAbs - - - - - - - - - - - - - - - sfix16_En4 + + boolean @@ -4225,11 +2601,11 @@ - + - + [id_Tgt] @@ -4247,11 +2623,11 @@ - + - + sfix16_En4 @@ -4263,59 +2639,44 @@ - - - + + + - - + + - - + + - - 2 + + [Vq] - - - - - - - - - - - - - - - - - z_ctrlMod + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -4336,11 +2697,11 @@ - + - + [r_inpTgtSca] @@ -4358,11 +2719,218 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 19 + + + + + + + + + + + + + + + + + + + + + + iq_limProtErr + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Spd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 16 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + sfix16_En4 @@ -4384,11 +2952,11 @@ - + - + [iq] @@ -4406,11 +2974,11 @@ - + - + sfix16_En4 @@ -4422,58 +2990,58 @@ - - + + - + - + - - 3 + + 12 - + - - + + - - + + - - r_inpTgtSca + + Vq_min - + - - + + - + sfix16_En4 @@ -4485,29 +3053,59 @@ - - - + + + - - + + - - + + - - [id_Tgt] + + 14 - - + + + + + + + + + + + + + + + + + id_min + + + + + + + + + + + + + + + sfix16_En4 @@ -4518,29 +3116,873 @@ - - - + + + - - + + - - + + - - [n_mot] + + [Vd_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Spd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 17 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + iq + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + Vq_nLimProtMax + + + + + + + + Vq_Trq + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Torque_Mode + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 15 + + + + + + + + + + + + + + + + + + + + + + iq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + Vd_max + + + + + + + + + + + + + + + sfix16_En4 @@ -4561,11 +4003,11 @@ - + - + 6 @@ -4583,11 +4025,11 @@ - + - + id_Tgt @@ -4598,59 +4040,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -4672,11 +4066,11 @@ - + - + 18 @@ -4694,11 +4088,11 @@ - + - + r_nLimProtMax @@ -4709,11 +4103,473 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_mot + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 13 + + + + + + + + + + + + + + + + + + + + + + id_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Trq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Trq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + + + + Vd_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 20 + + + + + + + + + + + + + + + + + + + + + + Vq_nLimProtMax + + + + + + + + + + + + + + sfix16_En4 @@ -4735,11 +4591,11 @@ - + - + 1 @@ -4757,11 +4613,11 @@ - + - + b_enaAdvCtrl @@ -4772,11 +4628,11 @@ - + - + boolean @@ -4788,58 +4644,58 @@ - - + + - + - + - - 10 + + 4 - + - - + + - - + + - - Vd_min + + r_inpTgtScaAbs - + - - + + - + sfix16_En4 @@ -4849,6 +4705,87 @@ + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + @@ -4861,11 +4798,11 @@ - + - + 11 @@ -4883,11 +4820,11 @@ - + - + Vq_max @@ -4898,11 +4835,74 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + sfix16_En4 @@ -5810,5 +5810,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json index 1ae2eb8..d272ff2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json @@ -1,4 +1,101 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2789", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2787", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2790", "className":"Simulink.Outport", @@ -138,103 +235,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2789", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2787", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2786", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg index 12b1eeb..f535787 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg @@ -10,132 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - + @@ -143,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -197,11 +77,11 @@ - + - + Ini=0 @@ -212,11 +92,11 @@ - + - + sfix32_En20 @@ -238,19 +118,19 @@ - + - + - + - + @@ -276,11 +156,11 @@ - + - + sfix16_En4 @@ -290,6 +170,126 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json index 52208ad..d16e65b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json @@ -285,11 +285,123 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2701", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2704", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Nearest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2849", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"Switch3", + "label":"Switch3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ @@ -341,51 +453,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2704", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Nearest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2700", "className":"Simulink.Inport", @@ -521,11 +588,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2849", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2848", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ @@ -577,73 +644,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2701", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2849#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg index a6b8112..5be4cbf 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg @@ -159,7 +159,7 @@ - + @@ -236,187 +236,58 @@ - - - + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + 3 - - + + + + + + + + + + + + + + + + + lo - + - - + + - + sfix16_En4 @@ -430,7 +301,7 @@ - + @@ -438,19 +309,19 @@ - + - + - + - + @@ -476,11 +347,11 @@ - + - + LowerRelop1 @@ -491,11 +362,11 @@ - + - + boolean @@ -505,6 +376,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -517,11 +580,11 @@ - + - + 2 @@ -539,11 +602,11 @@ - + - + u @@ -554,11 +617,11 @@ - + - + sfix16_En4 @@ -580,11 +643,11 @@ - + - + 1 @@ -602,11 +665,11 @@ - + - + up @@ -617,11 +680,11 @@ - + - + sfix16_En4 @@ -633,250 +696,187 @@ - - - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - T + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + - + F - + - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - lo - - - - - - + - + - + sfix16_En4 @@ -1106,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.json index 71919eb..3ec0544 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.json @@ -320,53 +320,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2836", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int8", - "on", - "Real World Value (RWV)", - "Zero", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2840", "className":"Simulink.DataTypeConversion", @@ -481,6 +434,53 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2836", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int8", + "on", + "Real World Value (RWV)", + "Zero", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2838", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.svg index 31eba4d..44b5d24 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.svg @@ -189,7 +189,7 @@ - + @@ -269,7 +269,7 @@ - + @@ -349,7 +349,7 @@ - + @@ -417,70 +417,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - @@ -493,19 +429,19 @@ - + - + - + - + @@ -531,11 +467,11 @@ - + - + int8 @@ -557,11 +493,11 @@ - + - + 3 @@ -579,11 +515,11 @@ - + - + hitSat @@ -594,11 +530,11 @@ - + - + boolean @@ -608,6 +544,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -800,5 +800,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json index c206fd2..9944950 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json @@ -50,11 +50,68 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2783", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2814", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2781", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Sum2", + "label":"Sum2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ @@ -79,7 +136,7 @@ "Inherit: Inherit via internal rule", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via internal rule", "off", "Simplest", "on", @@ -108,6 +165,165 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2833", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2832", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "className":"Simulink.SubSystem", @@ -201,224 +417,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2845", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2794", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2832", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2795", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2778", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "className":"Simulink.SubSystem", @@ -432,8 +430,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -445,7 +443,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -456,9 +453,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -468,7 +466,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -481,7 +479,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -491,18 +488,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -573,6 +573,380 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2815", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2733", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2795", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2732", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2783", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2785", "className":"Simulink.Outport", @@ -653,384 +1027,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2733", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2781", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2814", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clamping_circuit", - "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2732", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2833", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2773", "className":"Simulink.Inport", @@ -1098,6 +1094,63 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2778", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,5)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2771", "className":"Simulink.Inport", @@ -1232,55 +1285,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2815", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2769", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg index 211d4ec..51a4ea2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg @@ -72,104 +72,224 @@ - - - - - - - - - - - boolean - - - - - + - + Ini=0 + + + + + + + + + + + boolean + + + + - - - + + + - - + + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -180,186 +300,101 @@ - - - + + + - - + + - - + + - - up + + - - + + - - u + + - - + + - - lo + + - - + + - - hitMax - - - - - - - - y - - - - - - - - hitMin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - boolean + + sfix32_En20 - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [b_hitMax] - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -380,11 +415,11 @@ - + - + [b_hitSat] @@ -413,11 +448,11 @@ - + - + [b_hitSat] @@ -435,11 +470,11 @@ - + - + boolean @@ -451,29 +486,44 @@ - - - + + + - - + + - - + + - - [b_hitMax] + + [b_hitMin] - - + + + + + + + + + + + + + + + + + boolean @@ -494,11 +544,11 @@ - + - + [b_hitMax] @@ -516,11 +566,11 @@ - + - + boolean @@ -532,85 +582,186 @@ - - - + + + - - + + - - + + - - [b_hitMin] + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + hitMax + + + + + + + + y + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - - sfix16_En5 + + sfix16_En4 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -637,19 +788,19 @@ - + - + u - + - + y @@ -679,11 +830,11 @@ - + - + Integrator @@ -700,11 +851,11 @@ - + - + sfix16_En4 @@ -724,7 +875,7 @@ - + @@ -732,19 +883,19 @@ - + - + - + - + @@ -762,386 +913,11 @@ - + - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - satMin - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - + sfix32_En20 @@ -1169,35 +945,35 @@ - + - + preIntegrator - + - + preSat - + - + hitSat - + - + Clamp @@ -1227,11 +1003,11 @@ - + - + Clamping_circuit @@ -1248,11 +1024,11 @@ - + - + boolean @@ -1264,13 +1040,157 @@ - + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + @@ -1280,11 +1200,11 @@ - + - + 4 @@ -1302,11 +1222,11 @@ - + - + satMax @@ -1317,11 +1237,11 @@ - + - + sfix16_En4 @@ -1333,44 +1253,116 @@ - - - + + + - - + + - - + + - - [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - boolean + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out @@ -1391,11 +1383,11 @@ - + - + 6 @@ -1413,11 +1405,11 @@ - + - + ext_limProt @@ -1428,11 +1420,11 @@ - + - + sfix32_En20 @@ -1442,6 +1434,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En5 + + + + + + + + @@ -1454,11 +1502,11 @@ - + - + 3 @@ -1476,11 +1524,11 @@ - + - + I @@ -1491,11 +1539,11 @@ - + - + ufix16_En16 @@ -1517,11 +1565,11 @@ - + - + 2 @@ -1539,11 +1587,11 @@ - + - + P @@ -1554,11 +1602,11 @@ - + - + ufix16_En12 @@ -1568,54 +1616,6 @@ - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - @@ -1683,7 +1683,7 @@ - + @@ -2113,5 +2113,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json index d6c9103..ed5ae4a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json @@ -1,54 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2789", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2790", "className":"Simulink.Outport", @@ -130,52 +80,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2788", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2789", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"UnitDelay", + "label":"UnitDelay", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "round", - "|++", + "0", + "Inherited", + "-1", + "", + "", "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 3, + 4 ] }, "viewer":{ @@ -184,7 +125,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -302,6 +243,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2788", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2787#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg index 85fc095..52c0e14 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg @@ -10,12 +10,60 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + - + @@ -23,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -72,151 +120,31 @@ - - - - - - - - - - - sfix32_En20 - - - - - + - + Ini=0 - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - + + + - + - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix32_En20 @@ -238,19 +166,19 @@ - + - + - + - + @@ -276,11 +204,11 @@ - + - + sfix16_En4 @@ -302,11 +230,11 @@ - + - + 1 @@ -324,11 +252,11 @@ - + - + u @@ -339,11 +267,83 @@ - + - + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json index da73bc3..35fa977 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2709", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"hitMax", - "label":"hitMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2707", "className":"Simulink.RelationalOperator", @@ -124,6 +44,63 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2849", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2710", "className":"Simulink.Outport", @@ -204,63 +181,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2849", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2848", "className":"Simulink.Switch", @@ -385,6 +305,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2377", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2700", "className":"Simulink.Inport", @@ -453,11 +453,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2377", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2709", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", + "name":"hitMax", + "label":"hitMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ @@ -486,7 +486,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg index 52e8745..7193911 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg @@ -10,60 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - hitMax - - - - - - - - + @@ -71,19 +23,19 @@ - + - + - + - + @@ -109,11 +61,11 @@ - + - + UpperRelop @@ -124,11 +76,11 @@ - + - + boolean @@ -138,54 +90,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitMin - - - - - - - - @@ -197,13 +101,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -211,7 +163,7 @@ - + @@ -219,7 +171,7 @@ - + @@ -227,7 +179,7 @@ - + @@ -235,7 +187,7 @@ - + @@ -243,7 +195,7 @@ - + @@ -251,7 +203,7 @@ - + @@ -259,7 +211,7 @@ - + @@ -267,7 +219,7 @@ - + @@ -275,7 +227,7 @@ - + @@ -283,70 +235,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + T - + - + F @@ -364,11 +268,11 @@ - + - + sfix16_En4 @@ -378,24 +282,96 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitMin + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -403,7 +379,7 @@ - + @@ -411,7 +387,7 @@ - + @@ -419,7 +395,7 @@ - + @@ -427,7 +403,7 @@ - + @@ -435,7 +411,7 @@ - + @@ -443,7 +419,7 @@ - + @@ -451,7 +427,7 @@ - + @@ -459,7 +435,7 @@ - + @@ -467,7 +443,7 @@ - + @@ -475,7 +451,7 @@ - + @@ -483,7 +459,7 @@ - + @@ -491,7 +467,7 @@ - + @@ -499,46 +475,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - + T - + - + F @@ -556,11 +508,11 @@ - + - + sfix16_En4 @@ -582,11 +534,11 @@ - + - + 3 @@ -604,11 +556,11 @@ - + - + lo @@ -619,11 +571,11 @@ - + - + sfix16_En4 @@ -633,6 +585,54 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + @@ -698,11 +698,11 @@ - - + + - + @@ -712,30 +712,30 @@ - - 2 + + 1 - + - - + + - + - - y + + hitMax @@ -1106,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json index 7c38e18..55f6c87 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json @@ -244,100 +244,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2840", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"DataTypeConv4", - "label":"DataTypeConv4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int8", - "on", - "Real World Value (RWV)", - "Zero", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2836", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int8", - "on", - "Real World Value (RWV)", - "Zero", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2837", "className":"Simulink.Signum", @@ -436,6 +342,53 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2836", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int8", + "on", + "Real World Value (RWV)", + "Zero", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2841", "className":"Simulink.RelationalOperator", @@ -481,6 +434,53 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2840", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv4", + "label":"DataTypeConv4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int8", + "on", + "Real World Value (RWV)", + "Zero", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2838", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.svg index 6a42e4a..0d58b5f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.svg @@ -189,7 +189,7 @@ - + @@ -265,139 +265,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - + @@ -405,35 +277,35 @@ - + - + - + - + - + - + - + - + @@ -459,11 +331,11 @@ - + - + int32 @@ -485,11 +357,11 @@ - + - + 3 @@ -507,11 +379,11 @@ - + - + hitSat @@ -522,11 +394,11 @@ - + - + boolean @@ -536,11 +408,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + - + @@ -548,27 +484,27 @@ - + - + - + - + - + - + @@ -594,11 +530,11 @@ - + - + boolean @@ -608,6 +544,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -800,5 +800,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json index 3d8d1bf..e6d012f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json @@ -80,52 +80,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2783", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2817", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "rectangular", - "++", + "0", + "Inherited", + "-1", + "", + "", "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 3, + 4 ] }, "viewer":{ @@ -134,66 +125,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2781", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -303,8 +235,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -316,7 +248,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -327,9 +258,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -339,7 +271,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -352,7 +284,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -362,18 +293,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -387,39 +321,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2794", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2795", "className":"Simulink.Goto", @@ -454,399 +355,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2845", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2814", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2773", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clamping_circuit", - "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2732", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2771", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2846", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2832", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ @@ -854,7 +367,7 @@ "IconDisplay" ], "values":[ - "b_hitSat", + "b_hitMax", "Tag" ], "tabs":[ @@ -872,63 +385,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2778", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2776", "className":"Simulink.Product", @@ -1066,6 +522,321 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2778", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,5)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2781", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2773", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2733", "className":"Simulink.Inport", @@ -1133,6 +904,230 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2732", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2771", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2783", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2770", "className":"Simulink.Inport", @@ -1201,25 +1196,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2832", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2814", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "b_hitMax", - "Tag" + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1, + 9 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1227,7 +1248,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Switch", "masktype":"" } }, @@ -1299,44 +1320,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2817", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2794", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "b_hitMax", + "local", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1344,7 +1348,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Goto", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png index ba494ac..92c294c 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg index 4d94151..9e36269 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg @@ -61,140 +61,91 @@ - - - + + + - - + + - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - - - - - - - - - - + + + + + + + + + + - - + + + + + + + + + + + + + + + + + Ini=0 - - + + - - + + - - sfix32_En20 + + boolean @@ -207,7 +158,7 @@ - + @@ -215,91 +166,91 @@ - + - + up - + - + u - + - + lo - + - + hitMax - + - + y - + - + hitMin - + - + - + - + - + - + - + - + - + - + @@ -313,16 +264,16 @@ - - + + - - + + - - boolean + + sfix16_En4 @@ -332,56 +283,56 @@ - + - + boolean - - + + - - + + - - sfix16_En4 + + boolean - + - + - + - + - + - + @@ -397,7 +348,7 @@ - + @@ -411,19 +362,19 @@ - + - + u - + - + y @@ -453,11 +404,11 @@ - + - + Integrator @@ -474,11 +425,11 @@ - + - + sfix16_En4 @@ -490,46 +441,13 @@ - + - - - - - - - - - - - - - - - [b_hitMax] - - - - - - - - - - - - - - - - - - @@ -539,11 +457,11 @@ - + - + [b_hitMin] @@ -562,220 +480,99 @@ - - - + + + - - + + - - + + - - [b_hitSat] + + [b_hitMax] - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - - - - - - - - - + + boolean + + + + + + + + + + + + + + + + + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + - - + + - + - - + + - + sfix32_En20 @@ -787,58 +584,91 @@ - - - + + + - - + + - - + + - - 6 + + [b_hitMin] - - - - - - - - - - - - - - - - - ext_limProt + + - + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + - - + + - + sfix32_En20 @@ -848,6 +678,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En5 + + + + + + + + @@ -866,35 +752,35 @@ - + - + preIntegrator - + - + preSat - + - + hitSat - + - + Clamp @@ -924,11 +810,11 @@ - + - + Clamping_circuit @@ -945,11 +831,11 @@ - + - + boolean @@ -961,287 +847,73 @@ - + - - + + - - + + - - - - - - - 4 - - - - - - - - - - - - - - - - + - - satMax - - - - - - - + + - + - - sfix16_En4 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - 3 + + - - - - - - - - - - - - - - - - - I + + - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + sfix32_En20 @@ -1253,44 +925,29 @@ - - - + + + - - + + - - + + - - [b_hitMin] + + [b_hitSat] - - - - - - - - - - - - - - - - - boolean + + @@ -1301,43 +958,58 @@ - - - + + + - - + + - - + + - - 0 + + 6 - - + + + + + + + + + + + + + + + + + ext_limProt - + - - + + - + sfix32_En20 @@ -1359,11 +1031,11 @@ - + - + 5 @@ -1381,11 +1053,11 @@ - + - + satMin @@ -1396,11 +1068,257 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1422,11 +1340,11 @@ - + - + 2 @@ -1444,11 +1362,11 @@ - + - + P @@ -1459,11 +1377,11 @@ - + - + ufix16_En12 @@ -1475,44 +1393,188 @@ - - - + + + - - + + - - + + - - [b_hitMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - + + - - + + - - boolean + + sfix32_En20 @@ -1533,11 +1595,11 @@ - + - + 1 @@ -1555,11 +1617,11 @@ - + - + err @@ -1570,11 +1632,11 @@ - + - + sfix16_En4 @@ -1586,91 +1648,29 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + [b_hitMax] + - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - boolean + + @@ -2113,5 +2113,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg index 8d37a76..d38565d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg @@ -63,7 +63,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -526,7 +526,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -654,7 +654,7 @@ - + @@ -1009,9 +1009,6 @@ - - - @@ -1021,6 +1018,9 @@ + + + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg index cdaf007..85598c0 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg @@ -63,7 +63,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -526,7 +526,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -654,7 +654,7 @@ - + @@ -1009,15 +1009,15 @@ + + + - - - @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json index df6125b..c66e1f1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json @@ -1,10 +1,10 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10583", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10575", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_nLimProtMax", - "label":"r_nLimProtMax", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -33,7 +33,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -314,132 +314,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"I_backCalc_fixdt", - "label":"I_backCalc_fixdt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "yInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10630", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10627", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iqAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10656", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10658", "className":"Simulink.Goto", @@ -474,11 +348,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10642", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10649", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -487,7 +361,7 @@ "IconDisplay" ], "values":[ - "r_iqLimProtMax", + "r_nLimProtMax", "local", "Tag" ], @@ -540,11 +414,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10633", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10659", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -552,7 +426,7 @@ "IconDisplay" ], "values":[ - "iqAbs", + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -602,43 +476,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10672", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10627", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "iqAbs", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -646,16 +504,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10659", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10633", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -663,7 +521,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaAbs", + "iqAbs", "Tag" ], "tabs":[ @@ -681,37 +539,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10570", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10632", "className":"Simulink.From", @@ -744,122 +571,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10655", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10575", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_iqLimProtMax", - "label":"r_iqLimProtMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10625", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10630", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -868,7 +584,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "n_motAbs", "local", "Tag" ], @@ -887,6 +603,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10643", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10577", "className":"Simulink.Inport", @@ -954,6 +701,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10672", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10576", "className":"Simulink.Inport", @@ -1022,53 +818,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10634", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10570", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "held", + "Only when execution is resumed" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1076,16 +844,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10568", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10567", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"iqAbs", + "label":"iqAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -1108,7 +876,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -1148,21 +916,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10649", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10656", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_nLimProtMax", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -1176,16 +942,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10643", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10655", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -1193,7 +959,7 @@ "IconDisplay" ], "values":[ - "r_nLimProtMax", + "n_max", "Tag" ], "tabs":[ @@ -1260,6 +1026,127 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "yInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10634", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10625", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10657", "className":"Simulink.Inport", @@ -1328,11 +1215,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10567", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10568", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iqAbs", - "label":"iqAbs", + "name":"iq_max", + "label":"iq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -1355,7 +1242,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -1394,6 +1281,119 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10642", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10583", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10568#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg index 49a5cda..7e853f7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg @@ -13,11 +13,11 @@ - - + + - + @@ -27,30 +27,30 @@ - - 2 + + 1 - + - - + + - + - - r_nLimProtMax + + r_iqLimProtMax @@ -404,36 +404,36 @@ - - - - - - - - - - - sfix16_En4 - - - - - + - + Ini=0 + + + + + + + + + + + sfix16_En4 + + + + @@ -470,278 +470,6 @@ - - - - - - - - - - - - - - - - - - err - - - - - - - - I - - - - - - - - Kb - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - out - - - - - - - - I(z) - - - - - - - - - - - - - - - - - - - - - - I_backCalc_fixdt - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -754,11 +482,11 @@ - + - + [r_inpTgtScaAbs] @@ -777,28 +505,28 @@ - - + + - + - + - - [r_iqLimProtMax] + + [r_nLimProtMax] - + @@ -820,11 +548,11 @@ - + - + [n_max] @@ -843,43 +571,43 @@ - - + + - + - + - - [iqAbs] + + [r_inpTgtScaAbs] - + - + - - + + - + sfix16_En4 @@ -901,11 +629,11 @@ - + - + [r_iqLimProtMax] @@ -923,11 +651,11 @@ - + - + sfix16_En4 @@ -939,44 +667,29 @@ - - - + + + - - + + - - + + - - 0 + + [iqAbs] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -987,43 +700,43 @@ - - + + - + - + - - [r_inpTgtScaAbs] + + [iqAbs] - + - + - - + + - + sfix16_En4 @@ -1033,54 +746,6 @@ - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -1093,11 +758,11 @@ - + - + [iq_max] @@ -1115,11 +780,11 @@ - + - + sfix16_En4 @@ -1131,410 +796,28 @@ - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_iqLimProtMax - - - - - - - - - - - - + + - + - + - - [iq_max] + + [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - iq_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - + @@ -1556,11 +839,11 @@ - + - + [r_nLimProtMax] @@ -1578,11 +861,392 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + iqAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1604,11 +1268,11 @@ - + - + 0 @@ -1626,11 +1290,11 @@ - + - + sfix16_En4 @@ -1640,6 +1304,261 @@ + + + + + + + + + + + + + + + + + + err + + + + + + + + I + + + + + + + + Kb + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + out + + + + + + + + I(z) + + + + + + + + + + + + + + + + + + + + + + I_backCalc_fixdt + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + @@ -1652,11 +1571,11 @@ - + - + 1 @@ -1674,11 +1593,11 @@ - + - + r_inpTgtScaAbs @@ -1689,11 +1608,11 @@ - + - + sfix16_En4 @@ -1705,58 +1624,58 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - iqAbs + + iq_max - + - - + + - + sfix16_En4 @@ -1766,6 +1685,87 @@ + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + @@ -2102,5 +2102,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json index 0e2ba35..8a2bf6d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json @@ -79,55 +79,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10662", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_iqKiLimProt", - "label":"cf_iqKiLimProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_iqKiLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10597", "className":"Simulink.Sum", @@ -187,6 +138,45 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10661", "className":"Simulink.Product", @@ -245,11 +235,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10587", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10662", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKiLimProt", + "label":"cf_iqKiLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_iqKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10591", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10586", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"iq_max", + "label":"iq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ @@ -272,7 +342,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -312,50 +382,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10586", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10587", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ @@ -378,7 +409,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -484,37 +515,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10591", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10585#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.svg index af7ffe6..d5be523 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.svg @@ -59,69 +59,6 @@ - - - - - - - - - - - - - - - - - - cf_iqKiLimProt - - - - - - - - - - - - - - - - - - - - - - cf_iqKiLimProt - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - @@ -134,27 +71,27 @@ - + - + - + - + - + - + @@ -172,130 +109,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - iq_min - - - - - - - - - - - - - - + sfix16_En4 @@ -309,7 +127,7 @@ - + @@ -317,35 +135,35 @@ - + - + - + - + - + - + - + - + @@ -357,35 +175,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -403,11 +221,11 @@ - + - + sfix16_En4 @@ -417,6 +235,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_iqKiLimProt + + + + + + + + + + + + + + + + + + + + + + cf_iqKiLimProt + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -429,11 +414,11 @@ - + - + 2 @@ -451,11 +436,11 @@ - + - + iq_max @@ -466,11 +451,74 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + sfix16_En4 @@ -492,11 +540,11 @@ - + - + 1 @@ -514,11 +562,11 @@ - + - + iq @@ -529,11 +577,11 @@ - + - + sfix16_En4 @@ -543,54 +591,6 @@ - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -711,5 +711,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.svg index a02db1f..5fbcfdf 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.svg @@ -63,7 +63,7 @@ - + @@ -1009,16 +1009,16 @@ - + - + - + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json index abc5253..f373373 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json @@ -1,4 +1,160 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10809", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10815", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10805", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10777", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10619", "className":"Simulink.Outport", @@ -80,43 +236,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10811", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10812", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"cf_nKiLimProt", - "label":"cf_nKiLimProt", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "cf_nKiLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" + "Vq_max", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -124,115 +262,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10809", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10810", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_KbLimProt", - "label":"cf_KbLimProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_KbLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, @@ -265,72 +295,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10777", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10815", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10803", "className":"Simulink.Constant", @@ -381,143 +345,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10609", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10811", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"cf_nKiLimProt", + "label":"cf_nKiLimProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10812", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10805", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10814", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", + "cf_nKiLimProt", "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", "off", - "off", - "off" + "inf" ], "tabs":[ "Main", @@ -526,8 +379,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -536,7 +389,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", "masktype":"" } }, @@ -571,6 +424,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10810", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_KbLimProt", + "label":"cf_KbLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_KbLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10607", "className":"Simulink.Inport", @@ -738,6 +640,104 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10609", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10814", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10774#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.svg index bbc5fce..0cd277a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.svg @@ -10,6 +10,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + @@ -23,11 +201,11 @@ - + - + 1 @@ -45,11 +223,11 @@ - + - + Vq_nLimProtMax @@ -59,6 +237,260 @@ + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + I + + + + + + + + Kb + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + out + + + + + + + + I(z) + + + + + + + + + + + + + + + + + + + + + + I_backCalc_fixdt + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -71,11 +503,11 @@ - + - + cf_nKiLimProt @@ -93,11 +525,11 @@ - + - + cf_nKiLimProt @@ -108,11 +540,11 @@ - + - + ufix16_En16 @@ -124,59 +556,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - + + [n_max] - - + + - + - - + + - + sfix16_En4 @@ -198,11 +614,11 @@ - + - + cf_KbLimProt @@ -220,11 +636,11 @@ - + - + cf_KbLimProt @@ -235,11 +651,11 @@ - + - + ufix16_En12 @@ -249,533 +665,6 @@ - - - - - - - - - - - - - - - - - - err - - - - - - - - I - - - - - - - - Kb - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - out - - - - - - - - I(z) - - - - - - - - - - - - - - - - - - - - - - I_backCalc_fixdt - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vq_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -788,11 +677,11 @@ - + - + 2 @@ -810,11 +699,11 @@ - + - + n_max @@ -825,11 +714,11 @@ - + - + sfix16_En4 @@ -851,11 +740,11 @@ - + - + [n_max] @@ -884,11 +773,11 @@ - + - + 1 @@ -906,11 +795,11 @@ - + - + n_motAbs @@ -921,11 +810,122 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + sfix16_En4 @@ -1091,5 +1091,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json index 83c14ff..410b093 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json @@ -79,6 +79,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2896", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "yInit", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2880", "className":"Simulink.Sum", @@ -138,56 +188,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2896", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "yInit", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2879", "className":"Simulink.DataTypeConversion", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg index 60653bd..4e256e5 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg @@ -59,83 +59,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - - + @@ -143,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -192,36 +120,108 @@ - - - - - - - - - - - sfix32_En16 - - - - - + - + Ini=yInit + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg index fa862dc..3d23e4b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg @@ -63,7 +63,7 @@ - + @@ -1009,18 +1009,18 @@ - - - - - - + + + + + + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json index 2c33559..4db20e0 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json @@ -1,4 +1,54 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2894", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2889", "className":"Simulink.Outport", @@ -80,43 +130,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2894", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2893", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", + "name":"Sum3", + "label":"Sum3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "round", + "-+|", "off", - [ - ], - "Auto" + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 10 ] }, "viewer":{ @@ -125,16 +184,213 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2869", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2891", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ @@ -254,70 +510,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2893", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "-+|", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2854", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2890", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", + "name":"Kb", + "label":"Kb", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ @@ -340,7 +537,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "3", "Port number", "[]", "[]", @@ -380,263 +577,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2891", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2892", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2853", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2854", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"I", - "label":"I", + "name":"satMax", + "label":"satMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ @@ -659,7 +604,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "4", "Port number", "[]", "[]", @@ -766,11 +711,68 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2890", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2869", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2853", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", + "name":"I", + "label":"I", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ @@ -793,7 +795,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg index ee3a5c5..61f114e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - @@ -71,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -125,11 +77,11 @@ - + - + Ini=0 @@ -140,11 +92,11 @@ - + - + sfix32_En16 @@ -156,115 +108,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - + + - + - + - - 5 + + 1 - + - - + + - - + + - - satMin - - - - - - - - - - - - - - - sfix16_En4 + + out @@ -285,27 +166,27 @@ - + - + - + - + - + - + @@ -323,11 +204,11 @@ - + - + sfix16_En4 @@ -337,237 +218,6 @@ - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - satMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - @@ -580,35 +230,35 @@ - + - + - + - + - + - + - + - + @@ -626,11 +276,11 @@ - + - + sfix32_En16 @@ -640,6 +290,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -658,19 +420,19 @@ - + - + u - + - + y @@ -700,11 +462,11 @@ - + - + Integrator @@ -721,11 +483,11 @@ - + - + sfix16_En4 @@ -737,65 +499,58 @@ - + - - + + - - + + - - + + - - 2 + + + + + + + + + + - - - - - - - - - - - - - - - - - I + + - - + + - - + + - - ufix16_En16 + + sfix32_En16 @@ -806,58 +561,58 @@ - - + + - + - + - - 1 + + 5 - + - - + + - - + + - - err + + satMin - + - - + + - + sfix16_En4 @@ -879,11 +634,11 @@ - + - + 3 @@ -901,11 +656,11 @@ - + - + Kb @@ -916,11 +671,11 @@ - + - + ufix16_En12 @@ -930,6 +685,251 @@ + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + @@ -1140,5 +1140,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json index 3761fc0..19b19d2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json @@ -108,6 +108,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2878", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2882", "className":"Simulink.Outport", @@ -235,73 +302,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2878", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2878#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg index f0a576d..351f781 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg @@ -15,7 +15,7 @@ - + @@ -178,6 +178,69 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + @@ -190,11 +253,11 @@ - + - + 1 @@ -212,11 +275,11 @@ - + - + y @@ -238,19 +301,19 @@ - + - + - + - + @@ -276,11 +339,11 @@ - + - + sfix16_En4 @@ -290,69 +353,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.svg index 6aa0f64..d9a77e4 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.svg @@ -1009,6 +1009,9 @@ + + + @@ -1018,9 +1021,6 @@ - - - @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json index 8233d32..1c92278 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json @@ -1,4 +1,467 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2894", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2891", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2869", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2855", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2854", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2853", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2889", "className":"Simulink.Outport", @@ -80,42 +543,149 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2892", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2851", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", "1", - "All dimensions", - "-1" + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -125,7 +695,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -134,7 +704,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Inport", "masktype":"" } }, @@ -197,326 +767,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2894", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2854", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2855", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2890", "className":"Simulink.Inport", @@ -584,254 +834,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2869", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2891", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2853", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2851", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"err", - "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2892#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg index 44a5d35..7173cf2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg @@ -13,44 +13,91 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 1 - - - + + - - - + + + - - + + - - out + + sfix32_En16 + + + + + + + + + + + + + + + Ini=0 @@ -71,35 +118,35 @@ - + - + - + - + - + - + - + - + @@ -117,11 +164,11 @@ - + - + sfix32_En16 @@ -133,59 +180,170 @@ - - - + + + - - + + - - + + - - + + - - + + - - - - - - - - - - + + - - + + - - + + - - + + - + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + sfix16_En4 @@ -195,6 +353,292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + + @@ -213,19 +657,19 @@ - + - + u - + - + y @@ -255,11 +699,11 @@ - + - + Integrator @@ -276,11 +720,11 @@ - + - + sfix16_En4 @@ -292,113 +736,64 @@ - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y + + 1 - - + + + + + + + + + + + + + + + + + err - + - - + + - + sfix16_En4 @@ -410,216 +805,59 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - - + + - - + + - - 4 + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - satMax + + - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - satMin - - - - - - - - - - - - - - + sfix16_En4 @@ -641,11 +879,11 @@ - + - + 3 @@ -663,11 +901,11 @@ - + - + Kb @@ -678,11 +916,11 @@ - + - + ufix16_En12 @@ -692,244 +930,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - I - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - err - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1140,5 +1140,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json index 5793ceb..0bbabf1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json @@ -1,4 +1,113 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2896", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "yInit", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2882", "className":"Simulink.Outport", @@ -79,115 +188,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2880", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2896", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "yInit", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2879", "className":"Simulink.DataTypeConversion", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg index b772885..7b81dde 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg @@ -10,132 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - + @@ -143,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -197,11 +77,11 @@ - + - + Ini=yInit @@ -212,11 +92,11 @@ - + - + sfix32_En16 @@ -226,6 +106,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.svg index 3f0e43b..c11c031 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.svg @@ -63,7 +63,7 @@ - + @@ -1009,18 +1009,18 @@ - - - - + + + + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json index f7f50de..a8b562d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json @@ -1,4 +1,63 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2893", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "-+|", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2889", "className":"Simulink.Outport", @@ -79,104 +138,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2892", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2894", "className":"Simulink.UnitDelay", @@ -228,147 +189,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2869", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "DoSatur" ], "values":[ - "**", - "Element-wise(.*)", - "off", "[]", "[]", - "Inherit: Inherit via internal rule", + "Inherit: Same as second input", "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "Floor", + "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 ] }, "viewer":{ @@ -378,15 +224,15 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2855", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2854", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", + "name":"satMax", + "label":"satMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ @@ -409,7 +255,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -506,69 +352,101 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2853", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"I", - "label":"I", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Auto", + "", + "", "off", "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", "on", "off", - "off", - "off" + "" ], "tabs":[ "Main", - "Signal Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 5, + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"SubSystem", "masktype":"" } }, @@ -640,70 +518,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2893", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "-+|", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2854", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2855", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", + "name":"satMin", + "label":"satMin", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ @@ -726,7 +545,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -765,6 +584,189 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2853", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2869", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2851", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg index 67cf9f9..e8a6791 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg @@ -10,6 +10,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + @@ -23,11 +87,11 @@ - + - + 1 @@ -45,11 +109,11 @@ - + - + out @@ -59,195 +123,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + @@ -255,35 +135,35 @@ - + - + - + - + - + - + - + - + @@ -304,88 +184,263 @@ - - - - - - - - - - - sfix32_En16 - - - - - + - + Ini=0 + + + + + + + + + + + sfix32_En16 + + + + - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + up - - + + - - + + u + + + + + + + + lo + + + + + + + + y - - + + - - + + - - + + - - sfix32_En20 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 @@ -398,7 +453,7 @@ - + @@ -412,19 +467,19 @@ - + - + u - + - + y @@ -454,11 +509,11 @@ - + - + Integrator @@ -475,11 +530,11 @@ - + - + sfix16_En4 @@ -491,13 +546,76 @@ - + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Kb + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + @@ -507,11 +625,11 @@ - + - + 5 @@ -529,11 +647,11 @@ - + - + satMin @@ -544,11 +662,11 @@ - + - + sfix16_En4 @@ -558,62 +676,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - @@ -626,11 +688,11 @@ - + - + 2 @@ -648,11 +710,11 @@ - + - + I @@ -663,11 +725,11 @@ - + - + ufix16_En16 @@ -679,123 +741,68 @@ - - - + + + - - + + - - + + - - 3 + + - - - - - - - - - - - - - - - - - - - - - Kb - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - - + + - - + + - + - - sfix16_En4 + + sfix32_En16 @@ -806,59 +813,52 @@ - - - + + + - - + + - + - - 4 + + + + + + + + + + - - - - - - - - - - - - - - - - - satMax + + - - + + - + - - sfix16_En4 + + sfix32_En20 @@ -1140,5 +1140,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json index c6a3fc7..aba8340 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json @@ -1,4 +1,63 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2788", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2789", "className":"Simulink.UnitDelay", @@ -129,65 +188,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2788", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2787", "className":"Simulink.DataTypeConversion", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg index 4a3fd07..98fbccd 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg @@ -10,12 +10,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + - + @@ -23,35 +95,35 @@ - + - + - + - + - + - + - + - + @@ -72,36 +144,36 @@ - - - - - - - - - - - sfix32_En20 - - - - - + - + Ini=0 + + + + + + + + + + + sfix32_En20 + + + + @@ -118,11 +190,11 @@ - + - + 1 @@ -140,11 +212,11 @@ - + - + y @@ -154,78 +226,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json index 6799d2e..3afafe2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json @@ -1,4 +1,141 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2377", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2849", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2710", "className":"Simulink.Outport", @@ -160,11 +297,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2849", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2848", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ @@ -217,11 +354,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2707", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2704", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"UpperRelop", - "label":"UpperRelop", + "name":"LowerRelop1", + "label":"LowerRelop1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ @@ -233,7 +370,7 @@ "ZeroCross" ], "values":[ - "<", + ">", "off", "boolean", "Nearest", @@ -262,11 +399,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2377", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2700", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", + "name":"u", + "label":"u", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ @@ -282,17 +419,11 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "2", @@ -307,17 +438,10 @@ "-1", "auto", "off", - "off", - "[]", - "off", - "held", - "off", - "0", "", - [ - ], - "Dialog", - "Auto", + "on", + "off", + "off", "off" ], "tabs":[ @@ -337,16 +461,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2704", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2707", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", + "name":"UpperRelop", + "label":"UpperRelop", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ @@ -358,7 +482,7 @@ "ZeroCross" ], "values":[ - ">", + "<", "off", "boolean", "Nearest", @@ -453,73 +577,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2700", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2699", "className":"Simulink.Inport", @@ -587,63 +644,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2848", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2849#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg index bc1c52a..939bae3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg @@ -10,6 +10,246 @@ + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + @@ -23,11 +263,11 @@ - + - + 3 @@ -45,11 +285,11 @@ - + - + hitMin @@ -71,11 +311,11 @@ - + - + 1 @@ -93,11 +333,11 @@ - + - + hitMax @@ -109,187 +349,187 @@ - - - + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + T - + - + F - + - + - - + + - + sfix16_En4 @@ -299,133 +539,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - UpperRelop - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - @@ -438,19 +551,19 @@ - + - + - + - + @@ -476,11 +589,11 @@ - + - + LowerRelop1 @@ -491,11 +604,153 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + UpperRelop + + + + + + + + + + + + + + boolean @@ -517,11 +772,11 @@ - + - + 3 @@ -539,11 +794,11 @@ - + - + lo @@ -554,74 +809,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - + sfix16_En4 @@ -643,11 +835,11 @@ - + - + 1 @@ -665,11 +857,11 @@ - + - + up @@ -680,203 +872,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1106,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.json index 73bcba1..1cf9302 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.json @@ -213,6 +213,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", + "inspector":{ + "params":[ + "ZeroCross", + "SampleTime" + ], + "values":[ + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Signum", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2837", "className":"Simulink.Signum", @@ -244,6 +275,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2841", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Equal1", + "label":"Equal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "on", + "Inherit: Logical (see Configuration Parameters: Optimization)", + "Zero", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2840", "className":"Simulink.DataTypeConversion", @@ -338,37 +414,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2839", - "className":"Simulink.Signum", - "icon":"WebViewIcon3", - "name":"SignDeltaU3", - "label":"SignDeltaU3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", - "inspector":{ - "params":[ - "ZeroCross", - "SampleTime" - ], - "values":[ - "on", - "-1" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Signum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2843", "className":"Simulink.Inport", @@ -436,51 +481,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2841", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Equal1", - "label":"Equal1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "on", - "Inherit: Logical (see Configuration Parameters: Optimization)", - "Zero", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2838", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.svg index ecaa8d7..a44ec70 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.svg @@ -187,11 +187,11 @@ - - + + - + @@ -201,7 +201,7 @@ - + @@ -209,7 +209,7 @@ - + @@ -217,7 +217,7 @@ - + @@ -225,215 +225,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -459,11 +251,11 @@ - + - + int16 @@ -475,59 +267,76 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 3 - - - - - - - - - - - - - - - - - - hitSat + + - - + + - - + + - - boolean + + int32 @@ -540,7 +349,7 @@ - + @@ -548,27 +357,27 @@ - + - + - + - + - + - + @@ -594,11 +403,202 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitSat + + + + + + + + + + + + + + boolean @@ -800,5 +800,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json index 1b51581..a552bd8 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json @@ -136,316 +136,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2781", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2783", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2795", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2832", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "className":"Simulink.SubSystem", @@ -540,43 +230,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2817", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2783", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "rectangular", + "++", "off", - [ - ], - "Auto" + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 10 ] }, "viewer":{ @@ -585,16 +284,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2845", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2794", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ @@ -603,7 +302,7 @@ "IconDisplay" ], "values":[ - "b_hitSat", + "b_hitMax", "local", "Tag" ], @@ -623,51 +322,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2776", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2795", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "b_hitMin", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -675,7 +350,100 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2833", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2832", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -737,42 +505,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2815", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2817", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Value", - "VectorParams1D", + "InitialCondition", + "InputProcessing", "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "Inherited", + "-1", + "", + "", "off", - "inf" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, 3, - 7 + 4 ] }, "viewer":{ @@ -781,30 +550,254 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2833", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "b_hitMin", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "Code Generation", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2776", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -812,7 +805,74 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2773", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", "masktype":"" } }, @@ -951,50 +1011,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2773", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2781", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", + "name":"Sum2", + "label":"Sum2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "6", - "Port number", + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: auto", + "Inherit: Inherit via internal rule", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", + "Simplest", "on", - "off", - "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1004,7 +1056,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -1013,137 +1065,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2794", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clamping_circuit", - "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", + "blocktype":"Sum", "masktype":"" } }, @@ -1214,73 +1136,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2770", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"P", - "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2769", "className":"Simulink.Inport", @@ -1348,6 +1203,155 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2815", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2770", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"P", + "label":"P", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2844", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg index d4fbb3b..1edd7fa 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg @@ -63,7 +63,7 @@ - + @@ -253,68 +253,186 @@ - - - + + + - - + + - + - - + + up - + - - + + u - + - - + + lo - + - - + + hitMax + + + + + + + + y + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - sfix32_En20 + + boolean + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -335,35 +453,35 @@ - + - + - + - + - + - + - + - + @@ -381,11 +499,11 @@ - + - + sfix16_En4 @@ -397,91 +515,29 @@ - - - + + + - - - - - - - - + + - - + + - - u - - - - - - - - y + + [b_hitMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Integrator - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -493,12 +549,6 @@ - - - - - - @@ -508,11 +558,11 @@ - + - + [b_hitMin] @@ -541,11 +591,11 @@ - + - + [b_hitSat] @@ -563,11 +613,59 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + boolean @@ -589,11 +687,11 @@ - + - + [b_hitMax] @@ -611,11 +709,11 @@ - + - + boolean @@ -627,186 +725,52 @@ - - - + + + - - + + - - + + - - up + + - - + + - - u - - - - - - - - lo - - - - - - - - hitMax - - - - - - - - y - - - - - - - - hitMin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - boolean - - - - - - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + sfix16_En5 @@ -827,35 +791,35 @@ - + - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - @@ -881,11 +845,11 @@ - + - + Ini=0 @@ -896,11 +860,11 @@ - + - + boolean @@ -912,29 +876,208 @@ - - - + + + - - + + + + + + + + - - + + - - [b_hitSat] + + preIntegrator + + + + + + + + preSat + + + + + + + + hitSat + + + + + + + + Clamp - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clamping_circuit + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -946,6 +1089,12 @@ + + + + + + @@ -955,19 +1104,19 @@ - + - + - + - + @@ -985,11 +1134,11 @@ - + - + sfix32_En20 @@ -1001,99 +1150,58 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + 6 - - + + + + + + + + + + + + + + + + + ext_limProt - - - - - - - - - - sfix16_En5 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - + - - + + - + sfix32_En20 @@ -1103,54 +1211,6 @@ - - - - - - - - - - - - - - - - - - [b_hitMin] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -1163,11 +1223,11 @@ - + - + 5 @@ -1185,11 +1245,11 @@ - + - + satMin @@ -1200,11 +1260,11 @@ - + - + sfix16_En4 @@ -1226,11 +1286,11 @@ - + - + 4 @@ -1248,11 +1308,11 @@ - + - + satMax @@ -1263,11 +1323,11 @@ - + - + sfix16_En4 @@ -1279,58 +1339,67 @@ - - - + + + - - + + - - + + - - 6 + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - ext_limProt + + - + - - + + - + sfix32_En20 @@ -1340,159 +1409,9 @@ - - - - - - - - - - - - - - - - - - [b_hitMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - preIntegrator - - - - - - - - preSat - - - - - - - - hitSat - - - - - - - - Clamp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clamping_circuit - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - @@ -1502,11 +1421,11 @@ - + - + 3 @@ -1524,11 +1443,11 @@ - + - + I @@ -1539,11 +1458,11 @@ - + - + ufix16_En16 @@ -1553,69 +1472,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - P - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - @@ -1628,11 +1484,11 @@ - + - + 1 @@ -1650,11 +1506,11 @@ - + - + err @@ -1665,11 +1521,11 @@ - + - + sfix16_En4 @@ -1679,11 +1535,155 @@ + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + P + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + - + @@ -2113,5 +2113,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.svg index 24dd02b..e36b88a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.svg @@ -1009,15 +1009,15 @@ + + + - - - @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.json deleted file mode 100644 index 32960f8..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.json +++ /dev/null @@ -1,2 +0,0 @@ -[ -] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.png deleted file mode 100644 index 628e7db..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.svg deleted file mode 100644 index 48511e5..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json index 31a209f..0cd9134 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json @@ -196,11 +196,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9306", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_devSignal2", - "label":"r_devSignal2", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -229,7 +229,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "8", + "5", "Port number", "[]", "[]", @@ -242,89 +242,9 @@ "auto", "off", "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_devSignal1", - "label":"r_devSignal1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "7", - "Port number", "[]", - "[]", - "Inherit: auto", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", + "held", "off", "0", "", @@ -436,11 +356,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9299", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"DC_phaA", + "label":"DC_phaA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -469,7 +389,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", + "1", "Port number", "[]", "[]", @@ -516,171 +436,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9302", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_errCode", - "label":"z_errCode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"DC_phaB", - "label":"DC_phaB", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10064", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel1", - "label":"z_ctrlTypSel1", + "name":"b_fieldWeakEna", + "label":"b_fieldWeakEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -694,12 +454,12 @@ "FramePeriod" ], "values":[ - "z_ctrlTypSel", + "b_fieldWeakEna", "on", "inf", "[]", "[]", - "uint8", + "boolean", "off", "inf" ], @@ -774,99 +534,135 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Task_Scheduler", - "label":"Task_Scheduler", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441", + "className":"Simulink.Terminator", + "icon":"WebViewIcon3", + "name":"Terminator", + "label":"Terminator", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" ], "tabs":[ - "Main", - "-Other" ], "tabs_idx":[ - 0, - 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Terminator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10751", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation1", + "label":"Saturation1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1700", + "-1700", + "on", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Floor", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 8 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Saturate", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10749", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation", + "label":"Saturation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1700", + "-1700", + "on", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Floor", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 8 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Saturate", "masktype":"" } }, @@ -915,787 +711,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Model_Info", - "label":"Model_Info", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10258", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If4", - "label":"If4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hallB", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto24", - "label":"Goto24", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "DC_phaB", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_pos", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_devSignal2", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10187", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "task2", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9276", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_phaBC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 == CTRL_FOC", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9275", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10139", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If3", - "label":"If3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "DC_phaA", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9437", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_devSignal1", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11017", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Motor_winding", - "label":"Motor_winding", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "off", - "off", - "off", - "-1", - "Auto", - "Auto", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", "className":"Simulink.SubSystem", @@ -1790,11 +805,458 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10159", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10139", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If3", + "label":"If3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == CTRL_FOC", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9282", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_errCode", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9289", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto28", + "label":"Goto28", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto26", + "label":"Goto26", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "DC_phaA", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto25", + "label":"Goto25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "DC_phaC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto23", + "label":"Goto23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_pos", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_devSignal2", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9275", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_phaAB", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hallA", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9278", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1821,11 +1283,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10189", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto20", + "label":"Goto20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "task3", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11019", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", + "name":"From40", + "label":"From40", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1833,7 +1328,7 @@ "IconDisplay" ], "values":[ - "r_devSignal1", + "b_motEna", "Tag" ], "tabs":[ @@ -1851,6 +1346,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9276", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto15", + "label":"Goto15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_phaBC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10692", "className":"Simulink.From", @@ -1882,6 +1441,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From45", + "label":"From45", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_devSignal2", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10355", "className":"Simulink.From", @@ -1914,37 +1504,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10259", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" + "task2", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1952,7 +1530,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", "masktype":"" } }, @@ -1987,6 +1565,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9934", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dir", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266", "className":"Simulink.From", @@ -2019,11 +1630,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2032,7 +1643,7 @@ "IconDisplay" ], "values":[ - "i_phaAB", + "r_devSignal1", "local", "Tag" ], @@ -2052,11 +1663,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"DC_phaB", + "label":"DC_phaB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"From30", + "label":"From30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2064,7 +1755,7 @@ "IconDisplay" ], "values":[ - "z_errCode", + "z_pos", "Tag" ], "tabs":[ @@ -2083,11 +1774,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9930", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2095,7 +1786,7 @@ "IconDisplay" ], "values":[ - "b_hallB", + "a_elecAngle", "Tag" ], "tabs":[ @@ -2113,6 +1804,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From29", + "label":"From29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hallC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10188", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "task1", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10161", "className":"Simulink.From", @@ -2207,11 +1962,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto24", + "label":"Goto24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2220,7 +1975,7 @@ "IconDisplay" ], "values":[ - "b_hallC", + "DC_phaB", "local", "Tag" ], @@ -2240,11 +1995,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10026", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9935", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2252,7 +2007,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "z_dir", "Tag" ], "tabs":[ @@ -2271,11 +2026,197 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9288", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9249", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From17", + "label":"From17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From28", + "label":"From28", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCode", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaBC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2284,7 +2225,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "z_ctrlModReq", "local", "Tag" ], @@ -2304,11 +2245,104 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10188", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_posRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10191", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "task1", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9437", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2317,7 +2351,7 @@ "IconDisplay" ], "values":[ - "task1", + "b_motStdStill", "local", "Tag" ], @@ -2368,11 +2402,54 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9935", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From46", + "label":"From46", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2380,7 +2457,137 @@ "IconDisplay" ], "values":[ - "z_dir", + "r_devSignal1", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F05_Field_Oriented_Control", + "label":"F05_Field_Oriented_Control", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_mot", "Tag" ], "tabs":[ @@ -2429,287 +2636,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9931", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10259", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "task2", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_posRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From32", - "label":"From32", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "DC_phaB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10191", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "task1", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_devSignal2", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9289", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto28", - "label":"Goto28", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motEna", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10155", "className":"Simulink.From", @@ -2742,316 +2668,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F06_Control_Type_Management", - "label":"F06_Control_Type_Management", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "DC_phaA", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hallC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10751", - "className":"Simulink.Saturate", - "icon":"WebViewIcon3", - "name":"Saturation1", - "label":"Saturation1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1700", - "-1700", - "on", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Floor", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 8 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Saturate", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_pos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9278", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3060,7 +2681,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "z_posRaw", "local", "Tag" ], @@ -3080,19 +2701,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "VqFinPrev", + "b_hallB", + "local", "Tag" ], "tabs":[ @@ -3106,47 +2729,115 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9930", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F04_Field_Weakening", + "label":"F04_Field_Weakening", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "a_elecAngle", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "Code Generation", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 5, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10159", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3185,8 +2876,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3198,7 +2889,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3209,9 +2899,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3221,7 +2912,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3234,7 +2925,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3244,18 +2934,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3270,73 +2963,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10189", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto20", - "label":"Goto20", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3345,7 +2976,7 @@ "IconDisplay" ], "values":[ - "task3", + "z_ctrlTypSel", "local", "Tag" ], @@ -3365,264 +2996,41 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F03_Control_Mode_Manager", - "label":"F03_Control_Mode_Manager", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_mot", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10066", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F04_Field_Weakening", - "label":"F04_Field_Weakening", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10065", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion2", - "label":"Data Type Conversion2", + "name":"z_ctrlTypSel1", + "label":"z_ctrlTypSel1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "FramePeriod" ], "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", + "z_ctrlTypSel", "on", - "-1" + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, + 3, 7 ] }, @@ -3632,7 +3040,186 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F06_Control_Type_Management", + "label":"F06_Control_Type_Management", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_devSignal1", + "label":"r_devSignal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", "masktype":"" } }, @@ -3668,344 +3255,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9299", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"DC_phaA", - "label":"DC_phaA", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10154", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "CTRL_COM", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F05_Field_Oriented_Control", - "label":"F05_Field_Oriented_Control", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441", - "className":"Simulink.Terminator", - "icon":"WebViewIcon3", - "name":"Terminator", - "label":"Terminator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - ], - "values":[ - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Terminator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From34", + "label":"From34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4013,7 +3267,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "a_elecAngle", "Tag" ], "tabs":[ @@ -4032,203 +3286,101 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_phaAB", - "label":"i_phaAB", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F01_Estimations", + "label":"F01_Estimations", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Auto", + "", + "", "off", "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", "on", "off", - "off", - "off" + "" ], "tabs":[ "Main", - "Signal Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 5, + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_hallB", - "label":"b_hallB", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_hallC", - "label":"b_hallC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"SubSystem", "masktype":"" } }, @@ -4280,41 +3432,138 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10064", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_fieldWeakEna", - "label":"b_fieldWeakEna", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F03_Control_Mode_Manager", + "label":"F03_Control_Mode_Manager", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "b_fieldWeakEna", - "on", - "inf", - "[]", - "[]", - "boolean", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inf" + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ "Main", - "Signal Attributes", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int16", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, 7 ] }, @@ -4324,7 +3573,83 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10258", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If4", + "label":"If4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", "masktype":"" } }, @@ -4376,36 +3701,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10749", - "className":"Simulink.Saturate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9306", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Saturation", - "label":"Saturation", + "name":"r_devSignal2", + "label":"r_devSignal2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1700", - "-1700", - "on", + "8", + "Port number", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: auto", "off", - "Floor", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -4414,8 +3766,8 @@ ], "tabs_idx":[ 0, - 3, - 8 + 2, + 11 ] }, "viewer":{ @@ -4424,137 +3776,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Saturate", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_Estimations", - "label":"F01_Estimations", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9282", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCode", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, @@ -4625,431 +3847,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_hallA ", - "label":"b_hallA ", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9270", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hallA", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8215", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion5", - "label":"Data Type Conversion5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"DC_phaC", - "label":"DC_phaC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_DCLink", - "label":"i_DCLink", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9934", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dir", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9249", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9244", "className":"Simulink.From", @@ -5082,11 +3879,111 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9288", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaAB", + "label":"i_phaAB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9931", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -5094,7 +3991,607 @@ "IconDisplay" ], "values":[ - "b_hallA", + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10158", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_hallC", + "label":"b_hallC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Model_Info", + "label":"Model_Info", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From31", + "label":"From31", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "DC_phaA", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_hallB", + "label":"b_hallB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hallC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10065", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion2", + "label":"Data Type Conversion2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Task_Scheduler", + "label":"Task_Scheduler", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From32", + "label":"From32", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "DC_phaB", "Tag" ], "tabs":[ @@ -5180,11 +4677,434 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10154", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "CTRL_COM", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9302", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_errCode", + "label":"z_errCode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"DC_phaC", + "label":"DC_phaC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9270", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hallA", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8215", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion5", + "label":"Data Type Conversion5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int16", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_hallA ", + "label":"b_hallA ", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10026", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -5192,7 +5112,138 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_DCLink", + "label":"i_DCLink", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10187", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "task2", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From27", + "label":"From27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hallB", "Tag" ], "tabs":[ @@ -5277,103 +5328,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "DC_phaC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10158", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10255", "className":"Simulink.Logic", @@ -10206,5 +10160,56 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11019#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png index 474cf33..5730775 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg index 174d41e..23d1367 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg @@ -1,10 +1,10 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -86,7 +86,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -102,7 +102,7 @@ - + @@ -110,7 +110,7 @@ - + @@ -118,7 +118,7 @@ - + @@ -126,7 +126,7 @@ - + @@ -134,7 +134,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -158,7 +158,7 @@ - + @@ -166,7 +166,7 @@ - + @@ -174,7 +174,7 @@ - + @@ -182,7 +182,7 @@ - + @@ -190,7 +190,7 @@ - + @@ -198,7 +198,7 @@ - + @@ -206,7 +206,7 @@ - + @@ -214,7 +214,7 @@ - + @@ -222,7 +222,7 @@ - + @@ -230,7 +230,7 @@ - + @@ -238,7 +238,7 @@ - + @@ -246,7 +246,7 @@ - + @@ -254,7 +254,7 @@ - + @@ -262,7 +262,7 @@ - + @@ -270,7 +270,7 @@ - + @@ -278,7 +278,7 @@ - + @@ -293,7 +293,7 @@ - + @@ -301,7 +301,7 @@ - + @@ -309,7 +309,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -325,7 +325,7 @@ - + @@ -340,7 +340,7 @@ - + @@ -348,7 +348,7 @@ - + @@ -356,7 +356,7 @@ - + @@ -364,7 +364,7 @@ - + @@ -372,7 +372,7 @@ - + @@ -387,7 +387,7 @@ - + @@ -395,7 +395,7 @@ - + @@ -403,7 +403,7 @@ - + @@ -411,7 +411,7 @@ - + @@ -419,7 +419,7 @@ - + @@ -445,7 +445,7 @@ - + @@ -496,11 +496,11 @@ - - + + - + @@ -510,173 +510,29 @@ - - 8 - - - - - - - - - - - - - - - - - - - - - - r_devSignal2 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - r_devSignal1 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - - - - - - - - - - - - - - - - - - + 5 - + - + - - + + - + n_mot @@ -688,44 +544,44 @@ - - + + - + - + - - 4 + + 6 - + - - + + - - + + - - z_errCode + + a_elecAngle @@ -736,44 +592,44 @@ - - + + - + - + - - 2 + + 1 - + - + - - + + - - DC_phaB + + DC_phaA @@ -784,44 +640,59 @@ - - - + + + - - + + - - + + - - z_ctrlTypSel + + b_fieldWeakEna - - + + + + + + + + + + + + + + + + + b_fieldWeakEna - - + + - - + + - - uint8 + + boolean @@ -842,11 +713,11 @@ - + - + b_diagEna @@ -864,11 +735,11 @@ - - + + - + boolean @@ -878,4506 +749,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - task1 - - - - - - - - task2 - - - - - - - - task3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Task_Scheduler - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - MODEL INFO - - - - - - - - Version: 1.1256 - - - - - - - - Author: Emanuel Feru - - - - - - - - Last modified by: eferu - - - - - - - - Last update: 30-dec-2019 18:06:55 - - - - - - - - Copyright © 2019-2020 Emanuel FERU - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_devSignal2] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 == CTRL_FOC) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaA] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_devSignal1] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Motor_winding - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Implemented_control_methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_devSignal1] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaC] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCode] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallB] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [task1] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [task1] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaB] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [task1] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_devSignal2] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - z_ctrlTypSel - - - - - - - - z_pos - - - - - - - - V_phaABC_FOC - - - - - - - - Vq - - - - - - - - r_inpTgtSca - - - - - - - - a_elecAngle - - - - - - - - z_dir - - - - - - - - r_fieldWeak - - - - - - - - DC_phaA - - - - - - - - DC_phaB - - - - - - - - DC_phaC - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F06_Control_Type_Management - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaA] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallC] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_posRaw - - - - - - - - b_motStdStill - - - - - - - - VqFinPrev - - - - - - - - z_errCode - - - - - - - - b_errFlag - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F02_Diagnostics - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [task3] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_errFlag - - - - - - - - b_motStdStill - - - - - - - - b_motEna - - - - - - - - z_ctrlTypSel - - - - - - - - z_ctrlModReq - - - - - - - - r_inpTgt - - - - - - - - VqFinPrev - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtSca - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F03_Control_Mode_Manager - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - r_inpTgt - - - - - - - - n_motAbs - - - - - - - - r_fieldWeak - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F04_Field_Weakening - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [task3] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - DC_phaA - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - CTRL_COM - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtSca - - - - - - - - task2 - - - - - - - - task3 - - - - - - - - b_motEna - - - - - - - - n_mot - - - - - - - - n_motAbs - - - - - - - - r_fieldWeak - - - - - - - - a_elecAngle - - - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - V_phaABC_FOC - - - - - - - - Vq - - - - - - - - r_devSignal1 - - - - - - - - r_devSignal2 - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F05_Field_Oriented_Control - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - + - + - + - + @@ -5407,43 +800,75 @@ - - - + + + - - + + - + - - + + - - [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -5453,386 +878,6 @@ - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - i_phaAB - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - b_hallB - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - b_hallC - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - b_fieldWeakEna - - - - - - - - - - - - - - - - - - - - - - b_fieldWeakEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - @@ -5845,35 +890,35 @@ - + - + - + - + - + - + - + - + @@ -5899,11 +944,11 @@ - - + + - + sfix16_En4 @@ -5913,109 +958,3743 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Implemented_control_methods + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 == CTRL_FOC) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCode] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaA] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_pos] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_devSignal2] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallA] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [task3] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_devSignal2] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaC] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_devSignal1] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + DC_phaB + + + + + + + + + + + + + + + + + + + + + + + + + + [z_pos] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallC] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [task1] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCode] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [task1] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [r_devSignal1] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + task2 + + + + + + + + task3 + + + + + + + + b_motEna + + + + + + + + n_mot + + + + + + + + n_motAbs + + + + + + + + r_fieldWeak + + + + + + + + a_elecAngle + + + + + + + + i_phaAB + + + + + + + + i_phaBC + + + + + + + + V_phaABC_FOC + + + + + + + + Vq + + + + + + + + r_devSignal1 + + + + + + + + r_devSignal2 + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F05_Field_Oriented_Control + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [task1] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + r_inpTgt + + + + + + + + n_motAbs + + + + + + + + r_fieldWeak + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F04_Field_Weakening + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + z_posRaw + + + + + + + + b_motStdStill + + + + + + + + VqFinPrev + + + + + + + + z_errCode + + + + + + + + b_errFlag + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F02_Diagnostics + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlTypSel + + + + + + + + z_pos + + + + + + + + V_phaABC_FOC + + + + + + + + Vq + + + + + + + + r_inpTgtSca + + + + + + + + a_elecAngle + + + + + + + + z_dir + + + + + + + + r_fieldWeak + + + + + + + + DC_phaA + + + + + + + + DC_phaB + + + + + + + + DC_phaC + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F06_Control_Type_Management + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + r_devSignal1 + + + + + + + + + + + + + + + + + + + + + + + + + + [task3] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + - + - + - + - + - + b_hallA - + - + b_hallB - + - + b_hallC - + - + z_posRaw - + - + z_pos - + - + z_dir - + - + n_mot - + - + n_motAbs - + - + a_elecAngle - + - + b_motStdStill - + - + b_enaAdvCtrl @@ -6023,7 +4702,7 @@ - + @@ -6036,7 +4715,7 @@ - + @@ -6045,16 +4724,434 @@ - - + + - + F01_Estimations + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_errFlag + + + + + + + + b_motStdStill + + + + + + + + b_motEna + + + + + + + + z_ctrlTypSel + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgt + + + + + + + + VqFinPrev + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F03_Control_Mode_Manager + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + action + + + + @@ -6062,201 +5159,118 @@ - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + - + - + - - [z_errCode] + + [r_inpTgt] - + @@ -6266,6 +5280,174 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + r_devSignal2 + + + + + + + + @@ -6278,11 +5460,11 @@ - + - + 8 @@ -6300,11 +5482,11 @@ - - + + - + i_phaBC @@ -6315,11 +5497,1319 @@ - - + + - + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + i_phaAB + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + b_hallC + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + MODEL INFO + + + + + + + + Version: 1.1260 + + + + + + + + Author: Emanuel Feru + + + + + + + + Last modified by: eferu + + + + + + + + Last update: + + + + + + + + Copyright © 2019-2020 Emanuel FERU + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaA] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + b_hallB + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + task1 + + + + + + + + task2 + + + + + + + + task3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Task_Scheduler + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaB] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_COM + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_errCode + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + DC_phaC + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallA] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 @@ -6341,11 +6831,11 @@ - + - + 4 @@ -6363,11 +6853,11 @@ - - + + - + b_hallA @@ -6378,11 +6868,11 @@ - - + + - + uint8 @@ -6394,204 +6884,44 @@ - - - + + + - - + + - - + + - - [b_hallA] + + [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - DC_phaC - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - r_inpTgt - - - - - - - - - - - - - - - int16 + + sfix16_En4 @@ -6612,11 +6942,11 @@ - + - + 9 @@ -6634,11 +6964,11 @@ - - + + - + i_DCLink @@ -6649,11 +6979,11 @@ - - + + - + int16 @@ -6665,28 +6995,28 @@ - - + + - + - + - - [z_dir] + + [task2] - + @@ -6698,250 +7028,43 @@ - - + + - + - + - - [r_fieldWeak] + + [b_hallB] - + - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallA] - - - - - - - - - - - - - + - - + + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -6963,11 +7086,11 @@ - + - + 1 @@ -6985,11 +7108,11 @@ - - + + - + b_motEna @@ -7000,11 +7123,11 @@ - - + + - + boolean @@ -7014,125 +7137,11 @@ - - - - - - - - - - - - - - - - - - [DC_phaC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - + @@ -7140,19 +7149,19 @@ - + - + - + - + @@ -7162,6 +7171,21 @@ + + + + + + + + + + + boolean + + + + @@ -7173,21 +7197,6 @@ - - - - - - - - - - - boolean - - - - @@ -7196,7 +7205,7 @@ - + @@ -7204,19 +7213,19 @@ - + - + - + - + @@ -7231,11 +7240,11 @@ - - + + - + boolean @@ -7287,11 +7296,11 @@ - + - + @@ -7301,11 +7310,11 @@ - + - + @@ -7385,11 +7394,11 @@ - + - + @@ -7427,11 +7436,11 @@ - + - + @@ -7469,11 +7478,11 @@ - + - + @@ -7483,11 +7492,11 @@ - + - + @@ -7525,11 +7534,11 @@ - + - + @@ -7539,11 +7548,11 @@ - + - + @@ -7553,11 +7562,11 @@ - + - + @@ -7679,11 +7688,11 @@ - + - + @@ -7811,11 +7820,11 @@ - + - + @@ -7923,11 +7932,11 @@ - + - + @@ -7993,11 +8002,11 @@ - + - + @@ -8007,11 +8016,11 @@ - + - + @@ -8021,11 +8030,11 @@ - + - + @@ -8598,7 +8607,21 @@ + + + + + + + + + + + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png index 0d3cd53..d746952 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json index 8a5a1ea..39bc366 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json @@ -293,8 +293,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -306,7 +306,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -317,9 +316,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -329,7 +329,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -342,7 +342,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -352,18 +351,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -673,8 +675,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -686,7 +688,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -697,9 +698,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -709,7 +711,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -722,7 +724,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -732,18 +733,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -933,8 +937,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -946,7 +950,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -957,9 +960,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -969,7 +973,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -982,7 +986,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -992,18 +995,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1030,8 +1036,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1043,7 +1049,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1054,9 +1059,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1066,7 +1072,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1079,7 +1085,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1089,18 +1094,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1351,86 +1359,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8468", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "8", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9433", "className":"Simulink.Outport", @@ -1592,73 +1520,36 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", + "1", + "u1 ~= 0", "", - [ - ], - "Dialog", - "Auto", - "off" + "off", + "-1", + "on" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 4 ] }, "viewer":{ @@ -1667,16 +1558,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8461", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1685,73 +1576,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8460", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8458", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counterRaw", + "z_counter", "local", "Tag" ], @@ -1836,6 +1661,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8450", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8449", "className":"Simulink.Goto", @@ -1901,19 +1759,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8461", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_motStdStill", + "z_dirPrev", + "local", "Tag" ], "tabs":[ @@ -1927,30 +1787,79 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9933", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"z_dir", + "label":"z_dir", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "b_enaAdvCtrl", - "Tag" + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1958,69 +1867,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, @@ -2104,6 +1951,194 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8458", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9932", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431", "className":"Simulink.From", @@ -2198,175 +2233,82 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", - "u1 ~= 0", - "", + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_05_Electrical_Angle_Estimation", - "label":"F01_05_Electrical_Angle_Estimation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", + "Inherit", "-1", - "", + "auto", "off", - "" + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 2, + 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Outport", "masktype":"" } }, @@ -2401,6 +2343,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8460", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_posRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8432", "className":"Simulink.From", @@ -2433,75 +2408,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8450", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9932", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2528,11 +2439,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9933", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F01_05_Electrical_Angle_Estimation", + "label":"F01_05_Electrical_Angle_Estimation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8468", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_dir", - "label":"z_dir", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2561,7 +2571,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "8", "Port number", "[]", "[]", @@ -2574,9 +2584,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg index 582380e..033b390 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg @@ -252,7 +252,7 @@ - + @@ -771,7 +771,7 @@ - + @@ -860,16 +860,16 @@ - - + + - + - - action + + int8 @@ -881,16 +881,16 @@ - - + + - + - - int8 + + action @@ -902,15 +902,15 @@ - + - + - + int8 @@ -1110,7 +1110,7 @@ - + @@ -1239,16 +1239,16 @@ - - + + - + - - int16 + + boolean @@ -1260,16 +1260,16 @@ - - + + - + - - boolean + + int16 @@ -1281,15 +1281,15 @@ - + - + - + sfix16_En4 @@ -1302,16 +1302,16 @@ - - + + - + - - boolean + + int16 @@ -1323,16 +1323,16 @@ - - + + - + - - int16 + + sfix16_En4 @@ -1344,16 +1344,16 @@ - - + + - + - - sfix16_En4 + + boolean @@ -1372,7 +1372,7 @@ - + @@ -1469,16 +1469,16 @@ - - + + - + - - uint8 + + int8 @@ -1490,16 +1490,16 @@ - - + + - + - - int8 + + uint8 @@ -1787,54 +1787,6 @@ - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - @@ -1847,11 +1799,11 @@ - + - + 7 @@ -1869,11 +1821,11 @@ - + - + b_motStdStill @@ -1895,11 +1847,11 @@ - + - + 6 @@ -1917,11 +1869,11 @@ - + - + a_elecAngle @@ -1933,142 +1885,84 @@ - - - + + + - - + + - - + + - - 5 + + u1 + + + + + + + + if(u1 ~= 0) - - + + - - - + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + - - - - - n_motAbs - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] + + [z_counter] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - + @@ -2090,11 +1984,11 @@ - + - + [b_motStdStill] @@ -2123,11 +2017,11 @@ - + - + [n_motAbs] @@ -2144,6 +2038,39 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + @@ -2156,11 +2083,11 @@ - + - + [a_elecAngle] @@ -2189,11 +2116,11 @@ - + - + [z_posRaw] @@ -2211,11 +2138,11 @@ - + - + uint8 @@ -2225,6 +2152,216 @@ + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_dir + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + z_posRaw + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -2237,11 +2374,11 @@ - + - + [b_motStdStill] @@ -2259,11 +2396,11 @@ - + - + boolean @@ -2285,11 +2422,11 @@ - + - + [b_enaAdvCtrl] @@ -2307,11 +2444,11 @@ - + - + boolean @@ -2321,6 +2458,54 @@ + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + @@ -2333,11 +2518,11 @@ - + - + [z_counter] @@ -2355,11 +2540,11 @@ - + - + int16 @@ -2369,102 +2554,6 @@ - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - z_posRaw - - - - - - - - @@ -2477,11 +2566,11 @@ - + - + [z_pos] @@ -2499,11 +2588,11 @@ - + - + int8 @@ -2525,11 +2614,11 @@ - + - + [z_dirPrev] @@ -2547,11 +2636,11 @@ - + - + int8 @@ -2573,11 +2662,11 @@ - + - + [n_motAbs] @@ -2595,11 +2684,11 @@ - + - + sfix16_En4 @@ -2611,28 +2700,124 @@ - - - + + + - - + + - - + + - - [z_counter] + + 5 - + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + @@ -2644,52 +2829,92 @@ - - - + + + - - + + - - + + - - u1 - - - - - - - - if(u1 ~= 0) + + [b_enaAdvCtrl] - - + + - - + + - - + + - - action + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 @@ -2702,7 +2927,7 @@ - + @@ -2716,51 +2941,51 @@ - + - + z_pos - + - + z_dir - + - + z_counter - + - + z_counterRaw - + - + b_enaAdvCtrl - + - + a_elecAngle @@ -2790,11 +3015,11 @@ - + - + F01_05_Electrical_Angle_Estimation @@ -2811,11 +3036,11 @@ - + - + sfix16_En6 @@ -2827,242 +3052,17 @@ - + - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - + - + @@ -3072,30 +3072,30 @@ - - 3 + + 8 - + - - + + - + - - z_dir + + b_enaAdvCtrl @@ -3666,5 +3666,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.svg index 55539fa..ce79263 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.svg @@ -309,36 +309,36 @@ - - - - - - - - - - - uint8 - - - - - + - + Ini=0 + + + + + + + + + + + uint8 + + + + @@ -537,7 +537,7 @@ - + @@ -567,6 +567,21 @@ + + + + + + + + + + + boolean + + + + @@ -578,21 +593,6 @@ - - - - - - - - - - - boolean - - - - @@ -757,5 +757,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.json index ffa983e..d325fbf 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.json @@ -515,39 +515,87 @@ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8235", "inspector":{ "params":[ + "NumberOfDimensions", "IndexMode", "IndexOptionArray", - "IndexOptions", "IndexParamArray", - "Indices", - "InputPortWidth", - "NumberOfDimensions", "OutputSizeArray", - "OutputSizes", - "SampleTime" + "InputPortWidth", + "SampleTime", + "IndexOptions", + "NumberOfDimensions", + "IndexMode", + "IndexOptionArray", + "IndexParamArray", + "OutputSizeArray", + "InputPortWidth", + "SampleTime", + "IndexOptions", + "NumberOfDimensions", + "IndexMode", + "IndexOptionArray", + "IndexParamArray", + "OutputSizeArray", + "InputPortWidth", + "SampleTime", + "IndexOptions", + "Indices", + "OutputSizes" ], "values":[ + "1", "Zero-based", [ "Index vector (port)" ], - "Index vector (port)", [ "[1 3]" ], - "[1 3]", - "length(vec_hallToPos)", - "1", [ "1" ], + "length(vec_hallToPos)", + "-1", + "Index vector (port)", "1", - "-1" + "Zero-based", + [ + "Index vector (port)" + ], + [ + "[1 3]" + ], + [ + "1" + ], + "length(vec_hallToPos)", + "-1", + "Index vector (port)", + "1", + "Zero-based", + [ + "Index vector (port)" + ], + [ + "[1 3]" + ], + [ + "1" + ], + "length(vec_hallToPos)", + "-1", + "Index vector (port)", + "[1 3]", + "1" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 24 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.svg index 1e10a80..0d29e16 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.svg @@ -768,5 +768,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.json index 1f0a093..a26d20f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.json @@ -673,6 +673,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8260", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay3", + "label":"UnitDelay3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8247", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8259", "className":"Simulink.UnitDelay", @@ -754,56 +804,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8260", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8247", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8259#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg index 307f312..57cca04 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg @@ -220,6 +220,21 @@ + + + + + + + + + + + boolean + + + + @@ -231,21 +246,6 @@ - - - - - - - - - - - boolean - - - - @@ -826,6 +826,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + Ini=0 + + + + + + + + @@ -838,35 +933,35 @@ - + - + - + - + - + - + - + - + @@ -892,11 +987,11 @@ - + - + int8 @@ -918,11 +1013,11 @@ - + - + if { } @@ -940,11 +1035,11 @@ - + - + Action Port @@ -954,101 +1049,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - int8 - - - - - - - - @@ -1279,5 +1279,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.json index acbe4bc..4fea7fc 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.json @@ -765,11 +765,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8378", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8376", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_counterRaw", - "label":"z_counterRaw", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -798,7 +798,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "2", "Port number", "[]", "[]", @@ -811,9 +811,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -844,6 +844,159 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8374", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"z_maxCntRst2", + "label":"z_maxCntRst2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "z_maxCntRst", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9429", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_stdStillDet", + "label":"n_stdStillDet", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_stdStillDet", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372", + "className":"Simulink.Relay", + "icon":"WebViewIcon3", + "name":"n_commDeacv", + "label":"n_commDeacv", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "SampleTime", + "ZeroCross" + ], + "values":[ + "n_commDeacvHi", + "n_commAcvLo", + "1", + "0", + "Elements as channels (sample based)", + "[]", + "[]", + "boolean", + "off", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Relay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8377", "className":"Simulink.Outport", @@ -924,105 +1077,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8374", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"z_maxCntRst2", - "label":"z_maxCntRst2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "z_maxCntRst", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8371", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8370", "className":"Simulink.UnitDelay", @@ -1073,6 +1127,346 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8308", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8306", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9427", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8300", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8299", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8298", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8297", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counter", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Raw_Motor_Speed_Estimation", + "label":"Raw_Motor_Speed_Estimation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8369", "className":"Simulink.Switch", @@ -1131,296 +1525,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Relational Operator9", - "label":"Relational Operator9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "<", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8366", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8313", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux3", - "label":"Mux3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8312", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9429", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_stdStillDet", - "label":"n_stdStillDet", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_stdStillDet", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8311", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8308", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9427", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_motStdStill", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -1434,40 +1551,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8305", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -1504,196 +1588,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8301", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8298", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8293", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8291", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8289", "className":"Simulink.From", @@ -1726,11 +1620,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8285", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8286", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1738,7 +1632,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "n_motAbs", "Tag" ], "tabs":[ @@ -1757,21 +1651,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8297", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", - "local", + "n_motRaw", "Tag" ], "tabs":[ @@ -1785,16 +1677,66 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8284", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8371", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8281", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1821,77 +1763,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8299", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8306", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8284", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From24", + "label":"From24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1899,7 +1775,7 @@ "IconDisplay" ], "values":[ - "b_edge", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -1949,192 +1825,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8277", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8300", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372", - "className":"Simulink.Relay", - "icon":"WebViewIcon3", - "name":"n_commDeacv", - "label":"n_commDeacv", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "InputProcessing", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "SampleTime", - "ZeroCross" - ], - "values":[ - "n_commDeacvHi", - "n_commAcvLo", - "1", - "0", - "Elements as channels (sample based)", - "[]", - "[]", - "boolean", - "off", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 5, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Relay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8282", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8283", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbsPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8270", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8373", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Constant4", - "label":"Constant4", + "name":"z_maxCntRst", + "label":"z_maxCntRst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2148,7 +1843,7 @@ "FramePeriod" ], "values":[ - "0", + "z_maxCntRst", "on", "inf", "[]", @@ -2178,6 +1873,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8276", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8275", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8379", "className":"Simulink.Outport", @@ -2258,6 +2015,148 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_edge", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8270", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant4", + "label":"Constant4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8312", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8291", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8268", "className":"Simulink.Abs", @@ -2306,11 +2205,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8292", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8283", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2318,7 +2217,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "n_motAbsPrev", "Tag" ], "tabs":[ @@ -2337,11 +2236,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9426", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8282", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2349,7 +2248,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_dir", "Tag" ], "tabs":[ @@ -2367,6 +2266,175 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8277", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator9", + "label":"Relational Operator9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "<", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "dz_trnsDet", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8293", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8313", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux3", + "label":"Mux3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8267", "className":"Simulink.Inport", @@ -2435,11 +2503,77 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8301", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8305", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "dz_trnsDet", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8292", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2447,7 +2581,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "n_motAbs", "Tag" ], "tabs":[ @@ -2465,325 +2599,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Raw_Motor_Speed_Estimation", - "label":"Raw_Motor_Speed_Estimation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8276", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8373", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"z_maxCntRst", - "label":"z_maxCntRst", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "z_maxCntRst", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8281", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8376", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272", "className":"Simulink.SubSystem", @@ -2814,11 +2629,56 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8286", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8366", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9426", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2826,7 +2686,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "b_motStdStill", "Tag" ], "tabs":[ @@ -2844,6 +2704,148 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8378", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_counterRaw", + "label":"z_counterRaw", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8285", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From28", + "label":"From28", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8311", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux1", + "label":"Mux1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8310", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.png index 56f3b06..d167557 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.svg index 8d0beff..e5c3f22 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.svg @@ -88,7 +88,7 @@ - + @@ -729,11 +729,11 @@ - - + + - + @@ -743,78 +743,30 @@ - - 4 + + 2 - + - - + + - + - - z_counterRaw - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_counter + + n_motAbs @@ -835,11 +787,11 @@ - + - + z_maxCntRst @@ -857,11 +809,11 @@ - + - + int16 @@ -871,612 +823,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - Ini=z_maxCntRst - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1489,11 +835,11 @@ - + - + n_stdStillDet @@ -1511,11 +857,11 @@ - + - + n_stdStillDet @@ -1526,11 +872,11 @@ - + - + sfix16_En4 @@ -1540,892 +886,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_trnsDet] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbsPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_trnsDet] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motRaw] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_edge] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_edge] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRawPrev] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - + @@ -2433,51 +898,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -2503,11 +968,11 @@ - + - + n_commDeacv @@ -2518,11 +983,11 @@ - + - + boolean @@ -2534,427 +999,44 @@ - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbsPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - 6 - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - + 3 - + - - + + - - + + - - z_dirPrev - - - - - - - - - - - - - - - int8 + + z_counter @@ -2965,44 +1047,345 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=z_maxCntRst + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + - - + + - + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motRaw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] - - - - - - - - - - - - - - - - - int16 + + @@ -3015,7 +1398,7 @@ - + @@ -3029,67 +1412,67 @@ - + - + z_dir - + - + z_dirPrev - + - + z_counterRawPrev - + - + n_motAbsPrev - + - + z_counter - + - + dz_trnsDet - + - + n_motRaw - + - + if { } @@ -3119,11 +1502,11 @@ - + - + Raw_Motor_Speed_Estimation @@ -3136,16 +1519,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -3161,11 +1544,11 @@ - + - + boolean @@ -3178,16 +1561,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -3203,11 +1586,11 @@ - + - + int16 @@ -3219,50 +1602,194 @@ - + - - + + - - + + - - + + - - [z_counter] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - + + - - + + - - int16 + + sfix16_En4 @@ -3273,44 +1800,173 @@ - - - + + + - - + + - - + + - - z_maxCntRst + + [n_motAbs] - - + + - - + + - - + + - - int16 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_edge] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3331,11 +1987,11 @@ - + - + [n_motRaw] @@ -3353,11 +2009,106 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + sfix16_En4 @@ -3379,11 +2130,11 @@ - + - + [b_enaAdvCtrl] @@ -3401,11 +2152,11 @@ - + - + boolean @@ -3417,44 +2168,1085 @@ - - - + + + - - + + - - + + - - 2 + + [b_enaAdvCtrl] - + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + z_maxCntRst + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + - - + + - - + + - - n_motAbs + + b_enaAdvCtrl + + + + + + + + + + + + + + + + + + + + + + + + + + [b_edge] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [dz_trnsDet] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motRaw] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_dirPrev + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [dz_trnsDet] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3467,7 +3259,7 @@ - + @@ -3475,155 +3267,155 @@ - + - + inc - + - + max - + - + rst - + - + cnt - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -3641,11 +3433,11 @@ - + - + Counter @@ -3656,107 +3448,315 @@ - + - + Ini=z_maxCntRst - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + - + - + - - [n_motAbs] + + [b_motStdStill] - + - - + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_counterRaw + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - sfix16_En4 + + int16 @@ -3769,7 +3769,7 @@ - + @@ -3799,6 +3799,21 @@ + + + + + + + + + + + boolean + + + + @@ -3810,21 +3825,6 @@ - - - - - - - - - - - boolean - - - - @@ -3863,6 +3863,21 @@ + + + + + + + + + + + boolean + + + + @@ -3874,21 +3889,6 @@ - - - - - - - - - - - boolean - - - - @@ -4627,5 +4627,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg index 178a72f..29c1bd3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg @@ -15,7 +15,7 @@ - + @@ -592,5 +592,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.json index bb6067b..240de17 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.json @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2418", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"cnt", - "label":"cnt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", "className":"Simulink.SubSystem", @@ -354,6 +274,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2418", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"cnt", + "label":"cnt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2412", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.svg index 17dafc9..9d50e87 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.svg @@ -10,60 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - cnt - - - - - - - - + @@ -71,51 +23,51 @@ - + - + u - + - + rst - + - + y - + - + 1 - + - + z - + - + @@ -133,11 +85,11 @@ - + - + Ini=z_cntInit @@ -148,11 +100,11 @@ - + - + int16 @@ -160,29 +112,29 @@ - + - + - + - + - + - + @@ -205,36 +157,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - @@ -252,11 +204,11 @@ - + - + int16 @@ -278,19 +230,19 @@ - + - + - + - + @@ -316,11 +268,11 @@ - + - + int16 @@ -342,11 +294,11 @@ - + - + 3 @@ -364,11 +316,11 @@ - + - + rst @@ -379,11 +331,11 @@ - + - + boolean @@ -405,11 +357,11 @@ - + - + 2 @@ -427,11 +379,11 @@ - + - + max @@ -442,11 +394,11 @@ - + - + int16 @@ -456,6 +408,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + cnt + + + + + + + + @@ -625,5 +625,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.json index 71f911b..4d70ee2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.json @@ -244,6 +244,620 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8359", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"dz_trnsDet", + "label":"dz_trnsDet", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8357", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"g_Ha", + "label":"g_Ha", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "4", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8354", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay5", + "label":"UnitDelay5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8353", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8351", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay2", + "label":"UnitDelay2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8349", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "on", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8352", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay3", + "label":"UnitDelay3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8348", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "on", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8347", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "on", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8345", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum13", + "label":"Sum13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++++", + "on", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8344", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator4", + "label":"Relational Operator4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8358", "className":"Simulink.Outport", @@ -324,6 +938,491 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8341", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "dz_trnsDet", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8340", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counterRawPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8356", + "className":"Simulink.Relay", + "icon":"WebViewIcon3", + "name":"dz_cntTrnsDet", + "label":"dz_cntTrnsDet", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "SampleTime", + "ZeroCross" + ], + "values":[ + "dz_cntTrnsDetHi", + "dz_cntTrnsDetLo", + "1", + "0", + "Elements as channels (sample based)", + "[]", + "[]", + "boolean", + "off", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Relay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8339", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbsPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8338", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8335", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8333", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbsPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8332", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8331", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "cf_speedCoef", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8350", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8330", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8329", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8328", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8326", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRawPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8355", "className":"Simulink.Constant", @@ -374,44 +1473,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8354", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8325", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"UnitDelay5", - "label":"UnitDelay5", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "cf_speedCoef", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -419,49 +1499,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8352", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8327", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "z_counter", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -469,57 +1530,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8357", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8324", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"g_Ha", - "label":"g_Ha", + "name":"Divide14", + "label":"Divide14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Gain", + "Inputs", "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", + "CollapseDim", + "CollapseMode", "SampleTime" ], "values":[ - "4", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", + "*/", + "Element-wise(.*)", "off", "[]", "[]", - "Inherit: Same as input", + "fixdt(1,16,4)", + "off", + "Simplest", + "off", + "1", + "All dimensions", "-1" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 8, - 11 + 9 ] }, "viewer":{ @@ -528,48 +1587,57 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8351", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8346", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"UnitDelay2", - "label":"UnitDelay2", + "name":"Sum7", + "label":"Sum7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "rectangular", + "+-", + "on", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", "off", - [ - ], - "Auto" + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 10 ] }, "viewer":{ @@ -578,7 +1646,64 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8322", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide11", + "label":"Divide11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", "masktype":"" } }, @@ -662,998 +1787,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8348", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "on", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8349", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "on", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8346", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum7", - "label":"Sum7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "on", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8359", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"dz_trnsDet", - "label":"dz_trnsDet", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8350", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8356", - "className":"Simulink.Relay", - "icon":"WebViewIcon3", - "name":"dz_cntTrnsDet", - "label":"dz_cntTrnsDet", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "InputProcessing", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "SampleTime", - "ZeroCross" - ], - "values":[ - "dz_cntTrnsDetHi", - "dz_cntTrnsDetLo", - "1", - "0", - "Elements as channels (sample based)", - "[]", - "[]", - "boolean", - "off", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 5, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Relay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8344", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8340", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counterRawPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8337", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8336", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dir", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8339", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbsPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8332", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8333", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbsPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8330", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8329", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8335", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8323", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide13", - "label":"Divide13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8324", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide14", - "label":"Divide14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8328", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8327", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8342", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8319", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8326", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRawPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8325", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8321", "className":"Simulink.Constant", @@ -1704,297 +1837,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8318", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8320", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"n_motAbsPrev", - "label":"n_motAbsPrev", + "name":"Abs2", + "label":"Abs2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", + "SaturateOnIntegerOverflow", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8341", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8345", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum13", - "label":"Sum13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++++", - "on", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8331", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8322", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide11", - "label":"Divide11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8347", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", "ZeroCross" ], "values":[ - "u2 ~= 0", - "on", "[]", "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", + "Inherit: Inherit via back propagation", "off", + "Zero", "off", "-1", - "0", "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 9 + 6 ] }, "viewer":{ @@ -2003,7 +1879,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8319", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", "masktype":"" } }, @@ -2075,11 +1982,78 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8338", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8318", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbsPrev", + "label":"n_motAbsPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8336", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -2088,7 +2062,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "z_dir", "local", "Tag" ], @@ -2108,40 +2082,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8320", - "className":"Simulink.Abs", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8323", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Abs2", - "label":"Abs2", + "name":"Divide13", + "label":"Divide13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ + "*/", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(1,16,4)", "off", - "Zero", + "Simplest", "off", - "-1", - "on" + "1", + "All dimensions", + "-1" ], "tabs":[ + "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 2, + 9 ] }, "viewer":{ @@ -2150,57 +2134,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8353", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Product", "masktype":"" } }, @@ -2271,6 +2205,72 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8342", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "cf_speedCoef", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8337", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counter", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8334", "className":"Simulink.From", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.svg index 776ae86..c419fa2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.svg @@ -220,11 +220,11 @@ - - + + - + @@ -234,30 +234,30 @@ - - 1 + + 2 - + - - + + - + - - z_counter + + dz_trnsDet @@ -268,58 +268,43 @@ - - - + + + - - + + - + - - cf_speedCoef + + 4 - - - - - - - - - - - - - - - - - cf_speedCoef + + - + - - + + - + uint16 @@ -341,20 +326,28 @@ - + - + + + + + + + + + - + @@ -362,14 +355,6 @@ - - - - - - - - @@ -390,6 +375,21 @@ + + + + + + + + + + + Ini=0 + + + + @@ -405,66 +405,51 @@ - - - - - - - - - - - Ini=0 - - - - - - + + - + - + - + + + + + + + + + - - + + - - - - - - - - - + @@ -479,86 +464,38 @@ - + - - - - - - - - - - - int16 - - - - - + - - + + - + Ini=0 - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - + + - - + + - - uint16 + + int16 @@ -579,35 +516,35 @@ - + - + - + - + - + - + - + - + @@ -628,288 +565,32 @@ - - - - - - - - - - - int16 - - - - - + - + Ini=0 - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - n_motRaw - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - threshold=0 - Criteria : u2 ~= 0 + + int16 @@ -922,7 +603,7 @@ - + @@ -930,155 +611,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -1091,97 +772,33 @@ - - - - - - - - - - - sfix16_En4 - - - - - + - + threshold=0 Criteria : u2 ~= 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - int16 + + sfix16_En4 @@ -1192,93 +809,45 @@ - - - + + + - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - dz_trnsDet - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + @@ -1293,38 +862,38 @@ - + - + - - + + - + Ini=0 - - + + - - + + - - boolean + + int16 @@ -1335,107 +904,516 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + - - + + - - - + + + - - + + - - dz_cntTrnsDet + + threshold=0 + Criteria : u2 ~= 0 - - + + - - + + - - boolean + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + threshold=0 + Criteria : u2 ~= 0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 @@ -1448,7 +1426,7 @@ - + @@ -1456,19 +1434,19 @@ - + - + - + - + @@ -1494,11 +1472,11 @@ - + - + boolean @@ -1508,6 +1486,87 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + z_counter + + + + + + + + + + + + + + + + + + + + + + + + + + [dz_trnsDet] + + + + + + + + + + + + + + + @@ -1520,11 +1579,11 @@ - + - + [z_counterRawPrev] @@ -1543,62 +1602,107 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - [z_counter] - - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [z_dir] + + dz_cntTrnsDet - - - + + + + + + + + + + + boolean @@ -1619,11 +1723,11 @@ - + - + [n_motAbsPrev] @@ -1642,44 +1746,77 @@ - - - + + + - - + + - - + + - - [z_dir] + + [z_dirPrev] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + - - + + - - + + - - int8 + + int16 @@ -1700,11 +1837,11 @@ - + - + [n_motAbsPrev] @@ -1722,11 +1859,11 @@ - + - + sfix16_En4 @@ -1736,6 +1873,197 @@ + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [cf_speedCoef] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + Ini=0 + + + + + + + + @@ -1748,11 +2076,11 @@ - + - + [z_dir] @@ -1770,11 +2098,11 @@ - + - + int8 @@ -1796,11 +2124,11 @@ - + - + [z_dirPrev] @@ -1818,11 +2146,11 @@ - + - + int8 @@ -1832,200 +2160,6 @@ - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -2038,11 +2172,11 @@ - + - + [z_counter] @@ -2060,11 +2194,11 @@ - + - + int16 @@ -2074,135 +2208,6 @@ - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [cf_speedCoef] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -2215,11 +2220,11 @@ - + - + [z_counterRawPrev] @@ -2237,11 +2242,11 @@ - + - + int16 @@ -2251,6 +2256,69 @@ + + + + + + + + + + + + + + + + + + cf_speedCoef + + + + + + + + + + + + + + + + + + + + + + cf_speedCoef + + + + + + + + + + + + + + + uint16 + + + + + + + + @@ -2263,11 +2331,11 @@ - + - + [cf_speedCoef] @@ -2285,11 +2353,11 @@ - + - + uint16 @@ -2299,6 +2367,295 @@ + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + n_motRaw + + + + + + + + @@ -2311,11 +2668,11 @@ - + - + 0 @@ -2333,11 +2690,11 @@ - + - + sfix16_En4 @@ -2347,619 +2704,11 @@ - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - n_motAbsPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_trnsDet] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [cf_speedCoef] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - threshold=0 - Criteria : u2 ~= 0 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_counterRawPrev - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - + @@ -2967,35 +2716,35 @@ - + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -3021,11 +2770,11 @@ - + - + int16 @@ -3037,91 +2786,276 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + if { } + - - + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_counterRawPrev - + - - + + - + int16 + + + + + + + + + + + + + + - - - - - + + - - Ini=0 + + 4 + + + + + + + + + + + + + + + + + + + + + + n_motAbsPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3142,11 +3076,11 @@ - + - + 2 @@ -3164,11 +3098,11 @@ - + - + z_dirPrev @@ -3179,11 +3113,11 @@ - + - + int8 @@ -3193,6 +3127,72 @@ + + + + + + + + + + + + + + + + + + [cf_speedCoef] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + @@ -3308,7 +3308,7 @@ - + @@ -3338,6 +3338,21 @@ + + + + + + + + + + + boolean + + + + @@ -3349,21 +3364,6 @@ - - - - - - - - - - - boolean - - - - @@ -4020,5 +4020,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.json index 84135be..533db72 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.json @@ -999,6 +999,63 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8418", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8417", "className":"Simulink.Sum", @@ -1058,396 +1115,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9660", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax", - "label":"MinMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8411", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posHighRes", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8410", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posLowRes", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8412", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8404", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8400", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8418", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8398", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_posLowRes", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8395", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_posHighRes", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8393", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9664", "className":"Simulink.MinMax", @@ -1502,42 +1169,46 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9665", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9660", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"MinMax", + "label":"MinMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", "LockScale", - "FramePeriod" + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "Inherit: Inherit via internal rule", + "min", "off", - "inf" + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 1 ] }, "viewer":{ @@ -1546,83 +1217,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"MinMax", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8389", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8396", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8404", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1630,7 +1234,7 @@ "IconDisplay" ], "values":[ - "b_enaAdvCtrl", + "z_counterRaw", "Tag" ], "tabs":[ @@ -1648,6 +1252,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8403", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8412", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8405", "className":"Simulink.From", @@ -1680,11 +1348,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8403", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8398", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1692,7 +1360,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "z_posLowRes", "Tag" ], "tabs":[ @@ -1768,11 +1436,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8392", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8400", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8393", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1790,12 +1489,12 @@ "SampleTime" ], "values":[ - "*/", + "**", "Element-wise(.*)", "off", "[]", "[]", - "fixdt(1,16,14)", + "Inherit: Same as first input", "off", "Simplest", "off", @@ -1824,6 +1523,183 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8395", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_posHighRes", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8411", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_posHighRes", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9665", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8397", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8410", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_posLowRes", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8421", "className":"Simulink.Outport", @@ -1905,11 +1781,68 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8397", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8392", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,14)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8396", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1935,6 +1868,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8389", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8385#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png index c801a16..106c897 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.svg index b5abfd9..9a3b716 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.svg @@ -296,7 +296,7 @@ - + @@ -585,7 +585,7 @@ - + @@ -705,7 +705,7 @@ - + @@ -1190,342 +1190,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posHighRes] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posLowRes] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - + @@ -1533,155 +1202,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -1699,11 +1368,11 @@ - + - + sfix16_En12 @@ -1715,91 +1384,67 @@ - - - + + + - - + + - - + + - - [z_posLowRes] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posHighRes] - - - - - - - - - - - - - + - - + + - + sfix16_En12 @@ -1809,67 +1454,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - + @@ -1877,19 +1466,19 @@ - + - + - + - + @@ -1915,11 +1504,11 @@ - + - + sfix16_En12 @@ -1931,44 +1520,60 @@ - - - + + + - - + + - + - - + + - - 0 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - sfix16_En12 + + int16 @@ -1979,155 +1584,44 @@ - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - + - - [b_enaAdvCtrl] + + [z_counterRaw] - + - - + + - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 + + int16 @@ -2148,11 +1642,11 @@ - + - + [z_counter] @@ -2170,11 +1664,11 @@ - + - + int16 @@ -2184,11 +1678,140 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posLowRes] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + - + @@ -2196,19 +1819,19 @@ - + - + - + - + @@ -2226,11 +1849,11 @@ - + - + sfix16_En14 @@ -2242,69 +1865,44 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + [a_elecAngle] - - + + - - + + - - + + - - sfix16_En14 + + sfix16_En6 @@ -2315,44 +1913,181 @@ - - - + + + - - + + - - + + - - 1 + + + + + + + + + + - - + + - - - + + + - - + + - - a_elecAngle + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posHighRes] + + + + + + + + + + + + + + + + + + + + + + sfix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posHighRes] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En12 @@ -2373,11 +2108,11 @@ - + - + [b_enaAdvCtrl] @@ -2395,11 +2130,276 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posLowRes] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + + + + + + + boolean @@ -2911,5 +2911,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.json index 92a242f..67ecafd 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.json @@ -346,8 +346,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9416", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

If the Voltage applied to the motor is above a threshold but the motor does NOT spin, then there is an error.

", - "label":"

If the Voltage applied to the motor is above a threshold but the motor does NOT spin, then there is an error.

", + "name":"

If the Voltage applied to the motor is above a threshold but the motor does NOT spin, then there is an error.
Note: The error is checked only if the motor is Enabled. If it is Disabled it will not spin anyway.

", + "label":"

If the Voltage applied to the motor is above a threshold but the motor does NOT spin, then there is an error.
Note: The error is checked only if the motor is Enabled. If it is Disabled it will not spin anyway.

", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -365,7 +365,7 @@ "ClickFcn" ], "values":[ - "\n\n

If the Voltage applied to the motor is above a threshold but the motor does NOT spin, then there is an error.

", + "\n\n

If the Voltage applied to the motor is above a threshold but the motor does NOT spin, then there is an error.
Note: The error is checked only if the motor is Enabled. If it is Disabled it will not spin anyway.

", "off", "rich", "auto", @@ -419,7 +419,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -602,6 +602,1416 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8527", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"b_errFlag", + "label":"b_errFlag", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8524", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"t_errDequal", + "label":"t_errDequal", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "t_errDequal", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9405", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"r_errInpTgtThres", + "label":"r_errInpTgtThres", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "r_errInpTgtThres", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8521", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"g_Hb1", + "label":"g_Hb1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "4", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Simplest", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8517", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9398", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8515", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8514", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum", + "label":"Sum", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8510", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator3", + "label":"Relational Operator3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8509", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8508", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11021", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8504", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9395", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9397", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto22", + "label":"Goto22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8503", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_errCode", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9404", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator7", + "label":"Relational Operator7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11022", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8494", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodeRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8491", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodeRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8492", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9406", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_errCodePrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9402", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Debounce_Filter", + "label":"Debounce_Filter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Reusable function", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Use subsystem name", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "on", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8483", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8482", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9412", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM4", + "label":"CTRL_COMM4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "1", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8487", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_posRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8500", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_errCodeRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9407", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodePrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8480", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8525", "className":"Simulink.Constant", @@ -652,11 +2062,468 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8524", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9403", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs4", + "label":"Abs4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as input", + "off", + "Floor", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8519", + "className":"Either edge detection", + "icon":"WebViewIcon4", + "name":"either_edge", + "label":"either_edge", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "on", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Either edge detection" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8474", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8484", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion3", + "label":"Data Type Conversion3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9410", + "className":"Simulink.SFunction", + "icon":"WebViewIcon3", + "name":"Bitwise Operator1", + "label":"Bitwise Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "logicop", + "UseBitMask", + "NumInputPorts", + "BitMask", + "BitMaskRealWorld" + ], + "values":[ + "AND", + "on", + "1", + "bin2dec('100')", + "Stored Integer" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"S-Function", + "masktype":"Bitwise Operator" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9408", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodePrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9394", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"VqFinPrev", + "label":"VqFinPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8493", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9396", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motStdStill", + "label":"b_motStdStill", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8479", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"t_errDequal", - "label":"t_errDequal", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -670,7 +2537,123 @@ "FramePeriod" ], "values":[ - "t_errDequal", + "7", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11020", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8478", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM", + "label":"CTRL_COMM", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", "on", "inf", "[]", @@ -759,1854 +2742,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8517", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9405", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"r_errInpTgtThres", - "label":"r_errInpTgtThres", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "r_errInpTgtThres", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9398", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8510", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8508", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9406", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCodePrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8504", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8521", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"g_Hb1", - "label":"g_Hb1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "4", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Simplest", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8514", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum", - "label":"Sum", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9397", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8503", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCode", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8500", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCodeRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8515", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9404", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator7", - "label":"Relational Operator7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8491", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodeRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9395", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9407", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodePrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8509", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8519", - "className":"Either edge detection", - "icon":"WebViewIcon4", - "name":"either_edge", - "label":"either_edge", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "on", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Either edge detection" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8483", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8493", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8482", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8527", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_errFlag", - "label":"b_errFlag", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9412", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM4", - "label":"CTRL_COMM4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "1", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8480", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8484", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion3", - "label":"Data Type Conversion3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8494", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodeRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8479", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "7", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8478", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM", - "label":"CTRL_COMM", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8487", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_posRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9408", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodePrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8474", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Debounce_Filter", - "label":"Debounce_Filter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "on", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Use subsystem name", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Reusable function", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9402", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9403", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs4", - "label":"Abs4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as input", - "off", - "Floor", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9394", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9410", - "className":"Simulink.SFunction", - "icon":"WebViewIcon3", - "name":"Bitwise Operator1", - "label":"Bitwise Operator1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "logicop", - "UseBitMask", - "NumInputPorts", - "BitMask", - "BitMaskRealWorld" - ], - "values":[ - "AND", - "on", - "1", - "bin2dec('100')", - "Stored Integer" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"S-Function", - "masktype":"Bitwise Operator" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9396", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8492", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9401", "className":"Simulink.Logic", @@ -2625,7 +2760,7 @@ ], "values":[ "AND", - "2", + "3", "rectangular", "off", "boolean", @@ -3978,57 +4113,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" - ], - "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" - ], - "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" - ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9402#out:1", "className":"Simulink.Line", @@ -4182,57 +4266,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9404#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" - ], - "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" - ], - "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" - ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8517#out:1", "className":"Simulink.Line", @@ -4589,5 +4622,209 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11020#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9404#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11022#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.png index 8b88ef8..5b8c750 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.svg index 38f2544..33242e9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.svg @@ -1,10 +1,10 @@ - + - + @@ -79,7 +79,7 @@ - + @@ -98,7 +98,7 @@ - + @@ -117,7 +117,7 @@ - + @@ -171,7 +171,7 @@ - + @@ -179,7 +179,7 @@ - + This switch makes sure that once this error is SET, @@ -187,7 +187,7 @@ - + it can only be erased by a board restart cycle. @@ -198,32 +198,48 @@ - - + + - + - - If the Voltage applied to the motor is + + If the Voltage applied to the motor is above a - + - - above a threshold but the motor does + + threshold but the motor does NOT spin, then there - + - - NOT spin, then there is an error. + + is an error. + + + + + + + + Note: The error is checked only if the motor is + + + + + + + + Enabled. If it is Disabled it will not spin anyway. @@ -233,57 +249,57 @@ - + - + - + - - 1 + + 2 - + - + - - + + - + z_posRaw - + - - + + - + uint8 @@ -305,11 +321,11 @@ - + - + 1 @@ -327,11 +343,11 @@ - - + + - + z_errCode @@ -344,27 +360,27 @@ - + - + - + - + [z_posRaw] - + @@ -386,11 +402,11 @@ - + - + [z_errCode] @@ -408,11 +424,11 @@ - - + + - + uint8 @@ -424,44 +440,44 @@ - - - + + + - - + + - - + + - - t_errQual + + 2 - - + + - - - + + + - - + + - - uint16 + + b_errFlag @@ -482,11 +498,11 @@ - + - + t_errDequal @@ -504,11 +520,11 @@ - - + + - + uint16 @@ -520,43 +536,106 @@ - - - + + + - - + + - - + + - - 2 + + r_errInpTgtThres - + + + + + + + + + + + + + + + + + r_errInpTgtThres + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + - + - - + + - + uint8 @@ -578,35 +657,35 @@ - + - + - + - + - + - + - + - + @@ -627,95 +706,32 @@ - - - - - - - - - - - uint8 - - - - - - + + - + Ini=0 - - - - - - - - - - - - - - - - - - - - - - r_errInpTgtThres - - - - - - - - - - - - - - - - - - - - - - r_errInpTgtThres - - - - - - + + - - + + - - sfix16_En4 + + uint8 @@ -728,36 +744,20 @@ - + - - - - - - - - - - - - - - - - - + @@ -765,7 +765,7 @@ - + @@ -773,7 +773,7 @@ - + @@ -781,7 +781,7 @@ - + @@ -789,7 +789,7 @@ - + @@ -797,7 +797,7 @@ - + @@ -805,7 +805,7 @@ - + @@ -813,7 +813,7 @@ - + @@ -821,7 +821,7 @@ - + @@ -829,7 +829,7 @@ - + @@ -837,7 +837,7 @@ - + @@ -845,7 +845,7 @@ - + @@ -853,7 +853,7 @@ - + @@ -861,7 +861,7 @@ - + @@ -869,14 +869,30 @@ - + + + + + + + + + + + + + + + + + - + ~= 0 @@ -894,11 +910,11 @@ - - + + - + boolean @@ -908,11 +924,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + - + @@ -920,27 +1216,27 @@ - + - + - + - + - + - + @@ -966,11 +1262,11 @@ - - + + - + boolean @@ -980,769 +1276,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodePrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCode] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodeRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodeRaw] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodePrev] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - + @@ -1750,19 +1288,19 @@ - + - + - + - + @@ -1788,11 +1326,11 @@ - - + + - + boolean @@ -1804,115 +1342,864 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - + + - + - - + + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCode] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodeRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodeRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodePrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + tAcv + + + + + + + + tDeacv + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Debounce_Filter + + + + + + + + + + + + + + boolean @@ -1920,29 +2207,29 @@ - + - + - + - + - + - + @@ -1954,54 +2241,6 @@ - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -2014,19 +2253,19 @@ - + - + - + - + @@ -2052,11 +2291,11 @@ - - + + - + uint8 @@ -2066,54 +2305,6 @@ - - - - - - - - - - - - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -2126,19 +2317,19 @@ - + - + - + - + @@ -2164,11 +2355,11 @@ - - + + - + uint8 @@ -2178,54 +2369,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_errFlag - - - - - - - - @@ -2238,11 +2381,11 @@ - + - + 1 @@ -2260,11 +2403,11 @@ - - + + - + boolean @@ -2274,6 +2417,135 @@ + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodeRaw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodePrev] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -2286,11 +2558,11 @@ - + - + 0 @@ -2308,11 +2580,11 @@ - - + + - + uint8 @@ -2322,6 +2594,382 @@ + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + t_errQual + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -2334,19 +2982,19 @@ - + - + - + - + @@ -2372,11 +3020,11 @@ - - + + - + uint8 @@ -2388,187 +3036,59 @@ - - - + + + - - + + - - + + - - [z_errCodeRaw] + + Bitwise + + + + + + + + AND + + + + + + + + 0x4 - - + + - + - - + + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -2590,11 +3110,11 @@ - + - + [z_errCodePrev] @@ -2612,11 +3132,11 @@ - - + + - + uint8 @@ -2628,371 +3148,59 @@ - - - + + + - - + + - - + + - - if { } + + 4 - - + + - - + + - - + + - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - tAcv - - - - - - - - tDeacv - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Debounce_Filter + + VqFinPrev - - + + - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + sfix16_En4 @@ -3003,44 +3211,44 @@ - - + + - + - + - - [VqFinPrev] + + [b_errFlag] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -3051,87 +3259,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - + @@ -3141,11 +3269,11 @@ - + - + 3 @@ -3160,30 +3288,30 @@ - + - - + + - - VqFinPrev + + b_motStdStill - + - - + + - - sfix16_En4 + + boolean @@ -3194,59 +3322,43 @@ - - - + + + - - + + - - + + - - Bitwise - - - - - - - - AND - - - - - - - - 0x4 + + 7 - - + + - + - - + + - + uint8 @@ -3258,58 +3370,58 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - b_motStdStill + + b_motEna - + - - + + - + boolean @@ -3321,44 +3433,92 @@ - - - + + + - - + + - - + + - - [b_errFlag] + + 0 - - + + - - + + - - + + - - boolean + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + uint8 @@ -3370,29 +3530,29 @@ - - + + - - + + - - + + - - + + - + - - + + @@ -3406,19 +3566,19 @@ - - + + - + boolean - - + + @@ -3448,11 +3608,11 @@ - + - + @@ -3808,6 +3968,20 @@ + + + + + + + + + + + + + + @@ -3821,42 +3995,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -3866,11 +4012,11 @@ - + - + @@ -3880,25 +4026,11 @@ - + - - - - - - - - - - - - - - - + @@ -4003,7 +4135,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.json index 557cf0f..8cf0d47 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.json @@ -48,6 +48,86 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2426", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"yDefault", + "label":"yDefault", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2425", "className":"Simulink.ActionPort", @@ -146,86 +226,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2426", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"yDefault", - "label":"yDefault", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2424#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.svg index 7fd1531..50ab779 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.svg @@ -30,11 +30,59 @@
+ + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + yDefault + + + + + + + + - + @@ -42,11 +90,11 @@ - + - + else { } @@ -64,11 +112,11 @@ - + - + Action Port @@ -90,11 +138,11 @@ - + - + 1 @@ -112,11 +160,11 @@ - + - + yPrev @@ -127,11 +175,11 @@ - + - + boolean @@ -141,54 +189,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - yDefault - - - - - - - - @@ -205,5 +205,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.json index 3229c25..9b37cd4 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.json @@ -1,4 +1,84 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2447", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"yDeacv", + "label":"yDeacv", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2445", "className":"Simulink.RelationalOperator", @@ -142,11 +222,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2439", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -154,7 +234,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "yDeacv", "Tag" ], "tabs":[ @@ -234,179 +314,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2443", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "yPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2447", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"yDeacv", - "label":"yDeacv", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "z_cntInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2432", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2434", "className":"Simulink.Constant", @@ -456,6 +363,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2442", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yDeacv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2433", "className":"Simulink.Constant", @@ -506,20 +446,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2432", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "yDeacv", - "Tag" + "held", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -532,97 +472,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2442", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "yDeacv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2446", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", + "blocktype":"ActionPort", "masktype":"" } }, @@ -693,6 +543,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2439", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "tDeacv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2443", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2430", "className":"Simulink.Inport", @@ -760,6 +674,35 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2429", "className":"Simulink.Inport", @@ -827,6 +770,63 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2446", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.png index fa22619..8171947 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.svg index 4f82bef..6e78c7f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.svg @@ -10,12 +10,60 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + yDeacv + + + + + + + - + @@ -23,19 +71,19 @@ - + - + - + - + @@ -61,11 +109,11 @@ - + - + boolean @@ -87,11 +135,11 @@ - + - + [b_cntRst] @@ -120,11 +168,11 @@ - + - + [tDeacv] @@ -153,11 +201,11 @@ - + - + [b_cntRst] @@ -175,619 +223,11 @@ - + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [tDeacv] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - [tDeacv] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - yDeacv - - - - - - - - - - - - - - - - - - - - - - - - - - inc - - - - - - - - max - - - - - - - - rst - - - - - - - - cnt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Counter - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - elseif { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - + boolean @@ -809,11 +249,11 @@ - + - + [yDeacv] @@ -831,11 +271,11 @@ - + - + boolean @@ -845,6 +285,150 @@ + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + @@ -857,11 +441,11 @@ - + - + [yDeacv] @@ -880,187 +464,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + 0 - - + + - + - - + + - + boolean @@ -1070,6 +510,54 @@ + + + + + + + + + + + + + + + + + + elseif { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -1082,11 +570,11 @@ - + - + 3 @@ -1104,11 +592,11 @@ - + - + yPrev @@ -1119,11 +607,11 @@ - + - + boolean @@ -1133,6 +621,87 @@ + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + @@ -1145,11 +714,11 @@ - + - + 2 @@ -1167,11 +736,11 @@ - + - + b_cntRst @@ -1182,11 +751,11 @@ - + - + boolean @@ -1196,6 +765,245 @@ + + + + + + + + + + + + + + + + + + inc + + + + + + + + max + + + + + + + + rst + + + + + + + + cnt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Counter + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1208,11 +1016,11 @@ - + - + 1 @@ -1230,11 +1038,11 @@ - + - + tDeacv @@ -1245,11 +1053,11 @@ - + - + uint16 @@ -1259,6 +1067,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -1443,5 +1443,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_2515_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_2515_d.svg index 7937fee..f1ee32c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_2515_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_2515_d.svg @@ -592,5 +592,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.json index 8ee196c..5e305ac 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.json @@ -79,6 +79,35 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "z_cntInit" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2416", "className":"Simulink.Sum", @@ -138,6 +167,59 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2415", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax", + "label":"MinMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "min", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2414", "className":"Simulink.Inport", @@ -206,93 +288,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2515", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "inspector":{ - "params":[ - "initVal" - ], - "values":[ - "z_cntInit" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2415", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax", - "label":"MinMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2413", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2412", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"max", - "label":"max", + "name":"inc", + "label":"inc", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "inspector":{ "params":[ @@ -315,7 +315,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -355,11 +355,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2412", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2413", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"inc", - "label":"inc", + "name":"max", + "label":"max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "inspector":{ "params":[ @@ -382,7 +382,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.svg index 0acdef1..d988fe7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.svg @@ -59,141 +59,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - rst - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -206,51 +71,51 @@ - + - + u - + - + rst - + - + y - + - + 1 - + - + z - + - + @@ -268,11 +133,11 @@ - + - + Ini=z_cntInit @@ -283,11 +148,11 @@ - + - + uint16 @@ -295,29 +160,29 @@ - + - + - + - + - + - + @@ -329,11 +194,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + - + @@ -341,19 +278,19 @@ - + - + - + - + @@ -379,11 +316,137 @@ - + - + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + rst + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + inc + + + + + + + + + + + + + + uint16 @@ -405,11 +468,11 @@ - + - + 2 @@ -427,11 +490,11 @@ - + - + max @@ -442,74 +505,11 @@ - + - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - inc - - - - - - - - - - - - - - + uint16 @@ -625,5 +625,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json index dd598b9..541ec53 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json @@ -1,4 +1,298 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2491", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2490", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2489", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cntRst", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2487", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yAcv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2486", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "tAcv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2484", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "tAcv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2483", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yAcv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2482", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "tAcv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2492", "className":"Simulink.Outport", @@ -80,68 +374,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2491", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "z_cntInit" ], "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" + "0" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 1, - 9 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2489", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2488", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -149,211 +415,9 @@ "TagVisibility", "IconDisplay" ], - "values":[ - "b_cntRst", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2487", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "yAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2485", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cntRst", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2484", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "tAcv", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2483", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yAcv", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2490", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2481", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], "values":[ "yPrev", + "local", "Tag" ], "tabs":[ @@ -367,7 +431,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -421,11 +485,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2482", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2485", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -433,7 +497,7 @@ "IconDisplay" ], "values":[ - "tAcv", + "b_cntRst", "Tag" ], "tabs":[ @@ -451,6 +515,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2476", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_errPrev", + "label":"b_errPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2477", "className":"Simulink.ActionPort", @@ -532,117 +663,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2476", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2481", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"b_errPrev", - "label":"b_errPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "z_cntInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2488", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "yPrev", - "local", "Tag" ], "tabs":[ @@ -656,74 +689,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2475", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_cntRst", - "label":"b_cntRst", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, @@ -795,27 +761,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2486", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2475", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"b_cntRst", + "label":"b_cntRst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "tAcv", - "local", - "Tag" + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -823,7 +823,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.png index 3066c59..57009d5 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.svg index 37953d9..5c5afcc 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.svg @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - yAcv - - - - - - - @@ -70,13 +22,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -84,7 +60,7 @@ - + @@ -92,7 +68,7 @@ - + @@ -100,7 +76,7 @@ - + @@ -108,7 +84,7 @@ - + @@ -116,7 +92,7 @@ - + @@ -124,7 +100,7 @@ - + @@ -132,7 +108,7 @@ - + @@ -140,7 +116,7 @@ - + @@ -148,7 +124,7 @@ - + @@ -156,7 +132,7 @@ - + @@ -164,7 +140,7 @@ - + @@ -172,7 +148,7 @@ - + @@ -180,46 +156,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - + T - + - + F @@ -237,11 +189,75 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean @@ -263,11 +279,11 @@ - + - + [b_cntRst] @@ -296,11 +312,11 @@ - + - + [yAcv] @@ -319,44 +335,29 @@ - - - + + + - - + + - - + + - - [b_cntRst] + + [tAcv] - - - - - - - - - - - - - - - - - boolean + + @@ -377,11 +378,11 @@ - + - + [tAcv] @@ -399,11 +400,11 @@ - + - + uint16 @@ -425,11 +426,11 @@ - + - + [yAcv] @@ -447,11 +448,11 @@ - + - + boolean @@ -461,166 +462,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -633,11 +474,11 @@ - + - + [tAcv] @@ -655,11 +496,11 @@ - + - + uint16 @@ -671,155 +512,44 @@ - - - + + + - - + + - - + + - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - + 1 - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - + - - + + - - + + - - b_errPrev - - - - - - - - - - - - - - - boolean + + yAcv @@ -840,155 +570,155 @@ - + - + inc - + - + max - + - + rst - + - + cnt - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1006,11 +736,11 @@ - + - + Counter @@ -1021,11 +751,11 @@ - + - + uint16 @@ -1033,29 +763,29 @@ - + - + - + - + - + - + @@ -1079,11 +809,11 @@ - + - + [yPrev] @@ -1102,58 +832,298 @@ - - - + + + - - + + - - + + - - 2 + + 1 - + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + - - + + - - + + - - b_cntRst + + b_errPrev - + - - + + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + boolean @@ -1175,11 +1145,11 @@ - + - + 1 @@ -1197,11 +1167,11 @@ - + - + tAcv @@ -1212,11 +1182,11 @@ - + - + uint16 @@ -1228,29 +1198,59 @@ - - - + + + - - + + - - + + - - [tAcv] + + 2 - - + + + + + + + + + + + + + + + + + b_cntRst + + + + + + + + + + + + + + + boolean @@ -1443,5 +1443,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_2515_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_2515_d.svg index 1ca64bc..ef1bfba 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_2515_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_2515_d.svg @@ -592,5 +592,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.json index 78fd3e3..94c8001 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.json @@ -221,11 +221,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2413", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2414", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"max", - "label":"max", + "name":"rst", + "label":"rst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "inspector":{ "params":[ @@ -248,7 +248,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -288,11 +288,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2414", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2413", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"rst", - "label":"rst", + "name":"max", + "label":"max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "inspector":{ "params":[ @@ -315,7 +315,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.svg index 32860eb..3d4edaf 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.svg @@ -63,7 +63,7 @@ - + @@ -270,7 +270,7 @@ - + @@ -330,69 +330,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - max - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -405,11 +342,11 @@ - + - + 3 @@ -427,11 +364,11 @@ - + - + rst @@ -442,11 +379,11 @@ - + - + boolean @@ -456,6 +393,69 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + max + + + + + + + + + + + + + + + uint16 + + + + + + + + @@ -625,5 +625,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2507_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2507_d.svg index b84a2dc..0db734d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2507_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2507_d.svg @@ -120,36 +120,36 @@ - - - - - - - - - - - boolean - - - - - + - + Ini=0 + + + + + + + + + + + boolean + + + + @@ -345,5 +345,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.json index 2d13f10..f792b61 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.json @@ -92,8 +92,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -105,7 +105,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -116,9 +115,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -127,8 +127,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -141,7 +141,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -151,18 +150,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -227,262 +229,41 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Qualification", - "label":"Qualification", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2472", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", + "[]", "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "[]", + "3" ], "tabs":[ - "Main", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 1 ] }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2465", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2464", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "yPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2466", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tDeacv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2462", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "y", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2460", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Merge", "masktype":"" } }, @@ -530,19 +311,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2458", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2466", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "yPrev", + "tDeacv", + "local", "Tag" ], "tabs":[ @@ -556,7 +339,73 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2465", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "tAcv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2461", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cntRst", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, @@ -592,33 +441,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2472", - "className":"Simulink.Merge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2456", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets", - "Inputs" + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "off", - "[]", - "3" + "u", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -626,7 +467,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"From", "masktype":"" } }, @@ -661,6 +502,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2454", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "u", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2453", "className":"Simulink.From", @@ -724,19 +596,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2451", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2462", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "yPrev", + "y", + "local", "Tag" ], "tabs":[ @@ -750,38 +624,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2456", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "u", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -817,11 +660,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2454", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2449", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -829,7 +672,7 @@ "IconDisplay" ], "values":[ - "u", + "tAcv", "Tag" ], "tabs":[ @@ -848,75 +691,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2461", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_cntRst", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2448", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Dequalification", - "label":"Dequalification", + "name":"Qualification", + "label":"Qualification", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -924,8 +703,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -937,7 +716,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -948,9 +726,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -960,7 +739,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -973,7 +752,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -983,18 +761,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1040,108 +821,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Default", - "label":"Default", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2449", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2448", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1149,7 +833,7 @@ "IconDisplay" ], "values":[ - "tAcv", + "yPrev", "Tag" ], "tabs":[ @@ -1167,6 +851,301 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2464", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2458", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Default", + "label":"Default", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Dequalification", + "label":"Dequalification", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2463", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "u", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2422", "className":"Simulink.Inport", @@ -1301,6 +1280,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2451", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2420", "className":"Simulink.Inport", @@ -1369,21 +1379,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2463", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2460", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "u", - "local", + "yPrev", "Tag" ], "tabs":[ @@ -1397,7 +1405,52 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2471", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator4", + "label":"Logical Operator4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "NOT", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", "masktype":"" } }, @@ -1536,51 +1589,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2471", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator4", - "label":"Logical Operator4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "NOT", - "2", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2507#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.png index 2f53756..9c8dfd9 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.svg index b65cd36..c52c2db 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.svg @@ -272,36 +272,726 @@ - - - - - - - - - - - boolean - - - - - + - + Ini=0 + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + u2 + + + + + + + + if(u1 ~= 0) + + + + + + + + elseif(u2 ~=0) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [y] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [y] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + @@ -324,43 +1014,43 @@ - + - + tAcv - + - + b_cntRst - + - + b_errPrev - + - + yAcv - + - + if { } @@ -390,11 +1080,11 @@ - + - + Qualification @@ -407,16 +1097,16 @@ - - + + - - + + - - action + + boolean @@ -428,16 +1118,16 @@ - - + + - - + + - - boolean + + action @@ -448,707 +1138,17 @@ - + - - - - - - - - - - - - - - - [tAcv] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [tDeacv] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [y] - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - u2 - - - - - - - - if(u1 ~= 0) - - - - - - - - elseif(u2 ~=0) - - - - - - - - else - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [y] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [u] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [tDeacv] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [u] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - + @@ -1158,29 +1158,29 @@ - + [b_cntRst] - + - + - + - + boolean @@ -1190,87 +1190,6 @@ - - - - - - - - - - - - - - - - - - [u] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cntRst] - - - - - - - - - - - - - - - @@ -1283,11 +1202,11 @@ - + - + [yPrev] @@ -1305,11 +1224,11 @@ - + - + boolean @@ -1321,136 +1240,29 @@ - - - + + + - - - - - - - - + + - - + + - - tDeacv - - - - - - - - b_cntRst - - - - - - - - yPrev - - - - - - - - yDeacv - - - - - - - - elseif { } + + [yPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dequalification - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - boolean + + @@ -1461,49 +1273,43 @@ - - - - - - - - + + - + - + - - [b_cntRst] + + [yPrev] - + - + - - + + - + boolean @@ -1520,38 +1326,38 @@ - + - + - + - + yPrev - + - + yDefault - + - + else { } @@ -1559,7 +1365,7 @@ - + @@ -1572,7 +1378,7 @@ - + @@ -1581,11 +1387,11 @@ - + - + Default @@ -1593,7 +1399,7 @@ - + @@ -1602,11 +1408,11 @@ - + - + action @@ -1614,7 +1420,7 @@ - + @@ -1623,11 +1429,11 @@ - + - + boolean @@ -1639,50 +1445,181 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + tDeacv + + + + + + + + b_cntRst + + + + + + + + yPrev + + + + + + + + yDeacv + + + + + + + + elseif { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Dequalification + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + - - + + - - + + - - + + - - [tAcv] + + [u] - - - - - - - - - - - - - - - - - uint16 + + @@ -1703,11 +1640,11 @@ - + - + 3 @@ -1725,11 +1662,11 @@ - + - + tDeacv @@ -1740,11 +1677,11 @@ - + - + uint16 @@ -1766,11 +1703,11 @@ - + - + 2 @@ -1788,11 +1725,11 @@ - + - + tAcv @@ -1803,11 +1740,11 @@ - + - + uint16 @@ -1817,6 +1754,54 @@ + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -1829,11 +1814,11 @@ - + - + 1 @@ -1851,11 +1836,11 @@ - + - + u @@ -1866,11 +1851,11 @@ - + - + boolean @@ -1882,33 +1867,112 @@ - - - + + + - - + + - - + + - - [u] + + [yPrev] - - + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + @@ -1925,19 +1989,19 @@ - + - + - + - + @@ -1952,11 +2016,11 @@ - + - + boolean @@ -1989,19 +2053,19 @@ - + - + - + - + @@ -2016,11 +2080,11 @@ - + - + boolean @@ -2053,19 +2117,19 @@ - + - + - + - + @@ -2080,11 +2144,11 @@ - + - + boolean @@ -2105,70 +2169,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - @@ -2597,5 +2597,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8519_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8519_d.svg index 9949a68..3c5568c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8519_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8519_d.svg @@ -120,36 +120,36 @@ - - - - - - - - - - - boolean - - - - - + - + Ini=0 + + + + + + + + + + + boolean + + + + @@ -345,5 +345,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.json index 0d919ed..1d192cf 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.json @@ -190,6 +190,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8654", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Elements as channels (sample based)", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10024", "className":"Simulink.Goto", @@ -224,11 +274,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8647", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8645", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -237,7 +287,7 @@ "IconDisplay" ], "values":[ - "b_toTrqMod", + "z_ctrlModReq", "local", "Tag" ], @@ -257,11 +307,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8646", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8651", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -270,7 +320,7 @@ "IconDisplay" ], "values":[ - "b_toSpdMod", + "b_motEna", "local", "Tag" ], @@ -290,11 +340,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8643", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10019", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -303,7 +353,106 @@ "IconDisplay" ], "values":[ - "b_toActive", + "VqFinPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9423", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8640", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toOpen", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8639", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", "local", "Tag" ], @@ -385,11 +534,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8636", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8635", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -397,7 +546,7 @@ "IconDisplay" ], "values":[ - "b_toTrqMod", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -416,11 +565,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -428,7 +577,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "z_ctrlModPrev", "Tag" ], "tabs":[ @@ -446,6 +595,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8643", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toActive", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10028", "className":"Simulink.From", @@ -477,70 +659,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9996", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8650", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9995", "className":"Simulink.From", @@ -573,77 +691,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10023", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8639", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9994", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8630", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -651,7 +703,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "b_toSpdMod", "Tag" ], "tabs":[ @@ -701,52 +753,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8640", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8625", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "b_toOpen", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9424", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", "Tag" ], "tabs":[ @@ -764,70 +783,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8635", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8645", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8624", "className":"Simulink.From", @@ -860,42 +815,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8625", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F03_03_Input_Target_Synthesis", + "label":"F03_03_Input_Target_Synthesis", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "b_toOpen", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "Code Generation", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 5, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9423", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8646", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -904,7 +927,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "b_toSpdMod", "local", "Tag" ], @@ -936,8 +959,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -949,7 +972,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -960,9 +982,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -971,8 +994,8 @@ "ReadWrite", "Stateflow.Translate.translate", "ExplicitOnly", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -985,7 +1008,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -995,18 +1017,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1021,99 +1046,33 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F03_03_Input_Target_Synthesis", - "label":"F03_03_Input_Target_Synthesis", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9424", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "b_motStdStill", + "Tag" ], "tabs":[ - "Main", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 6 - ] + "tabs_idx":0 }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"From", "masktype":"" } }, @@ -1130,8 +1089,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1143,7 +1102,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1154,9 +1112,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1166,7 +1125,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1179,7 +1138,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1189,18 +1147,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1215,109 +1176,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10256", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10018", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9997", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8642", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -1326,7 +1189,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "z_ctrlModPrev", "local", "Tag" ], @@ -1413,11 +1276,78 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8651", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10018", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"VqFinPrev", + "label":"VqFinPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10023", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -1426,422 +1356,7 @@ "IconDisplay" ], "values":[ - "b_motEna", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10021", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10019", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8630", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toSpdMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8654", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Elements as channels (sample based)", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9422", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8536", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_errFlag", - "label":"b_errFlag", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8642", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlModPrev", + "r_inpTgt", "local", "Tag" ], @@ -1928,11 +1443,242 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10256", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8647", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toTrqMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10021", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8650", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -1940,7 +1686,267 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9994", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9422", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motStdStill", + "label":"b_motStdStill", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9997", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8536", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_errFlag", + "label":"b_errFlag", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9996", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8636", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toTrqMod", "Tag" ], "tabs":[ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.png index 221ac4e..bdfa7a0 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.svg index 2849e18..59a1432 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.svg @@ -155,6 +155,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -167,11 +247,11 @@ - + - + [z_ctrlTypSel] @@ -190,398 +270,11 @@ - - + + - - - - - - - - - - - - [b_toTrqMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toActive] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toTrqMod] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - + @@ -591,14 +284,14 @@ - - [b_errFlag] + + [z_ctrlModReq] - + @@ -610,44 +303,29 @@ - - - + + + - - + + - + - - [z_ctrlModReq] + + [b_motEna] - - - - - - - - - - - - - - - - - uint8 + + @@ -658,28 +336,94 @@ - - + + - + - + - - [r_inpTgt] + + [VqFinPrev] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toOpen] + + + + + + @@ -701,11 +445,11 @@ - + - + [z_ctrlMod] @@ -724,59 +468,11 @@ - - + + - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - + @@ -786,30 +482,30 @@ - - [b_errFlag] + + [VqFinPrev] - + - - + + - + - - boolean + + sfix16_En4 @@ -820,77 +516,44 @@ - - - - - - - - - - - - - - - - [b_toOpen] - - - - - - - - - - - - - - - - - - - + + - + - + - - [b_motStdStill] + + [z_ctrlMod] - + - - + + - - + + - - boolean + + uint8 @@ -911,11 +574,11 @@ - + - + [z_ctrlModReq] @@ -933,11 +596,11 @@ - + - + uint8 @@ -949,28 +612,76 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + [z_ctrlModPrev] - + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toActive] + + + + + + @@ -982,43 +693,187 @@ - - + + - + - + - - [b_toActive] + + [r_inpTgtSca] - + - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toSpdMod] + + + + + + + + + + + + + - - + + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + boolean @@ -1040,11 +895,11 @@ - + - + [b_toOpen] @@ -1062,11 +917,11 @@ - + - + boolean @@ -1078,28 +933,209 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [b_toActive] - + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + z_ctrlModReq + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgt + + + + + + + + VqFinPrev + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F03_03_Input_Target_Synthesis + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toSpdMod] + + + + + + @@ -1116,54 +1152,54 @@ - + - + - + - + b_toOpen - + - + b_toActive - + - + b_toSpdMod - + - + b_toTrqMod - + - + z_ctrlMod @@ -1171,7 +1207,7 @@ - + @@ -1180,11 +1216,11 @@ - + - + F03_02_Control_Mode_Manager @@ -1192,12 +1228,12 @@ - + - + @@ -1205,7 +1241,7 @@ - + @@ -1218,7 +1254,7 @@ - + @@ -1227,11 +1263,11 @@ - + - + uint8 @@ -1243,129 +1279,50 @@ - + - + - - + + - - - - - - - - + + - - + + - - z_ctrlTypSel - - - - - - - - z_ctrlModReq - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgt - - - - - - - - VqFinPrev - - - - - - - - r_inpTgtSca + + [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F03_03_Input_Target_Synthesis + + - - - - - - - - + + - - + + - - sfix16_En4 + + boolean @@ -1377,14 +1334,8 @@ - - - - - - - + @@ -1398,75 +1349,75 @@ - + - + b_motEna - + - + b_motStdStill - + - + b_errFlag - + - + z_ctrlModReq - + - + z_ctrlModPrev - + - + b_toOpen - + - + b_toActive - + - + b_toSpdMod - + - + b_toTrqMod @@ -1496,11 +1447,11 @@ - + - + F03_01_Mode_Transition_Calculation @@ -1513,15 +1464,15 @@ - + - - + + - + boolean @@ -1534,15 +1485,15 @@ - + - - + + - + boolean @@ -1555,15 +1506,15 @@ - + - - + + - + boolean @@ -1580,11 +1531,11 @@ - + - + boolean @@ -1596,145 +1547,34 @@ - + - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + - + - + - - [r_inpTgtSca] + + [z_ctrlModPrev] - + @@ -1756,11 +1596,11 @@ - + - + 6 @@ -1778,11 +1618,11 @@ - + - + r_inpTgt @@ -1793,11 +1633,11 @@ - + - + sfix16_En4 @@ -1809,236 +1649,59 @@ - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - - - - - - - - - - - - + - - boolean + + 7 - - - - - - - - - - - - + + + + + - + + + + + + + + + + + VqFinPrev + + + + + + + + - + - - 3 - - - - - - - - - - - - - - - - - - - - - - b_motEna - - - - - - - - - - - - - - - boolean + + sfix16_En4 @@ -2049,234 +1712,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_motStdStill - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - b_errFlag - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - + - - [z_ctrlModPrev] + + [r_inpTgt] - + @@ -2298,11 +1755,11 @@ - + - + 5 @@ -2320,11 +1777,11 @@ - + - + z_ctrlModReq @@ -2335,11 +1792,11 @@ - + - + uint8 @@ -2351,11 +1808,554 @@ - - + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toTrqMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + b_motStdStill + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + b_errFlag + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + @@ -2365,30 +2365,30 @@ - - [z_ctrlModPrev] + + [b_toTrqMod] - + - - + + - + - - uint8 + + boolean @@ -2839,5 +2839,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.json index 871e0db..582afc2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.json @@ -97,6 +97,86 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8600", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"b_toTrqMod", + "label":"b_toTrqMod", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8599", "className":"Simulink.Outport", @@ -258,203 +338,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8594", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8593", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant7", - "label":"constant7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "TRQ_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8591", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant2", - "label":"constant2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "OPEN_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8589", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "TRQ_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator6", - "label":"Relational Operator6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8590", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", + "name":"constant6", + "label":"constant6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -498,6 +386,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8592", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant5", + "label":"constant5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "VLT_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8586", "className":"Simulink.RelationalOperator", @@ -544,11 +481,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8585", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8584", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"Relational Operator3", + "label":"Relational Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -678,6 +615,100 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8580", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8589", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant", + "label":"constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "TRQ_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8595", "className":"Simulink.Constant", @@ -728,56 +759,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8584", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8593", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8590", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant6", - "label":"constant6", + "name":"constant1", + "label":"constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -821,6 +807,484 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8573", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8571", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toOpen", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8568", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8572", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8566", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toTrqMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8585", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator4", + "label":"Relational Operator4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8565", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8564", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8594", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant7", + "label":"constant7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "TRQ_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8563", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toOpen", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9419", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8561", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toOpen", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8559", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8558", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toTrqMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8598", "className":"Simulink.Outport", @@ -901,321 +1365,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8580", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8572", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9421", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8568", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8563", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toOpen", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9419", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8559", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8570", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_toSpdMod", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8582", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator11", - "label":"Relational Operator11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8556", "className":"Simulink.From", @@ -1309,104 +1458,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8553", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toActive", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8551", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModPrev", - "label":"z_ctrlModPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8552", "className":"Simulink.From", @@ -1439,140 +1490,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8549", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8560", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8564", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8592", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8591", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant5", - "label":"constant5", + "name":"constant2", + "label":"constant2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1586,7 +1508,7 @@ "FramePeriod" ], "values":[ - "VLT_MODE", + "OPEN_MODE", "on", "inf", "[]", @@ -1616,6 +1538,72 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8570", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toSpdMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8569", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toActive", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8548", "className":"Simulink.Inport", @@ -1684,44 +1672,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8573", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motEna", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8561", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8560", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1729,7 +1684,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -1815,108 +1770,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8571", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8549", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_toOpen", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8562", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toSpdMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8569", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_toActive", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8600", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_toTrqMod", - "label":"b_toTrqMod", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1932,17 +1790,11 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "4", @@ -1957,17 +1809,10 @@ "-1", "auto", "off", - "off", - "0", - "off", - "reset", - "off", - "0", "", - [ - ], - "Dialog", - "Auto", + "on", + "off", + "off", "off" ], "tabs":[ @@ -1987,7 +1832,105 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8551", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlModPrev", + "label":"z_ctrlModPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8553", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toActive", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -2059,11 +2002,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8558", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8562", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2071,7 +2014,7 @@ "IconDisplay" ], "values":[ - "b_toTrqMod", + "b_toSpdMod", "Tag" ], "tabs":[ @@ -2090,11 +2033,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8566", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9421", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2103,7 +2046,7 @@ "IconDisplay" ], "values":[ - "b_toTrqMod", + "b_motStdStill", "local", "Tag" ], @@ -2123,27 +2066,39 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8565", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Relational Operator6", + "label":"Relational Operator6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "z_ctrlModPrev", - "local", - "Tag" + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Main", + "Data Type", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2151,7 +2106,187 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8582", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator11", + "label":"Relational Operator11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8579", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator9", + "label":"Logical Operator9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "NOT", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8578", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator7", + "label":"Logical Operator7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "NOT", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8576", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator4", + "label":"Logical Operator4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "OR", + "4", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", "masktype":"" } }, @@ -2245,51 +2380,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8576", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator4", - "label":"Logical Operator4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "OR", - "4", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8577", "className":"Simulink.Logic", @@ -2335,96 +2425,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8578", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator7", - "label":"Logical Operator7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "NOT", - "2", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8579", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator9", - "label":"Logical Operator9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "NOT", - "2", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.png index 2d054a6..84a1bef 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.svg index e1e0ff4..4907451 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.svg @@ -81,6 +81,54 @@ + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + b_toTrqMod + + + + + + + + @@ -93,11 +141,11 @@ - + - + 3 @@ -115,11 +163,11 @@ - + - + b_toSpdMod @@ -141,11 +189,11 @@ - + - + 1 @@ -163,11 +211,11 @@ - + - + b_toOpen @@ -179,59 +227,11 @@ - - + + - - - - - - - - - - - - TRQ_MODE - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - + @@ -241,29 +241,29 @@ - - OPEN_MODE + + SPD_MODE - + - + - + - + uint8 @@ -275,11 +275,11 @@ - - + + - + @@ -289,149 +289,29 @@ - - TRQ_MODE + + VLT_MODE - + - + - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - SPD_MODE - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -445,7 +325,7 @@ - + @@ -453,27 +333,27 @@ - + - + - + - + - + - + @@ -499,11 +379,11 @@ - + - + boolean @@ -515,37 +395,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -560,22 +440,22 @@ - + - + - - + + - + boolean @@ -589,7 +469,7 @@ - + @@ -597,19 +477,19 @@ - + - + - + - + @@ -635,11 +515,11 @@ - + - + boolean @@ -653,7 +533,7 @@ - + @@ -661,27 +541,27 @@ - + - + - + - + - + - + @@ -707,11 +587,11 @@ - + - + boolean @@ -721,6 +601,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + TRQ_MODE + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -771,115 +771,43 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - + - + SPD_MODE - + - + - - + + - + uint8 @@ -891,148 +819,28 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_toActive - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - + - - [b_errFlag] + + [b_motEna] - + @@ -1044,28 +852,28 @@ - - + + - + - + - - [b_motStdStill] + + [b_toOpen] - + @@ -1087,11 +895,11 @@ - + - + [z_ctrlModReq] @@ -1108,6 +916,273 @@ + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toTrqMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + TRQ_MODE + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -1120,11 +1195,11 @@ - + - + [b_toOpen] @@ -1142,11 +1217,11 @@ - + - + boolean @@ -1168,11 +1243,11 @@ - + - + [b_motStdStill] @@ -1190,11 +1265,59 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toOpen] + + + + + + + + + + + + + + + + + + + + + boolean @@ -1216,11 +1339,11 @@ - + - + [z_ctrlModReq] @@ -1238,11 +1361,11 @@ - + - + uint8 @@ -1254,29 +1377,44 @@ - - - + + + - - + + - - + + - - [b_toSpdMod] + + [b_toTrqMod] - - + + + + + + + + + + + + + + + + + boolean @@ -1287,60 +1425,44 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + 2 + - - + + - - - + + + - - + + - - boolean + + b_toActive @@ -1361,11 +1483,11 @@ - + - + [z_ctrlModReq] @@ -1383,11 +1505,11 @@ - + - + uint8 @@ -1409,11 +1531,11 @@ - + - + [z_ctrlModPrev] @@ -1431,11 +1553,11 @@ - + - + uint8 @@ -1457,11 +1579,11 @@ - + - + [b_motEna] @@ -1479,11 +1601,11 @@ - + - + boolean @@ -1493,6 +1615,468 @@ + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + OPEN_MODE + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toSpdMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toActive] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_errFlag + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + b_motStdStill + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModPrev + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -1543,11 +2127,11 @@ - - + + - + @@ -1557,92 +2141,44 @@ - - 5 + + 1 - + - - + + - + - - z_ctrlModPrev + + b_motEna - - + + - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - - - - - - - + boolean @@ -1652,453 +2188,6 @@ - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - VLT_MODE - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - b_errFlag - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toOpen] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_motStdStill - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toOpen] - - - - - - - - - - - - - - - @@ -2111,11 +2200,11 @@ - + - + [b_toSpdMod] @@ -2133,11 +2222,11 @@ - + - + boolean @@ -2149,254 +2238,165 @@ - - + + - + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - [b_toActive] + + - - - - + - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - b_toTrqMod - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - b_motEna + + - + - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toTrqMod] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toTrqMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - [z_ctrlModPrev] - - - - - - - + + boolean @@ -2407,30 +2407,30 @@ - - - + + + - - + + - + - - + + - - + + @@ -2439,9 +2439,24 @@ + + + + + + + + + + + boolean + + + + - - + + @@ -2450,51 +2465,36 @@ - - - - - - - - - - - boolean - - - - - - - + + + - - + + - + - - + + - - + + @@ -2503,9 +2503,24 @@ + + + + + + + + + + + boolean + + + + - - + + @@ -2514,21 +2529,6 @@ - - - - - - - - - - - boolean - - - - @@ -2597,11 +2597,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + - + @@ -2609,19 +2737,19 @@ - + - + - + - + @@ -2631,6 +2759,21 @@ + + + + + + + + + + + boolean + + + + @@ -2642,149 +2785,6 @@ - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - @@ -3050,10 +3050,10 @@ - + - + @@ -3417,5 +3417,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json index 0e31ae5..da479c3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json @@ -44,51 +44,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:6", - "className":"Stateflow.State", - "icon":"WebViewIcon7", - "name":"SPEED_MODE", - "label":"SPEED_MODE", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", - "inspector":{ - "params":[ - "HasOutputData", - "InlineOption", - "LabelString", - "DataLogging", - "TestPoint", - "Description", - "Document" - ], - "values":[ - false, - "Auto", - "SPEED_MODE\n\nentry:\nz_ctrlMod = SPD_MODE;", - false, - false, - "", - "" - ], - "tabs":[ - "General", - "Logging", - "Documentation" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:28", "className":"Stateflow.State", @@ -134,6 +89,51 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:6", + "className":"Stateflow.State", + "icon":"WebViewIcon7", + "name":"SPEED_MODE", + "label":"SPEED_MODE", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", + "inspector":{ + "params":[ + "HasOutputData", + "InlineOption", + "LabelString", + "DataLogging", + "TestPoint", + "Description", + "Document" + ], + "values":[ + false, + "Auto", + "SPEED_MODE\n\nentry:\nz_ctrlMod = SPD_MODE;", + false, + false, + "", + "" + ], + "tabs":[ + "General", + "Logging", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:4", "className":"Stateflow.State", @@ -180,7 +180,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:12", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:30", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", @@ -212,6 +212,39 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:9", + "className":"Stateflow.Transition", + "icon":"WebViewIcon8", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 1, + "", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:31", "className":"Stateflow.Transition", @@ -246,40 +279,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:32", - "className":"Stateflow.Transition", - "icon":"WebViewIcon8", - "name":"", - "label":"[b_toSpdMod]", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 1, - "[b_toSpdMod]", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:12", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", @@ -293,7 +293,7 @@ "Document" ], "values":[ - 1, + 2, "", "", "" @@ -345,11 +345,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:30", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:32", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", - "label":"", + "label":"[b_toSpdMod]", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -359,8 +359,8 @@ "Document" ], "values":[ - 2, - "", + 1, + "[b_toSpdMod]", "", "" ], @@ -422,39 +422,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:2", - "className":"Stateflow.Transition", - "icon":"WebViewIcon8", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 1, - "", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:13", "className":"Stateflow.Transition", @@ -520,5 +487,38 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:2", + "className":"Stateflow.Transition", + "icon":"WebViewIcon8", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 1, + "", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.svg index c43b4dd..a42502a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.svg @@ -86,14 +86,14 @@ - + - + @@ -102,7 +102,7 @@ - + @@ -111,56 +111,56 @@ - - + + - + - - + + - + - - SPEED_MODE + + VOLTAGE_MODE - + - + - + - + entry: - + - - + + - + - - z_ctrlMod = SPD_MODE; + + z_ctrlMod = VLT_MODE; @@ -170,7 +170,7 @@ - + @@ -178,14 +178,14 @@ - + - + @@ -194,7 +194,7 @@ - + @@ -203,56 +203,56 @@ - - + + - + - - + + - + - - VOLTAGE_MODE + + SPEED_MODE - + - + - + - + entry: - + - - + + - + - - z_ctrlMod = VLT_MODE; + + z_ctrlMod = SPD_MODE; @@ -262,7 +262,7 @@ - + @@ -364,7 +364,7 @@ - + @@ -372,26 +372,49 @@ - + - + - + - + - + - + 2 - + + + + + + + + + + + + + + + + + + + + + + + + @@ -403,7 +426,7 @@ - + @@ -457,63 +480,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - - - - - - - - - - 1 - - - - - - - - - - - - + @@ -521,12 +488,26 @@ - + - + - + + + + + + + + + + + + + 2 + + @@ -559,7 +540,7 @@ - + @@ -567,26 +548,45 @@ - + - + - - + + - + + + + + + + + + + + + + + + [b_toSpdMod] + + + + + - + - - 2 + + 1 - + @@ -617,7 +617,7 @@ - + @@ -703,30 +703,13 @@ - + - - - - - - - - - - - - - - - - - @@ -796,7 +779,24 @@ + + + + + + + + + + + + + + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json index 4841cad..fdde0c9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json @@ -267,8 +267,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -280,7 +280,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -291,9 +290,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -303,7 +303,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -316,7 +316,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -326,18 +325,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -364,8 +366,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -377,7 +379,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -388,9 +389,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -400,7 +402,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -413,7 +415,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -423,18 +424,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -809,86 +813,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9196", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_devSignal1", - "label":"r_devSignal1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9195", "className":"Simulink.Outport", @@ -970,52 +894,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10173", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10447", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"toNegative", - "label":"toNegative", + "name":"UnitDelay4", + "label":"UnitDelay4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ + "0", + "Inherited", "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", + "", + "", "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", - "Parameter Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 8, - 11 + 3, + 4 ] }, "viewer":{ @@ -1024,7 +939,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -1041,8 +956,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1054,7 +969,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1065,9 +979,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1077,7 +992,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1090,7 +1005,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1100,18 +1014,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1125,87 +1042,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9073", - "className":"Simulink.Scope", - "icon":"WebViewIcon3", - "name":"Scope9", - "label":"Scope9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":[ - ], - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Scope", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9028", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux8", - "label":"Mux8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "3", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9027", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux7", - "label":"Mux7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "3", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026", "className":"Simulink.Mux", @@ -1237,6 +1073,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux1", + "label":"Mux1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "className":"Simulink.SubSystem", @@ -1250,8 +1117,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1263,7 +1130,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1274,9 +1140,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1286,7 +1153,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1299,7 +1166,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1309,18 +1175,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1378,11 +1247,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10365", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713", "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1420,103 +1289,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Park_Transform", - "label":"Park_Transform", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8863", "className":"Simulink.Goto", @@ -1551,22 +1323,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8862", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9027", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Mux7", + "label":"Mux7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "Vq_min", - "local", - "Tag" + "3", + "bar" ], "tabs":[ "Parameter Attributes" @@ -1579,16 +1349,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8861", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8858", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto36", + "label":"Goto36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1597,7 +1367,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "r_cos", "local", "Tag" ], @@ -1683,11 +1453,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8849", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9717", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto28", - "label":"Goto28", + "name":"Goto32", + "label":"Goto32", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1696,7 +1466,106 @@ "IconDisplay" ], "values":[ - "iq_min", + "b_motEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8861", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8851", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8848", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", "local", "Tag" ], @@ -1749,11 +1618,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8844", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9028", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux8", + "label":"Mux8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8843", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1762,7 +1662,40 @@ "IconDisplay" ], "values":[ - "iq", + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8842", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto21", + "label":"Goto21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", "local", "Tag" ], @@ -1815,11 +1748,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10171", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8837", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1828,7 +1761,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "Vd_max", "local", "Tag" ], @@ -1881,11 +1814,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8838", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10686", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1894,172 +1827,7 @@ "IconDisplay" ], "values":[ - "Vd_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10728", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto30", - "label":"Goto30", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10448", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VdPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10395", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10172", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10394", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd", + "iqAbs", "local", "Tag" ], @@ -2110,20 +1878,22 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10719", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "bar" + "r_iqLimProtMax", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2136,16 +1906,115 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10428", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Park_Transform", + "label":"Park_Transform", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From69", + "label":"From69", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2153,7 +2022,7 @@ "IconDisplay" ], "values":[ - "id", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -2172,11 +2041,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10438", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10439", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From62", - "label":"From62", + "name":"From64", + "label":"From64", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2184,7 +2053,7 @@ "IconDisplay" ], "values":[ - "iq_limProtErr", + "Vq_nLimProtMax", "Tag" ], "tabs":[ @@ -2202,6 +2071,25 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9073", + "className":"Simulink.Scope", + "icon":"WebViewIcon3", + "name":"Scope9", + "label":"Scope9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":[ + ], + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Scope", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817", "className":"Simulink.From", @@ -2264,70 +2152,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8850", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10440", "className":"Simulink.From", @@ -2359,103 +2183,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10434", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From58", - "label":"From58", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10359", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "task3", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8843", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10433", "className":"Simulink.From", @@ -2488,42 +2215,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From55", - "label":"From55", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10432", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From54", - "label":"From54", + "name":"From56", + "label":"From56", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2549,101 +2245,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10431", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From53", - "label":"From53", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8842", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From52", - "label":"From52", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10362", "className":"Simulink.From", @@ -2675,39 +2276,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8864", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10743", "className":"Simulink.From", @@ -2739,6 +2307,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10729", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From46", + "label":"From46", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806", "className":"Simulink.From", @@ -2802,259 +2401,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From41", - "label":"From41", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From35", - "label":"From35", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From69", - "label":"From69", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From32", - "label":"From32", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10688", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10395", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3062,849 +2413,8 @@ "TagVisibility", "IconDisplay" ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8853", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8851", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10446", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VdPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10436", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10447", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From40", - "label":"From40", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], "values":[ "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10430", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10429", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10697", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9717", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto32", - "label":"Goto32", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motEna", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9072", - "className":"Simulink.Scope", - "icon":"WebViewIcon3", - "name":"Scope8", - "label":"Scope8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":[ - ], - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Scope", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10687", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10393", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "task3", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8837", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10445", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_mot", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"FOC", - "label":"FOC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10719", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", "local", "Tag" ], @@ -3955,11 +2465,197 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8858", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10707", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From39", + "label":"From39", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From55", + "label":"From55", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From52", + "label":"From52", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_TgtAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10698", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From37", + "label":"From37", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iqAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From42", + "label":"From42", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10697", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From34", + "label":"From34", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8850", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto36", - "label":"Goto36", + "name":"Goto29", + "label":"Goto29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3967,8 +2663,564 @@ "TagVisibility", "IconDisplay" ], + "values":[ + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10688", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From30", + "label":"From30", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From41", + "label":"From41", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10448", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VdPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From29", + "label":"From29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], "values":[ "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10394", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From28", + "label":"From28", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From27", + "label":"From27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9072", + "className":"Simulink.Scope", + "icon":"WebViewIcon3", + "name":"Scope8", + "label":"Scope8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":[ + ], + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Scope", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10446", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10171", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10432", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From54", + "label":"From54", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VdPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From19", + "label":"From19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8862", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10436", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10172", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_TgtAbs", "local", "Tag" ], @@ -4019,108 +3271,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_Transform", - "label":"Clarke_Transform", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10429", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "id_Tgt", + "Tag" ], "tabs":[ - "Main", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 6 - ] + "tabs_idx":0 }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10360", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8864", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4129,7 +3315,7 @@ "IconDisplay" ], "values":[ - "task2", + "n_mot", "local", "Tag" ], @@ -4148,6 +3334,494 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10393", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "task3", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From32", + "label":"From32", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10428", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10434", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From58", + "label":"From58", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From35", + "label":"From35", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Current_Filtering", + "label":"Current_Filtering", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10687", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8844", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto23", + "label":"Goto23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10173", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"toNegative", + "label":"toNegative", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10689", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs5", + "label":"Abs5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10435", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10702", "className":"Simulink.Abs", @@ -4227,58 +3901,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10689", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_Transform", + "label":"Clarke_Transform", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Zero", + "Auto", + "", + "", "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", "-1", - "on" + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Signal Attributes", + "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Abs", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From56", - "label":"From56", + "name":"From40", + "label":"From40", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4286,7 +4012,7 @@ "IconDisplay" ], "values":[ - "Vd_min", + "Vq", "Tag" ], "tabs":[ @@ -4304,266 +4030,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10686", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iqAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10729", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664", "className":"Simulink.Inport", @@ -4631,171 +4097,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10437", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10358", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"task3", - "label":"task3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10691", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "8", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663", "className":"Simulink.Inport", @@ -4864,11 +4165,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10701", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10445", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4876,7 +4177,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "n_mot", "Tag" ], "tabs":[ @@ -4894,6 +4195,203 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC", + "label":"FOC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10691", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "8", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10174", "className":"Simulink.From", @@ -4926,11 +4424,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10359", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "task3", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4938,7 +4469,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "iq", "Tag" ], "tabs":[ @@ -4956,6 +4487,408 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10430", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10728", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto30", + "label":"Goto30", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10358", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"task3", + "label":"task3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8846", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto25", + "label":"Goto25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10357", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"task2", + "label":"task2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8849", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto28", + "label":"Goto28", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From33", + "label":"From33", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10365", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8838", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8661", "className":"Simulink.Inport", @@ -5023,6 +4956,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10360", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "task2", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10444", "className":"Simulink.From", @@ -5055,19 +5021,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10439", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8853", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From64", - "label":"From64", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vq_nLimProtMax", + "iq_limProtErr", + "local", "Tag" ], "tabs":[ @@ -5081,16 +5049,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5113,7 +5081,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "7", "Port number", "[]", "[]", @@ -5220,44 +5188,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8846", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10707", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10437", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From39", - "label":"From39", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5265,7 +5200,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaAbs", + "Vq_min", "Tag" ], "tabs":[ @@ -5284,139 +5219,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10698", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10701", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iqAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Current_Filtering", - "label":"Current_Filtering", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10435", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From38", + "label":"From38", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5443,11 +5250,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10357", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10431", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From53", + "label":"From53", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"task2", - "label":"task2", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5470,7 +5308,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "1", "Port number", "[]", "[]", @@ -5509,6 +5347,184 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9196", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_devSignal1", + "label":"r_devSignal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10438", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From62", + "label":"From62", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8827#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png index 1389d8d..c64468b 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.svg index 8944d54..a5b0182 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.svg @@ -259,7 +259,7 @@ - + @@ -364,15 +364,15 @@ - + - + - + sfix16_En4 @@ -385,15 +385,15 @@ - + - + - + sfix16_En4 @@ -413,7 +413,7 @@ - + @@ -762,7 +762,7 @@ - + @@ -903,54 +903,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - r_devSignal1 - - - - - - - - @@ -963,11 +915,11 @@ - + - + 2 @@ -985,11 +937,11 @@ - + - + Vq @@ -1001,43 +953,90 @@ - - - + + + - - + + - + - - + + - - -1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + Ini=0 - + - - + + - + sfix16_En4 @@ -1051,7 +1050,7 @@ - + @@ -1065,27 +1064,27 @@ - + - + a_elecAngle - + - + r_sin - + - + r_cos @@ -1115,11 +1114,11 @@ - + - + Sine_Cosine_Approximation @@ -1132,15 +1131,15 @@ - + - - + + - + sfix16_En14 @@ -1153,15 +1152,15 @@ - + - - + + - + sfix16_En14 @@ -1173,158 +1172,13 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - @@ -1334,11 +1188,11 @@ - + - + @@ -1356,11 +1210,59 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1374,7 +1276,7 @@ - + @@ -1388,163 +1290,163 @@ - + - + z_ctrlMod - + - + r_inpTgtScaAbs - + - + VdPrev - + - + id_TgtAbs - + - + iq - + - + iqAbs - + - + n_motAbs - + - + Vd_max - + - + Vd_min - + - + Vq_max - + - + Vq_min - + - + id_max - + - + id_min - + - + iq_max - + - + iq_min - + - + r_iqLimProtMax - + - + r_nLimProtMax - + - + iq_limProtErr - + - + Vq_nLimProtMax - + - + if { } @@ -1574,11 +1476,11 @@ - + - + Motor_Limitations @@ -1591,15 +1493,15 @@ - + - - + + - + sfix16_En4 @@ -1612,16 +1514,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -1633,16 +1535,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -1654,15 +1556,15 @@ - + - - + + - + sfix16_En4 @@ -1675,15 +1577,15 @@ - + - - + + - + sfix16_En4 @@ -1700,11 +1602,11 @@ - + - + sfix16_En4 @@ -1717,16 +1619,16 @@ - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -1738,15 +1640,15 @@ - + - - + + - + sfix16_En4 @@ -1759,15 +1661,15 @@ - + - - + + - + sfix16_En4 @@ -1780,15 +1682,15 @@ - + - - + + - + sfix16_En4 @@ -1801,16 +1703,16 @@ - - + + - - + + - - sfix32_En20 + + sfix16_En4 @@ -1822,15 +1724,15 @@ - + - - + + - + sfix16_En4 @@ -1847,11 +1749,11 @@ - + - + sfix16_En4 @@ -1879,19 +1781,19 @@ - + - + u1 - + - + if(u1 ~= 0) @@ -1909,11 +1811,11 @@ - + - + action @@ -1925,51 +1827,51 @@ - - - + + + - - + + - - + + - + u1 - - + + - + if(u1 ~= 0) - - + + - + - - + + - + action @@ -1979,11 +1881,683 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_cos] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + - + @@ -1997,51 +2571,51 @@ - + - + i_apha - + - + i_beta - + - + r_sin - + - + r_cos - + - + iq_Raw - + - + id_Raw @@ -2071,11 +2645,11 @@ - + - + Park_Transform @@ -2092,11 +2666,11 @@ - + - + sfix16_En4 @@ -2113,11 +2687,11 @@ - + - + sfix16_En4 @@ -2129,674 +2703,17 @@ - + - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - + @@ -2806,29 +2723,77 @@ - - [id] + + [z_ctrlMod] - + - - + + - + - + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -2840,44 +2805,45 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - sfix32_En20 + + @@ -2898,11 +2864,11 @@ - + - + [iq] @@ -2920,11 +2886,11 @@ - + - + sfix16_En4 @@ -2946,11 +2912,11 @@ - + - + [iq_min] @@ -2968,11 +2934,11 @@ - + - + sfix16_En4 @@ -2982,87 +2948,6 @@ - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - @@ -3075,11 +2960,11 @@ - + - + [iq_max] @@ -3097,11 +2982,11 @@ - + - + sfix16_En4 @@ -3111,120 +2996,6 @@ - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [task3] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - @@ -3237,11 +3008,11 @@ - + - + [id_max] @@ -3259,11 +3030,11 @@ - + - + sfix16_En4 @@ -3275,220 +3046,43 @@ - - + + - + - + - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - + [Vd_min] - + - + - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - + - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -3510,11 +3104,11 @@ - + - + [task2] @@ -3532,11 +3126,11 @@ - + - + boolean @@ -3546,39 +3140,6 @@ - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - @@ -3591,11 +3152,11 @@ - + - + [r_inpTgtScaAbs] @@ -3613,11 +3174,59 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3639,11 +3248,11 @@ - + - + [Vq] @@ -3661,11 +3270,11 @@ - + - + sfix16_En4 @@ -3687,11 +3296,11 @@ - + - + [r_iqLimProtMax] @@ -3709,11 +3318,284 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_TgtAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3735,11 +3617,11 @@ - + - + [Vq_min] @@ -3757,1069 +3639,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -4841,11 +3665,11 @@ - + - + [n_motAbs] @@ -4863,11 +3687,11 @@ - + - + sfix16_En4 @@ -4879,28 +3703,28 @@ - - + + - + - + - - [b_motEna] + + [id_min] - + @@ -4910,11 +3734,317 @@ + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_cos] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_cos] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + - + @@ -4922,19 +4052,19 @@ - + - + - + - + @@ -4961,29 +4091,44 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + [z_ctrlMod] - - + + + + + + + + + + + + + + + + + uint8 @@ -4994,43 +4139,91 @@ - - + + - + - - + + - - [task3] + + [Vq] - + - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + - - + + - + boolean @@ -5042,28 +4235,28 @@ - - + + - + - - + + - - [Vd_max] + + [id_Tgt] - + @@ -5075,99 +4268,43 @@ - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + + - + - + - - [n_mot] + + [Vd_min] - + - + - - + + - + sfix16_En4 @@ -5179,300 +4316,43 @@ - - - + + + - - - - - - - - + + - - + + - - b_enaAdvCtrl - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtSca - - - - - - - - r_inpTgtScaAbs - - - - - - - - n_mot - - - - - - - - id_Tgt - - - - - - - - id - - - - - - - - iq - - - - - - - - Vd_max - - - - - - - - Vd_min - - - - - - - - Vq_max - - - - - - - - Vq_min - - - - - - - - id_max - - - - - - - - id_min - - - - - - - - iq_max - - - - - - - - iq_min - - - - - - - - r_iqLimProtMax - - - - - - - - r_nLimProtMax - - - - - - - - iq_limProtErr - - - - - - - - Vq_nLimProtMax - - - - - - - - Vd - - - - - - - - Vq - - - - - - - - if { } + + [VdPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FOC + + - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -5484,34 +4364,76 @@ - - - - - - - - + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + - + - + - - [r_iqLimProtMax] + + [Vq_min] - + @@ -5523,43 +4445,43 @@ - - + + - + - + - - [Vd] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -5571,28 +4493,28 @@ - - + + - + - - + + - - [r_cos] + + [id_TgtAbs] - + @@ -5614,11 +4536,11 @@ - + - + [r_inpTgtSca] @@ -5636,11 +4558,11 @@ - + - + sfix16_En4 @@ -5650,11 +4572,917 @@ + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [task3] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + iq_raw + + + + + + + + id_raw + + + + + + + + iq + + + + + + + + id + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Current_Filtering + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + - + @@ -5668,35 +5496,35 @@ - + - + i_phaAB - + - + i_phaBC - + - + i_alpha - + - + i_beta @@ -5726,11 +5554,11 @@ - + - + Clarke_Transform @@ -5747,11 +5575,11 @@ - + - + sfix16_En4 @@ -5768,11 +5596,11 @@ - + - + sfix16_En4 @@ -5784,290 +5612,49 @@ - + - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + - + - + - - [Vd_min] + + [Vq] - + - + - - + + - + sfix16_En4 @@ -6077,309 +5664,6 @@ - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - n_mot - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - b_motEna - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -6392,11 +5676,11 @@ - + - + 10 @@ -6414,11 +5698,11 @@ - + - + a_elecAngle @@ -6429,11 +5713,11 @@ - + - + sfix16_En6 @@ -6443,180 +5727,6 @@ - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - task3 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -6629,11 +5739,11 @@ - + - + 9 @@ -6651,11 +5761,11 @@ - + - + r_fieldWeak @@ -6666,11 +5776,11 @@ - + - + sfix16_En4 @@ -6682,43 +5792,465 @@ - - + + - + - - + + - - [r_inpTgtSca] + + [n_mot] - + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + r_inpTgtScaAbs + + + + + + + + n_mot + + + + + + + + id_Tgt + + + + + + + + id + + + + + + + + iq + + + + + + + + Vd_max + + + + + + + + Vd_min + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + id_max + + + + + + + + id_min + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + r_iqLimProtMax + + + + + + + + r_nLimProtMax + + + + + + + + iq_limProtErr + + + + + + + + Vq_nLimProtMax + + + + + + + + Vd + + + + + + + + Vq + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FOC + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + sfix16_En4 @@ -6740,11 +6272,11 @@ - + - + [r_fieldWeak] @@ -6762,11 +6294,11 @@ - + - + sfix16_En4 @@ -6778,43 +6310,172 @@ - - - + + + - - + + - - + + - - [r_cos] + + [task3] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + - - + + - + sfix16_En14 @@ -6824,6 +6485,368 @@ + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + task3 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + task2 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + @@ -6836,11 +6859,11 @@ - + - + 3 @@ -6858,11 +6881,11 @@ - + - + r_inpTgtSca @@ -6873,11 +6896,11 @@ - + - + sfix16_En4 @@ -6887,6 +6910,39 @@ + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + @@ -6899,11 +6955,11 @@ - + - + [iq] @@ -6921,11 +6977,11 @@ - + - + sfix16_En4 @@ -6937,43 +6993,298 @@ - - - + + + - - + + - - + + - - [Vq_nLimProtMax] + + [iq_limProtErr] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + n_mot + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -6995,11 +7306,11 @@ - + - + 1 @@ -7017,11 +7328,11 @@ - + - + b_enaAdvCtrl @@ -7032,11 +7343,11 @@ - + - + boolean @@ -7048,349 +7359,44 @@ - - + + - + - + - - 2 + + 3 - + - - - - - - - - - - z_ctrlMod - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - iq_raw - - - - - - - - id_raw - - - - - - - - iq - - - - - - - - id - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Current_Filtering - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - + + - + - - sfix16_En4 + + r_devSignal1 @@ -7401,50 +7407,59 @@ - - - - - - - - - + + + - - + + - + - - [r_inpTgtSca] + + 6 - - + + + + + + + + + + + + + + + + + b_motEna - - + + - - + + - - sfix16_En4 + + boolean @@ -7455,59 +7470,44 @@ - - - + + + - - + + - - + + - - 4 + + [iq_limProtErr] - - - - - - - - - - - - - - - - - task2 + + - - + + - + - - boolean + + sfix32_En20 @@ -9136,5 +9136,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json index dfc1716..7f0920d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json @@ -1,4 +1,84 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8725", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"i_beta", + "label":"i_beta", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8723", "className":"Simulink.Constant", @@ -88,24 +168,28 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8721", - "className":"Simulink.Merge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8720", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"If1", + "label":"If1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets", - "Inputs" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "[]", - "off", - "[]", - "2" + "1", + "u1 ~= 0", + "", + "on", + "-1", + "on" ], "tabs":[ "Parameter Attributes", @@ -113,7 +197,7 @@ ], "tabs_idx":[ 0, - 1 + 4 ] }, "viewer":{ @@ -122,7 +206,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"If", "masktype":"" } }, @@ -159,6 +243,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8717", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_betaAB", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8716", "className":"Simulink.Goto", @@ -193,11 +310,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8715", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8714", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -206,7 +323,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "i_phaAB", "local", "Tag" ], @@ -259,11 +376,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8711", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8712", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_alpha", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8710", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -290,19 +440,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8709", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8718", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "i_phaAB", + "i_betaBC", + "local", "Tag" ], "tabs":[ @@ -316,7 +468,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -401,25 +553,33 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8704", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8721", + "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" ], "values":[ - "i_betaAB", - "Tag" + "[]", + "off", + "[]", + "2" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -427,7 +587,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Merge", "masktype":"" } }, @@ -463,11 +623,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8710", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8709", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -475,7 +635,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "i_phaAB", "Tag" ], "tabs":[ @@ -494,37 +654,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8720", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8704", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "u1 ~= 0", - "", - "on", - "-1", - "on" + "i_betaAB", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -532,7 +680,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8708", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaAB", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -568,188 +747,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_PhasesBC", - "label":"Clarke_PhasesBC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8725", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"i_beta", - "label":"i_beta", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8707", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8711", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -757,232 +759,7 @@ "IconDisplay" ], "values":[ - "i_beta", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8703", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_alphaBC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8718", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_betaBC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8717", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_betaAB", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_PhasesAB", - "label":"Clarke_PhasesAB", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8708", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaAB", + "i_phaBC", "Tag" ], "tabs":[ @@ -1031,6 +808,169 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8715", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto15", + "label":"Goto15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_phaBC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8703", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_alphaBC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_PhasesAB", + "label":"Clarke_PhasesAB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8670", "className":"Simulink.Inport", @@ -1099,21 +1039,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8714", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8707", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_phaAB", - "local", + "i_beta", "Tag" ], "tabs":[ @@ -1127,7 +1065,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -1199,35 +1137,101 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8712", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_PhasesBC", + "label":"Clarke_PhasesBC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "i_alpha", - "local", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "Code Generation", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 5, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png index a6224a2..3598577 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.svg index 01833c4..d226648 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + i_beta + + + + + + + @@ -23,11 +71,11 @@ - + - + b_selPhaABCurrMeas @@ -45,11 +93,11 @@ - + - + b_selPhaABCurrMeas @@ -60,11 +108,11 @@ - + - + boolean @@ -78,7 +126,7 @@ - + @@ -86,19 +134,19 @@ - + - + - + - + @@ -124,11 +172,11 @@ - + - + sfix16_En4 @@ -138,11 +186,417 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [i_beta] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_betaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_alphaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_alphaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_alpha] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_betaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_alpha + + + + + + + + - + @@ -150,19 +604,19 @@ - + - + - + - + @@ -188,335 +642,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_alphaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_alphaAB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaBC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - i_alpha - - - - - - - - - - - - - - - - - - - - - - - - - - [i_betaAB] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -538,11 +668,11 @@ - + - + [i_betaBC] @@ -560,11 +690,11 @@ - + - + sfix16_En4 @@ -576,43 +706,43 @@ - - + + - + - + - - [i_phaBC] + + [i_phaAB] - + - + - - + + - + sfix16_En4 @@ -624,75 +754,92 @@ - - - + + + - - + + - - + + - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - else + + [i_betaAB] - - + + - - + + - - + + - - action + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + - - + + - - + + - - action + + sfix16_En4 @@ -713,11 +860,11 @@ - + - + [i_alpha] @@ -735,11 +882,11 @@ - + - + sfix16_En4 @@ -751,587 +898,43 @@ - - - + + + - - - - - - - - + + - - + + - - i_phaB - - - - - - - - i_phaC - - - - - - - - i_alphaBC - - - - - - - - i_betaBC - - - - - - - - else { } + + [i_phaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clarke_PhasesBC + + - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - + - - 2 - - - - - - - - - - - - - - - - - - - - - - i_beta - - - - - - - - - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_alphaBC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_betaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_betaAB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i_phaA - - - - - - - - i_phaB - - - - - - - - i_alphaAB - - - - - - - - i_betaAB - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clarke_PhasesAB - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1353,11 +956,11 @@ - + - + [i_alphaAB] @@ -1375,11 +978,11 @@ - + - + sfix16_En4 @@ -1389,9 +992,257 @@ + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_alphaBC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + i_phaA + + + + + + + + i_phaB + + + + + + + + i_alphaAB + + + + + + + + i_betaAB + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clarke_PhasesAB + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + @@ -1401,11 +1252,11 @@ - + - + 2 @@ -1423,11 +1274,11 @@ - + - + i_phaBC @@ -1438,11 +1289,11 @@ - + - + sfix16_En4 @@ -1454,29 +1305,44 @@ - - - + + + - - + + - - + + - - [i_phaAB] + + [i_beta] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1497,11 +1363,11 @@ - + - + 1 @@ -1519,11 +1385,11 @@ - + - + i_phaAB @@ -1534,11 +1400,11 @@ - + - + sfix16_En4 @@ -1550,29 +1416,157 @@ - - - + + + - - + + + + + + + + - - + + - - [i_alpha] + + i_phaB + + + + + + + + i_phaC + + + + + + + + i_alphaBC + + + + + + + + i_betaBC + + + + + + + + else { } - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clarke_PhasesBC + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1584,6 +1578,12 @@ + + + + + + @@ -1877,5 +1877,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.json index 61d0889..a0c43fd 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.json @@ -48,6 +48,98 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8682", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8681", + "className":"Simulink.SignalConversion", + "icon":"WebViewIcon3", + "name":"Signal Conversion2", + "label":"Signal Conversion2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "inspector":{ + "params":[ + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" + ], + "values":[ + "Signal copy", + "Inherit: auto", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SignalConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8684", "className":"Simulink.Outport", @@ -128,65 +220,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8682", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8680", "className":"Simulink.Goto", @@ -220,39 +253,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8679", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_phaA", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8683", "className":"Simulink.Outport", @@ -334,11 +334,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8675", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8676", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -346,7 +346,7 @@ "IconDisplay" ], "values":[ - "i_phaA", + "i_phaB", "Tag" ], "tabs":[ @@ -581,22 +581,22 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8681", - "className":"Simulink.SignalConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8679", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "Signal copy", - "Inherit: auto", - "off" + "i_phaA", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -609,7 +609,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"SignalConversion", + "blocktype":"Goto", "masktype":"" } }, @@ -681,11 +681,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8676", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8675", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -693,7 +693,7 @@ "IconDisplay" ], "values":[ - "i_phaB", + "i_phaA", "Tag" ], "tabs":[ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.svg index 2279b4e..e7a0a71 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.svg @@ -62,54 +62,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_betaAB - - - - - - - - @@ -121,36 +73,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - @@ -168,380 +120,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaA] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - i_alphaAB - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaA] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 1/sqrt(3) - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_phaB - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2/sqrt(3) - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -563,131 +146,131 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -713,11 +296,11 @@ - + - + sfix16_En4 @@ -727,6 +310,423 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + i_betaAB + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_alphaAB + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaB] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 1/sqrt(3) + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + i_phaB + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2/sqrt(3) + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaA] + + + + + + + + + + + + + + + @@ -792,11 +792,11 @@ - - + + - + @@ -806,29 +806,29 @@ - - [i_phaB] + + [i_phaA] - + - + - + - + sfix16_En4 @@ -972,5 +972,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.json index 24ff7c6..c5c5351 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.json @@ -48,86 +48,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8700", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"i_betaBC", - "label":"i_betaBC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8696", "className":"Simulink.Goto", @@ -162,83 +82,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8693", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8694", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Gain2", + "label":"Gain2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8698", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", "SampleTime" ], "values":[ - "rectangular", - "+-", + "1/sqrt(3)", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", "off", + "Zero", + "off", + "[]", + "[]", "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 10 + 8, + 11 ] }, "viewer":{ @@ -247,7 +136,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Gain", "masktype":"" } }, @@ -332,11 +221,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8691", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8690", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ @@ -344,7 +233,7 @@ "IconDisplay" ], "values":[ - "i_phaC", + "i_phaB", "Tag" ], "tabs":[ @@ -427,42 +316,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8697", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8700", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"i_betaBC", + "label":"i_betaBC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "rectangular", - "--", - "off", - "Inherit: Inherit via internal rule", + "2", + "Port number", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: auto", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -472,7 +382,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -481,7 +391,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Outport", "masktype":"" } }, @@ -552,96 +462,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8694", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "1/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8692", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8687", "className":"Simulink.Inport", @@ -710,11 +530,70 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8690", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8698", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8692", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ @@ -740,6 +619,127 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8693", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8697", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "--", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8691", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8691#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg index 90f2a4c..45c6c0c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg @@ -62,54 +62,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_betaBC - - - - - - - - @@ -122,11 +74,11 @@ - + - + [i_phaC] @@ -145,107 +97,43 @@ - - - + + + - - + + - - + + - - [i_phaC] + + 1/sqrt(3) - - + + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -267,11 +155,11 @@ - + - + 1 @@ -289,11 +177,11 @@ - + - + i_alphaBC @@ -305,43 +193,43 @@ - - + + - + - + - - [i_phaC] + + [i_phaB] - + - + - - + + - + sfix16_En4 @@ -363,11 +251,11 @@ - + - + [i_phaB] @@ -396,11 +284,11 @@ - + - + else { } @@ -418,11 +306,11 @@ - + - + Action Port @@ -434,52 +322,44 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + 2 - - + + - - - + + + - - + + - - sfix16_En4 + + i_betaBC @@ -500,11 +380,11 @@ - + - + 2 @@ -522,11 +402,11 @@ - + - + i_phaC @@ -537,107 +417,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1/sqrt(3) - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaB] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -659,11 +443,11 @@ - + - + 1 @@ -681,11 +465,11 @@ - + - + i_phaB @@ -696,11 +480,11 @@ - + - + sfix16_En4 @@ -712,11 +496,227 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + + + + + + + + + + + + [i_phaB] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + @@ -726,29 +726,29 @@ - - [i_phaB] + + [i_phaC] - + - + - + - + sfix16_En4 @@ -886,5 +886,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json index 1724c6e..2902d24 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json @@ -1,4 +1,53 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8740", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_currFilt", + "label":"cf_currFilt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_currFilt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8741", "className":"Simulink.Outport", @@ -79,216 +128,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8740", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_currFilt", - "label":"cf_currFilt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_currFilt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8739", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8737", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8736", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_raw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8734", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8732", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_raw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8742", "className":"Simulink.Outport", @@ -463,11 +302,141 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8733", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8737", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8739", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8736", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_raw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8735", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_raw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8731", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -475,7 +444,7 @@ "IconDisplay" ], "values":[ - "id_raw", + "id", "Tag" ], "tabs":[ @@ -493,6 +462,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8732", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_raw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8734", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8729", "className":"Simulink.Demux", @@ -526,68 +559,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9714", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8730", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8728", "className":"Simulink.Inport", @@ -656,21 +627,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8735", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8733", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_raw", - "local", + "id_raw", "Tag" ], "tabs":[ @@ -684,7 +653,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -756,11 +725,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8731", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8730", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -768,7 +737,7 @@ "IconDisplay" ], "values":[ - "id", + "iq", "Tag" ], "tabs":[ @@ -786,6 +755,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9714", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8739#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.svg index af8ed75..efc79f1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.svg @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - @@ -71,11 +23,11 @@ - + - + cf_currFilt @@ -93,11 +45,11 @@ - + - + cf_currFilt @@ -108,11 +60,11 @@ - + - + ufix16_En16 @@ -124,191 +76,44 @@ - - - + + + - - + + - - + + - - + + 1 - - + + - - - + + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_raw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_raw] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + iq @@ -329,11 +134,11 @@ - + - + 2 @@ -351,11 +156,11 @@ - + - + id @@ -369,7 +174,7 @@ - + @@ -377,36 +182,132 @@ - + - + u - + - + coef - + - + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -414,7 +315,7 @@ - + @@ -422,7 +323,7 @@ - + @@ -430,7 +331,7 @@ - + @@ -438,7 +339,7 @@ - + @@ -446,7 +347,7 @@ - + @@ -454,7 +355,7 @@ - + @@ -462,110 +363,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + coef @@ -583,11 +388,11 @@ - + - + Low_Pass_Filter @@ -598,11 +403,11 @@ - + - + sfix16_En4 @@ -610,29 +415,29 @@ - + - + - + - + - + - + @@ -646,11 +451,206 @@ - - + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_raw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_raw] + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + @@ -660,29 +660,29 @@ - - [id_raw] + + [iq_raw] - + - + - + - + sfix16_En4 @@ -692,6 +692,39 @@ + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + @@ -704,11 +737,11 @@ - + - + @@ -721,127 +754,31 @@ - - - - - - - - - - - sfix16_En4 - - - - - + - + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - + - - + + - + sfix16_En4 @@ -863,11 +800,11 @@ - + - + 2 @@ -885,11 +822,11 @@ - + - + id_raw @@ -900,11 +837,11 @@ - + - + sfix16_En4 @@ -916,29 +853,44 @@ - - - + + + - - + + - - + + - - [iq_raw] + + [id_raw] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -959,11 +911,11 @@ - + - + 1 @@ -981,11 +933,11 @@ - + - + iq_raw @@ -996,11 +948,11 @@ - + - + sfix16_En4 @@ -1012,43 +964,43 @@ - - + + - + - + - - [id] + + [iq] - + - + - - + + - + sfix16_En4 @@ -1058,6 +1010,54 @@ + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -1214,5 +1214,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json index 86848a0..b9a53ad 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json @@ -79,56 +79,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2903", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Elements as channels (sample based)", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2902", "className":"Simulink.Sum", @@ -247,6 +197,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2903", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Elements as channels (sample based)", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2900", "className":"Simulink.Product", @@ -304,53 +304,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2899", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2898", "className":"Simulink.Inport", @@ -485,6 +438,53 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2899", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2898#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.svg index 45ed165..1d06c64 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.svg @@ -59,11 +59,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -71,35 +207,35 @@ - + - + - + - + - + - + - + - + @@ -125,11 +261,11 @@ - + - + sfix32_En20 @@ -139,147 +275,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + @@ -331,6 +331,132 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + coef + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -343,19 +469,19 @@ - + - + - + - + @@ -381,137 +507,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - coef - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - + sfix16_En4 @@ -661,5 +661,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.json index 9694905..66d30e2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.json @@ -177,85 +177,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748", - "className":"Simulink.PreLookup", - "icon":"WebViewIcon3", - "name":"a_elecAngle_XA", - "label":"a_elecAngle_XA", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "LockScale", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "FractionDataTypeStr", - "OutputBusDataTypeStr", - "RndMeth", - "SampleTime", - "UseLastBreakpoint" - ], - "values":[ - "Explicit values", - "Dialog", - "a_elecAngle_XA", - "Index only", - "Evenly spaced points", - "Clip", - "None", - "off", - "Inherit: Same as input", - "[]", - "[]", - "uint8", - "off", - "on", - "", - "10", - "11", - "10", - "fixdt(0,16,14)", - "Inherit: auto", - "Simplest", - "-1", - "off" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 8, - 13 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"PreLookup", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8755", "className":"Simulink.Interpolation_nD", @@ -338,283 +259,72 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9639", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748", + "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"a_elecAngle_XA", + "label":"a_elecAngle_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9645", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9646", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_cos", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9644", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_sin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10676", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", "LockScale", - "FramePeriod" + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" ], "values":[ - "0", - "on", - "inf", + "Explicit values", + "Dialog", + "a_elecAngle_XA", + "Index only", + "Evenly spaced points", + "Clip", + "None", + "off", + "Inherit: Same as input", "[]", "[]", "uint8", "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8758", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_cos", - "label":"r_cos", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", + "on", "", - [ - ], - "Dialog", - "Auto", + "10", + "11", + "10", + "fixdt(0,16,14)", + "Inherit: auto", + "Simplest", + "-1", "off" ], "tabs":[ "Main", - "Signal Attributes", + "Data Types", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 8, + 13 ] }, "viewer":{ @@ -623,38 +333,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9640", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"PreLookup", "masktype":"" } }, @@ -739,6 +418,327 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9646", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_cos", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9639", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10676", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9640", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9645", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9644", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_sin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8758", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_cos", + "label":"r_cos", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8744", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png index ada685a..d8a6847 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.svg index 7dbb413..36505bf 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.svg @@ -105,11 +105,378 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + + + + + + + + + + + + + + + + + + + r_sin_M1 + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + - + @@ -117,83 +484,83 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -219,11 +586,11 @@ - + - + a_elecAngle_XA @@ -234,11 +601,11 @@ - + - + uint8 @@ -250,443 +617,362 @@ - - - + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + 1-D T(k,f) - + - + k1 - + - + f1 - + - - + + - - + + - - r_sin_M1 + + r_cos_M1 - + - - + + - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - + sfix16_En14 @@ -708,11 +994,11 @@ - + - + [r_cos] @@ -729,39 +1015,6 @@ - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - @@ -774,11 +1027,11 @@ - + - + [r_sin] @@ -796,11 +1049,11 @@ - + - + sfix16_En14 @@ -810,6 +1063,39 @@ + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + @@ -822,11 +1108,11 @@ - + - + 0 @@ -844,11 +1130,11 @@ - + - + uint8 @@ -858,54 +1144,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_cos - - - - - - - - @@ -918,11 +1156,11 @@ - + - + [a_elecAngle] @@ -940,11 +1178,11 @@ - + - + sfix16_En6 @@ -956,362 +1194,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - 1-D T(k,f) - - - - - - - - k1 - - - - - - - - f1 + + [r_cos] - - - - - - - - - - - - - - - - - r_cos_M1 + + - + - - + + - + sfix16_En14 @@ -1321,6 +1240,87 @@ + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_cos + + + + + + + + @@ -1538,5 +1538,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json index 8591c7c..8e7d536 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json @@ -311,65 +311,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8880", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "-+", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8879", "className":"Simulink.Sum", @@ -430,25 +371,47 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8878", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8877", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"Mux4", - "label":"Mux4", + "name":"MinMax2", + "label":"MinMax2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", "Inputs", - "DisplayOption" + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" ], "values":[ - "3", - "bar" + "Inherit: Inherit via internal rule", + "max", + "on", + "1", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" ], "tabs":[ - "Parameter Attributes" + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -456,7 +419,60 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"MinMax", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8876", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax1", + "label":"MinMax1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "min", + "on", + "1", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", "masktype":"" } }, @@ -519,124 +535,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8874", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "1/2", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8873", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "0.5", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Floor", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8872", "className":"Simulink.Gain", @@ -696,59 +594,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8876", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax1", - "label":"MinMax1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "min", - "on", - "1", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8870", "className":"Simulink.Sum", @@ -808,6 +653,155 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum6", + "label":"Sum6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "-+", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8878", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux4", + "label":"Mux4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8873", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain2", + "label":"Gain2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "0.5", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Floor", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8869", "className":"Simulink.Sum", @@ -868,46 +862,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8877", - "className":"Simulink.MinMax", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8874", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"MinMax2", - "label":"MinMax2", + "name":"Gain3", + "label":"Gain3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", + "Gain", + "Multiplication", "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", "RndMeth", - "SampleTime", "SaturateOnIntegerOverflow", - "ZeroCross" + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ + "1/2", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", "Inherit: Inherit via internal rule", - "max", - "on", - "1", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" + "-1" ], "tabs":[ + "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1 + 2, + 8, + 11 ] }, "viewer":{ @@ -916,7 +916,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"MinMax", + "blocktype":"Gain", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.svg index 9a7c00e..b98de0c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.svg @@ -263,70 +263,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -339,19 +275,19 @@ - + - + - + - + @@ -369,451 +305,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2/sqrt(3) - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1/2 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0.5 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - sqrt(3)/2 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -827,7 +323,7 @@ - + @@ -835,19 +331,19 @@ - + - + - + - + @@ -873,11 +369,515 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2/sqrt(3) + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + sqrt(3)/2 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0.5 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1/2 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1019,10 +1019,10 @@ - + - + @@ -1168,10 +1168,10 @@ - + - + @@ -1193,5 +1193,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json index 225a075..dca784c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json @@ -476,65 +476,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8908", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8906", "className":"Simulink.Goto", @@ -568,39 +509,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8905", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_sin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8904", "className":"Simulink.Goto", @@ -634,6 +542,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8905", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_sin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8902", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8901", "className":"Simulink.From", @@ -666,19 +638,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8900", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8903", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "Vq", + "local", "Tag" ], "tabs":[ @@ -692,7 +666,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -789,182 +763,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8893", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8902", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8898", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8892", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8896", "className":"Simulink.From", @@ -996,6 +794,63 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8894", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide4", + "label":"Divide4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8907", "className":"Simulink.Sum", @@ -1113,11 +968,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8894", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8898", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8892", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -1170,21 +1056,135 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8903", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8893", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Divide3", + "label":"Divide3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8908", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum6", + "label":"Sum6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8900", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "Vq", - "local", "Tag" ], "tabs":[ @@ -1198,7 +1198,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.svg index 29e6b33..b1bb456 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.svg @@ -410,70 +410,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -486,11 +422,11 @@ - + - + [r_cos] @@ -507,39 +443,6 @@ - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - @@ -552,11 +455,11 @@ - + - + [Vd] @@ -573,6 +476,87 @@ + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -585,11 +569,11 @@ - + - + [r_sin] @@ -607,11 +591,11 @@ - + - + sfix16_En14 @@ -623,44 +607,29 @@ - - - + + + - - + + - - + + - + [Vq] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -681,11 +650,11 @@ - + - + [r_cos] @@ -703,11 +672,11 @@ - + - + sfix16_En14 @@ -729,11 +698,11 @@ - + - + [Vq] @@ -751,11 +720,11 @@ - + - + sfix16_En4 @@ -777,11 +746,11 @@ - + - + [r_sin] @@ -799,11 +768,11 @@ - + - + sfix16_En14 @@ -813,214 +782,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1033,11 +794,11 @@ - + - + [r_cos] @@ -1055,11 +816,11 @@ - + - + sfix16_En14 @@ -1069,6 +830,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1081,35 +898,35 @@ - + - + - + - + - + - + - + - + @@ -1127,11 +944,11 @@ - + - + sfix16_En4 @@ -1153,19 +970,19 @@ - + - + - + - + @@ -1183,11 +1000,11 @@ - + - + sfix16_En4 @@ -1199,51 +1016,99 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + [Vd] - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + sfix16_En4 @@ -1255,29 +1120,164 @@ - - - + + + - - + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1540,5 +1540,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.json index af8aadb..dc07f14 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.json @@ -324,166 +324,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10711", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_iqLimProtMax", - "label":"r_iqLimProtMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9013", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "8", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "-750", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9010", "className":"Simulink.Outport", @@ -564,6 +404,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9008", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "900", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9006", "className":"Simulink.Outport", @@ -645,11 +565,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9004", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9005", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_max1", + "label":"n_max1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8999", "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"iq_maxSca_XA", - "label":"iq_maxSca_XA", + "name":"Vq_max_XA", + "label":"Vq_max_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -680,7 +649,7 @@ "values":[ "Explicit values", "Dialog", - "iq_maxSca_XA", + "Vq_max_XA", "Index only", "Evenly spaced points", "Clip", @@ -724,11 +693,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9003", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998", "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"iq_maxSca_M1", - "label":"iq_maxSca_M1", + "name":"Vq_max_M1", + "label":"Vq_max_M1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -762,7 +731,7 @@ "off", "Explicit values", "Dialog", - "iq_maxSca_M1", + "Vq_max_M1", "Flat", "Error", "on", @@ -771,7 +740,7 @@ "Inherit: Same as output", "[]", "[]", - "fixdt(0,16,16)", + "fixdt(1,16,4)", "[]", "[]", "Speed", @@ -805,11 +774,487 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8974", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9009", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_min", + "label":"Vq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "-900", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9013", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"iq_min", + "label":"iq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "8", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "-750", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8997", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Vd_max1", + "label":"Vd_max1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "Vd_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Torque_Mode_Protection", + "label":"Torque_Mode_Protection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10565", + "className":"Simulink.SwitchCase", + "icon":"WebViewIcon3", + "name":"Switch Case", + "label":"Switch Case", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "CaseConditions", + "ShowDefaultCase", + "SampleTime", + "ZeroCross" + ], + "values":[ + "{VLT_MODE, SPD_MODE, TRQ_MODE}", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SwitchCase", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10712", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "10", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9002", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"i_max", + "label":"i_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "i_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8976", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -818,7 +1263,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "iq", "local", "Tag" ], @@ -838,11 +1283,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8973", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8975", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -851,7 +1296,40 @@ "IconDisplay" ], "values":[ - "iq_max", + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8972", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_max", "local", "Tag" ], @@ -970,91 +1448,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9008", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "900", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10705", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8970", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1063,7 +1461,73 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaAbs", + "id_TgtAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10696", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iqAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8974", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", "local", "Tag" ], @@ -1163,108 +1627,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10584", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Speed_Mode_Protection", - "label":"Speed_Mode_Protection", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10696", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8968", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1273,112 +1640,7 @@ "IconDisplay" ], "values":[ - "iqAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10565", - "className":"Simulink.SwitchCase", - "icon":"WebViewIcon3", - "name":"Switch Case", - "label":"Switch Case", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "CaseConditions", - "ShowDefaultCase", - "SampleTime", - "ZeroCross" - ], - "values":[ - "{VLT_MODE, SPD_MODE, TRQ_MODE}", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SwitchCase", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10694", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8969", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", + "Vq_min", "local", "Tag" ], @@ -1430,1219 +1692,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8962", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VdPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8961", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10712", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_nLimProtMax", - "label":"r_nLimProtMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "10", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9017", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_nLimProtMax", - "label":"Vq_nLimProtMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "12", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8958", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8957", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998", - "className":"Simulink.Interpolation_nD", - "icon":"WebViewIcon3", - "name":"Vq_max_M1", - "label":"Vq_max_M1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "NumberOfTableDimensions", - "RequireIndexFractionAsBus", - "TableSpecification", - "TableSource", - "Table", - "InterpMethod", - "DiagnosticForOutOfRangeInput", - "ValidIndexMayReachLast", - "NumSelectionDims", - "RemoveProtectionIndex", - "TableDataTypeStr", - "TableMin", - "TableMax", - "OutDataTypeStr", - "OutMin", - "OutMax", - "InternalRulePriority", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ExtrapMethod", - "IntermediateResultsDataTypeStr", - "LookupTableObject", - "SampleTime" - ], - "values":[ - "1", - "off", - "Explicit values", - "Dialog", - "Vq_max_M1", - "Flat", - "Error", - "on", - "0", - "on", - "Inherit: Same as output", - "[]", - "[]", - "fixdt(1,16,4)", - "[]", - "[]", - "Speed", - "off", - "Simplest", - "off", - "Clip", - "Inherit: Same as output", - "", - "-1" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 10, - 20 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Interpolation_n-D", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8956", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain1", - "label":"Gain1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8955", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8975", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8954", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8950", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10710", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10727", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10709", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8947", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10699", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iqAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10602", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Torque_Mode_Protection", - "label":"Torque_Mode_Protection", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10564", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8953", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8999", - "className":"Simulink.PreLookup", - "icon":"WebViewIcon3", - "name":"Vq_max_XA", - "label":"Vq_max_XA", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "LockScale", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "FractionDataTypeStr", - "OutputBusDataTypeStr", - "RndMeth", - "SampleTime", - "UseLastBreakpoint" - ], - "values":[ - "Explicit values", - "Dialog", - "Vq_max_XA", - "Index only", - "Evenly spaced points", - "Clip", - "Error", - "off", - "Inherit: Same as input", - "[]", - "[]", - "uint8", - "off", - "on", - "", - "10", - "11", - "10", - "fixdt(0,8,6)", - "Inherit: auto", - "Simplest", - "-1", - "off" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 8, - 13 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"PreLookup", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8970", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9009", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "-900", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10683", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10715", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9012", "className":"Simulink.Outport", @@ -2723,6 +1772,993 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8962", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VdPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8961", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8959", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain5", + "label":"Gain5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8958", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain4", + "label":"Gain4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8955", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8954", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9017", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "12", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8953", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9004", + "className":"Simulink.PreLookup", + "icon":"WebViewIcon3", + "name":"iq_maxSca_XA", + "label":"iq_maxSca_XA", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", + "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" + ], + "values":[ + "Explicit values", + "Dialog", + "iq_maxSca_XA", + "Index only", + "Evenly spaced points", + "Clip", + "Error", + "off", + "Inherit: Same as input", + "[]", + "[]", + "uint8", + "off", + "on", + "", + "10", + "11", + "10", + "fixdt(0,8,6)", + "Inherit: auto", + "Simplest", + "-1", + "off" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 8, + 13 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"PreLookup", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8957", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain3", + "label":"Gain3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_TgtAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Speed_Mode_Protection", + "label":"Speed_Mode_Protection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8951", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8950", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8947", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10705", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9003", + "className":"Simulink.Interpolation_nD", + "icon":"WebViewIcon3", + "name":"iq_maxSca_M1", + "label":"iq_maxSca_M1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", + "OutMin", + "OutMax", + "InternalRulePriority", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" + ], + "values":[ + "1", + "off", + "Explicit values", + "Dialog", + "iq_maxSca_M1", + "Flat", + "Error", + "on", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(0,16,16)", + "[]", + "[]", + "Speed", + "off", + "Simplest", + "off", + "Clip", + "Inherit: Same as output", + "", + "-1" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 10, + 20 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Interpolation_n-D", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10683", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From24", + "label":"From24", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10564", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10682", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10681", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10680", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8946", "className":"Simulink.From", @@ -2755,11 +2791,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10685", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9011", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"id_min", + "label":"id_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "-750", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2767,7 +2883,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "Vq_nLimProtMax", "Tag" ], "tabs":[ @@ -2848,11 +2964,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8935", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2860,7 +2976,7 @@ "IconDisplay" ], "values":[ - "Vq_nLimProtMax", + "Vq_max", "Tag" ], "tabs":[ @@ -2879,11 +2995,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10682", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10780", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2891,7 +3007,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "n_motAbs", "Tag" ], "tabs":[ @@ -2910,11 +3026,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10684", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8934", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2922,7 +3038,7 @@ "IconDisplay" ], "values":[ - "n_max", + "VdPrev", "Tag" ], "tabs":[ @@ -2941,216 +3057,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8959", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain5", - "label":"Gain5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Voltage_Mode_Protection", - "label":"Voltage_Mode_Protection", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10675", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8968", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8973", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3159,7 +3070,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "iq_max", "local", "Tag" ], @@ -3179,21 +3090,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8972", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10685", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"From26", + "label":"From26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id_max", - "local", + "iq_max", "Tag" ], "tabs":[ @@ -3207,56 +3116,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10674", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, @@ -3317,6 +3177,203 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10684", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9733", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8919", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs5", + "label":"Abs5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10710", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From31", + "label":"From31", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10709", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From30", + "label":"From30", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10693", "className":"Simulink.Inport", @@ -3385,11 +3442,78 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10681", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10695", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iqAbs", + "label":"iqAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10708", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3397,7 +3521,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -3416,11 +3540,525 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8935", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10715", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto21", + "label":"Goto21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10675", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8967", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Voltage_Mode_Protection", + "label":"Voltage_Mode_Protection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8916", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_TgtAbs", + "label":"id_TgtAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10694", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8915", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"VdPrev", + "label":"VdPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8969", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10727", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto23", + "label":"Goto23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10704", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10699", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From27", + "label":"From27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3428,7 +4066,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "iqAbs", "Tag" ], "tabs":[ @@ -3514,11 +4152,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8916", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10711", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_TgtAbs", - "label":"id_TgtAbs", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3534,14 +4172,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "9", "Port number", "[]", "[]", @@ -3553,10 +4197,17 @@ "-1", "auto", "off", + "off", + "[]", + "off", + "held", + "off", + "0", "", - "on", - "off", - "off", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -3576,80 +4227,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8976", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10680", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9002", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10674", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", + "name":"Constant", + "label":"Constant", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3663,12 +4250,12 @@ "FramePeriod" ], "values":[ - "i_max", + "0", "on", "inf", "[]", "[]", - "fixdt(1,16,4)", + "uint8", "off", "inf" ], @@ -3724,409 +4311,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10695", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iqAbs", - "label":"iqAbs", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9011", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "-750", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8915", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"VdPrev", - "label":"VdPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8997", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Vd_max1", - "label":"Vd_max1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "Vd_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10780", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8934", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VdPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8951", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8919", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10361", "className":"Simulink.ActionPort", @@ -4159,50 +4343,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9733", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8956", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Gain1", + "label":"Gain1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Inputs", + "Gain", "Multiplication", - "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", "SampleTime" ], "values":[ - "**", - "Element-wise(.*)", + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", "off", "[]", "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", + "Inherit: Same as input", "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 9 + 8, + 11 ] }, "viewer":{ @@ -4211,40 +4397,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8967", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Gain", "masktype":"" } }, @@ -4315,153 +4468,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10708", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9005", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_max1", - "label":"n_max1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10704", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtScaAbs", - "label":"r_inpTgtScaAbs", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8999#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png index c9f199c..2d1891b 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.svg index a9d0474..56008a2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.svg @@ -282,102 +282,6 @@ - - - - - - - - - - - - - - - - - - 9 - - - - - - - - - - - - - - - - - - - - - - r_iqLimProtMax - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - iq_min - - - - - - - - @@ -390,11 +294,11 @@ - + - + 5 @@ -412,11 +316,11 @@ - + - + id_max @@ -426,6 +330,54 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + @@ -438,11 +390,11 @@ - + - + 1 @@ -460,11 +412,11 @@ - + - + Vd_max @@ -476,11 +428,59 @@ - - - + + + - + + + + + + + + + + + + n_max + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + @@ -490,7 +490,7 @@ - + @@ -498,7 +498,7 @@ - + @@ -506,7 +506,7 @@ - + @@ -514,7 +514,7 @@ - + @@ -522,7 +522,7 @@ - + @@ -530,7 +530,7 @@ - + @@ -538,7 +538,7 @@ - + @@ -546,7 +546,7 @@ - + @@ -554,7 +554,7 @@ - + @@ -562,7 +562,7 @@ - + @@ -577,37 +577,37 @@ - + - - + + - + - - iq_maxSca_XA + + Vq_max_XA - + - + - + uint8 @@ -619,309 +619,309 @@ - - - + + + - + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 1-D T(k,f) @@ -929,7 +929,7 @@ - + k1 @@ -937,45 +937,45 @@ - + f1 - + - - + + - + - - iq_maxSca_M1 + + Vq_max_M1 - - + + - + - - ufix16_En16 + + sfix16_En4 @@ -986,28 +986,516 @@ - - - + + + - - + + - + - - [iq_min] + + 4 - + + + + + + + + + + + + + + + + + Vq_min + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + + + + + + + + + + + + + Vd_max + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + n_max + + + + + + + + Vq_max + + + + + + + + Vq_nLimProtMax + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Torque_Mode_Protection + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + case [ 1 ]: + + + + + + + + case [ 2 ]: + + + + + + + + case [ 3 ]: + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + i_max + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + @@ -1019,28 +1507,61 @@ - - + + - + - + - - [iq_max] + + [id_min] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + @@ -1062,11 +1583,11 @@ - + - + [Vd_min] @@ -1095,11 +1616,11 @@ - + - + [r_iqLimProtMax] @@ -1128,11 +1649,11 @@ - + - + [iq_limProtErr] @@ -1151,44 +1672,29 @@ - - - + + + - - + + - - + + - - 3 + + [id_TgtAbs] - - - - - - - - - - - - - - - - - Vq_max + + @@ -1199,28 +1705,61 @@ - - + + - + - + - - [r_inpTgtScaAbs] + + [iqAbs] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + @@ -1242,11 +1781,11 @@ - + - + 2 @@ -1264,11 +1803,11 @@ - + - + Vd_min @@ -1280,342 +1819,28 @@ - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - - iq_max - - - - - - - - iq_min - - - - - - - - iq_limProtErr - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Speed_Mode_Protection - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - + + - + - - + + - - [iqAbs] + + [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - case [ 1 ]: - - - - - - - - case [ 2 ]: - - - - - - - - case [ 3 ]: - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - + @@ -1637,11 +1862,11 @@ - + - + [n_max] @@ -1658,6 +1883,54 @@ + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + iq_max + + + + + + + + @@ -1670,11 +1943,11 @@ - + - + [VdPrev] @@ -1703,11 +1976,11 @@ - + - + [Vd_max] @@ -1726,92 +1999,44 @@ - - - + + + - - + + - - + + - - 10 + + -1 - - + + - - - + + + - - + + - - r_nLimProtMax - - - - - - - - - - - - - - - - - - - - - - - - - - 12 - - - - - - - - - - - - - - - - - - - - - - Vq_nLimProtMax + + sfix16_En4 @@ -1832,11 +2057,11 @@ - + - + -1 @@ -1854,474 +2079,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-D T(k,f) - - - - - - - - k1 - - - - - - - - f1 - - - - - - - - - - - - - - - - - - - - - - Vq_max_M1 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2343,11 +2105,11 @@ - + - + [iq_min] @@ -2365,11 +2127,11 @@ - + - + sfix16_En4 @@ -2379,39 +2141,6 @@ - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - @@ -2424,11 +2153,11 @@ - + - + [iq_max] @@ -2446,11 +2175,298 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 12 + + + + + + + + + + + + + + + + + + + + + + Vq_nLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + iq_maxSca_XA + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -2508,6 +2524,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + iq_limProtErr + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Speed_Mode_Protection + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -2520,11 +2730,11 @@ - + - + [Vd_min] @@ -2542,140 +2752,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2697,11 +2778,11 @@ - + - + [Vq_min] @@ -2719,11 +2800,11 @@ - + - + sfix16_En4 @@ -2735,461 +2816,28 @@ - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - n_max - - - - - - - - Vq_max - - - - - - - - Vq_nLimProtMax - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Torque_Mode_Protection - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Vq_max_XA - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - + + - + - + - - [id_TgtAbs] + + [r_inpTgtScaAbs] - + @@ -3201,44 +2849,363 @@ - - - + + + - - + + - - + + - - 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 - - + + - - + + - - + + - - Vq_min + + iq_maxSca_M1 + + + + + + + + + + + + + + + ufix16_En16 @@ -3259,11 +3226,11 @@ - + - + [iq] @@ -3281,11 +3248,11 @@ - + - + sfix16_En4 @@ -3297,29 +3264,44 @@ - - - + + + - - + + - - + + - - [Vq_nLimProtMax] + + [z_ctrlMod] - - + + + + + + + + + + + + + + + + + uint8 @@ -3330,44 +3312,140 @@ - - - + + + - - + + - - + + - - 7 + + [iq_min] - - + + - - - + + + - - + + - - iq_max + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3388,11 +3466,11 @@ - + - + [Vd_max] @@ -3410,11 +3488,11 @@ - + - + sfix16_En4 @@ -3426,43 +3504,91 @@ - - - + + + - - + + - - + + - - [iq_max] + + 6 - + + + + + + + + + + + + + + + + + id_min + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + - + - - + + - + sfix16_En4 @@ -3484,11 +3610,11 @@ - + - + [iq_limProtErr] @@ -3506,11 +3632,11 @@ - + - + sfix32_En20 @@ -3532,11 +3658,11 @@ - + - + [Vq_max] @@ -3554,11 +3680,11 @@ - + - + sfix16_En4 @@ -3570,43 +3696,43 @@ - - + + - + - + - - [Vq_nLimProtMax] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -3618,43 +3744,43 @@ - - + + - + - + - - [iq_min] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -3664,6 +3790,208 @@ + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + @@ -3676,11 +4004,11 @@ - + - + [n_max] @@ -3698,11 +4026,11 @@ - + - + sfix16_En4 @@ -3714,43 +4042,51 @@ - - - + + + - - + + - - + + - - -1 + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -3760,11 +4096,475 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + iqAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + - + @@ -3778,67 +4578,67 @@ - + - + r_inpTgtScaAbs - + - + iqAbs - + - + iq_max - + - + n_motAbs - + - + n_max - + - + r_iqLimProtMax - + - + r_nLimProtMax - + - + case: { } @@ -3868,11 +4668,11 @@ - + - + Voltage_Mode_Protection @@ -3885,16 +4685,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -3906,15 +4706,15 @@ - + - - + + - + sfix16_En4 @@ -3927,16 +4727,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -3947,299 +4747,64 @@ - + - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - + - + - + - - 7 + + 4 - + - - + + - - + + - - n_motAbs + + id_TgtAbs - + - - + + - + sfix16_En4 @@ -4251,43 +4816,91 @@ - - - + + + - - + + - - + + - - [iq_max] + + [n_motAbs] - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + VdPrev - + - - + + - + sfix16_En4 @@ -4299,43 +4912,172 @@ - - - + + + - - + + - - + + - - [Vq_max] + + [z_ctrlMod] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + - + - - + + - + sfix16_En4 @@ -4357,11 +5099,11 @@ - + - + 5 @@ -4379,11 +5121,11 @@ - + - + iq @@ -4394,11 +5136,11 @@ - + - + sfix16_En4 @@ -4410,59 +5152,44 @@ - - + + - + - + - - 4 + + 9 - + - - + + - - + + - - id_TgtAbs - - - - - - - - - - - - - - - sfix16_En4 + + r_iqLimProtMax @@ -4473,125 +5200,44 @@ - - - + + + - - + + - - + + - - [iq] + + 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - + + - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - i_max - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + uint8 @@ -4612,11 +5258,11 @@ - + - + [n_motAbs] @@ -4634,457 +5280,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - iqAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - id_min - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - VdPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - Vd_max - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -5098,7 +5298,7 @@ - + @@ -5106,11 +5306,11 @@ - + - + if { } @@ -5128,11 +5328,11 @@ - + - + Action Port @@ -5144,51 +5344,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + -1 - - + + - + - - + + - + sfix16_En4 @@ -5198,39 +5390,6 @@ - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - @@ -5243,11 +5402,11 @@ - + - + 1 @@ -5265,11 +5424,11 @@ - + - + z_ctrlMod @@ -5280,11 +5439,11 @@ - + - + uint8 @@ -5294,165 +5453,6 @@ - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtScaAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -5703,15 +5703,15 @@ + + + - - - @@ -6359,5 +6359,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json index c45d5d1..249070d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json @@ -48,37 +48,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9031", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9043", "className":"Simulink.Outport", @@ -159,6 +128,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9031", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9030", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.svg index 3be0849..91ba486 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.svg @@ -38,54 +38,6 @@ - - - - - - - - - - - - - - - - - - default: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -98,11 +50,11 @@ - + - + 1 @@ -120,11 +72,11 @@ - + - + Vq_Open @@ -134,6 +86,54 @@ + + + + + + + + + + + + + + + + + + default: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -213,5 +213,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json index 876245e..9c6a929 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json @@ -476,65 +476,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9067", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "-+", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9066", "className":"Simulink.Sum", @@ -594,39 +535,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9064", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_sin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9062", "className":"Simulink.Goto", @@ -661,11 +569,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9060", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9061", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -673,7 +581,7 @@ "IconDisplay" ], "values":[ - "i_beta", + "r_sin", "Tag" ], "tabs":[ @@ -692,11 +600,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9061", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9060", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -704,7 +612,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "i_beta", "Tag" ], "tabs":[ @@ -815,127 +723,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9065", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_beta", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9052", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9057", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_beta", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9051", "className":"Simulink.Product", @@ -994,19 +781,80 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9055", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9067", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Sum6", + "label":"Sum6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "-+", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9064", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_cos", + "r_sin", + "local", "Tag" ], "tabs":[ @@ -1020,7 +868,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -1081,6 +929,120 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9053", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide4", + "label":"Divide4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9052", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide3", + "label":"Divide3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9056", "className":"Simulink.From", @@ -1112,63 +1074,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9053", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9063", "className":"Simulink.Goto", @@ -1202,6 +1107,101 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9065", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_beta", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9055", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9057", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_beta", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9048#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.svg index 666cec1..a149b82 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.svg @@ -410,70 +410,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -486,35 +422,35 @@ - + - + - + - + - + - + - + - + @@ -532,11 +468,11 @@ - + - + sfix16_En4 @@ -546,39 +482,6 @@ - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - @@ -591,11 +494,11 @@ - + - + [r_cos] @@ -612,54 +515,6 @@ - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -672,11 +527,11 @@ - + - + [r_sin] @@ -694,11 +549,11 @@ - + - + sfix16_En14 @@ -708,6 +563,54 @@ + + + + + + + + + + + + + + + + + + [i_beta] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -720,11 +623,11 @@ - + - + [r_cos] @@ -742,11 +645,11 @@ - + - + sfix16_En14 @@ -768,11 +671,11 @@ - + - + [i_apha] @@ -790,11 +693,11 @@ - + - + sfix16_En4 @@ -816,11 +719,11 @@ - + - + [r_sin] @@ -838,11 +741,11 @@ - + - + sfix16_En14 @@ -852,143 +755,6 @@ - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1001,19 +767,19 @@ - + - + - + - + @@ -1031,11 +797,11 @@ - + - + sfix16_En4 @@ -1047,44 +813,93 @@ - - - + + + - - + + - - + + - - [r_cos] + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - sfix16_En14 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + @@ -1105,19 +920,19 @@ - + - + - + - + @@ -1135,59 +950,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_apha] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1209,19 +976,19 @@ - + - + - + - + @@ -1239,11 +1006,115 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_apha] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1265,11 +1136,11 @@ - + - + [i_apha] @@ -1286,6 +1157,135 @@ + + + + + + + + + + + + + + + + + + [i_beta] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_cos] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_beta] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1540,5 +1540,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json index 786c13c..b8d89b6 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json @@ -128,6 +128,104 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKp", + "label":"cf_nKp", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKi", + "label":"cf_nKi", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKi", + "off", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "className":"Simulink.SubSystem", @@ -221,121 +319,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9095", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_nKi", - "label":"cf_nKi", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_nKi", - "off", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9093", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9094", "className":"Simulink.Goto", @@ -402,68 +385,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9091", "className":"Simulink.Goto", @@ -497,6 +418,72 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9093", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9095", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto31", + "label":"Goto31", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9088", "className":"Simulink.From", @@ -590,6 +577,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From38", + "label":"From38", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9101", "className":"Simulink.Sum", @@ -649,73 +667,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_limProtErr", - "label":"iq_limProtErr", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077", "className":"Simulink.Inport", @@ -783,86 +734,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_nKp", - "label":"cf_nKp", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_nKp", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9082", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9078", "className":"Simulink.Inport", @@ -997,6 +868,135 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From45", + "label":"From45", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_limProtErr", + "label":"iq_limProtErr", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9082", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9075", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.svg index 5387d15..ca6ac1c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.svg @@ -80,180 +80,44 @@ - - - + + + - - + + - + - - err - - - - - - - - P - - - - - - - - I - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - ext_limProt - - - - - - - - out - - - - - - - - PI(z) + + cf_nKp - - - - - - - - - - - - - - - - - PI_clamp_fixdt + + - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - + + ufix16_En12 @@ -274,11 +138,11 @@ - + - + cf_nKi @@ -296,11 +160,11 @@ - + - + ufix16_En16 @@ -312,29 +176,147 @@ - - - + + + - - + + - - + + - - [Vq_min] + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) - - + + + + + + + + + + + + + + + + + PI_clamp_fixdt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -355,11 +337,11 @@ - + - + [n_mot] @@ -388,11 +370,11 @@ - + - + [r_inpTgtSca] @@ -409,102 +391,6 @@ - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -517,11 +403,11 @@ - + - + [Vq_max] @@ -538,6 +424,72 @@ + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + @@ -550,11 +502,11 @@ - + - + [r_inpTgtSca] @@ -572,11 +524,11 @@ - + - + sfix16_En4 @@ -598,11 +550,11 @@ - + - + [n_mot] @@ -620,11 +572,11 @@ - + - + sfix16_En4 @@ -646,11 +598,11 @@ - + - + [iq_limProtErr] @@ -668,11 +620,11 @@ - + - + sfix32_En20 @@ -682,6 +634,54 @@ + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -746,69 +746,6 @@ - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - iq_limProtErr - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - @@ -821,11 +758,11 @@ - + - + 3 @@ -843,11 +780,11 @@ - + - + Vq_min @@ -858,11 +795,11 @@ - + - + sfix16_En4 @@ -872,102 +809,6 @@ - - - - - - - - - - - - - - - - - - cf_nKp - - - - - - - - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -980,11 +821,11 @@ - + - + 4 @@ -1002,11 +843,11 @@ - + - + n_mot @@ -1017,11 +858,11 @@ - + - + sfix16_En4 @@ -1043,11 +884,11 @@ - + - + 2 @@ -1065,11 +906,11 @@ - + - + Vq_max @@ -1080,11 +921,11 @@ - + - + sfix16_En4 @@ -1094,6 +935,165 @@ + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + iq_limProtErr + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -1355,5 +1355,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json index de52989..4cb7aa8 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json @@ -1,450 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"PI_clamp_fixdt", - "label":"PI_clamp_fixdt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "on", - "off", - "off", - "-1", - "Reusable function", - "Use subsystem name", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "off", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10842", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax1", - "label":"MinMax1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10844", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_minTrq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9129", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9128", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9130", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9127", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10834", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant2", - "label":"constant2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9125", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10841", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax2", - "label":"MinMax2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "max", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9141", "className":"Simulink.Outport", @@ -526,27 +80,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10843", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10834", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"constant2", + "label":"constant2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "Vq_maxTrq", - "local", - "Tag" + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -554,288 +124,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10819", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10836", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10820", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10823", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_minTrq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9126", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10845", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_maxTrq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10822", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9117", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", + "blocktype":"Constant", "masktype":"" } }, @@ -937,6 +226,561 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10831", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10842", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax1", + "label":"MinMax1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "min", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9131", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10841", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax2", + "label":"MinMax2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "max", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9128", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9127", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9125", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10819", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9126", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10820", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_minTrq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "on", + "off", + "off", + "-1", + "Reusable function", + "Use subsystem name", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "off", + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10838", "className":"Simulink.From", @@ -969,61 +813,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10844", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "Vq_minTrq", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1031,7 +841,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", "masktype":"" } }, @@ -1067,61 +877,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10845", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "Vq_maxTrq", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1129,58 +903,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10840", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10836", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "r_inpTgtSca", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1188,7 +934,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"From", "masktype":"" } }, @@ -1260,11 +1006,75 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10822", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9129", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1287,7 +1097,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "6", "Port number", "[]", "[]", @@ -1326,65 +1136,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10831", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114", "className":"Simulink.Inport", @@ -1452,6 +1203,296 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10843", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_maxTrq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9117", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9130", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10840", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain4", + "label":"Gain4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110", "className":"Simulink.Inport", @@ -1520,50 +1561,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1586,7 +1588,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "3", "Port number", "[]", "[]", @@ -1626,21 +1628,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9131", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10823", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vq_nLimProtMax", - "local", + "Vq_min", "Tag" ], "tabs":[ @@ -1654,7 +1654,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.svg index 14baabe..5f478ed 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.svg @@ -13,147 +13,252 @@ - - - + + + - - + + - + - - err - - - - - - - - P - - - - - - - - I - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - ext_limProt - - - - - - - - out - - - - - - - - PI(z) + + 1 - - + + - - + + - - + + - - PI_clamp_fixdt + + Vq_Trq + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 - + + + + + + + + + + + + + + + - - + + - - + + cf_iqKp - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_iqKi + + + + + + + + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -174,19 +279,19 @@ - + - + - + - + @@ -212,11 +317,11 @@ - + - + sfix16_En4 @@ -228,209 +333,108 @@ - - - + + + - - + + - + - - + + - - [Vq_minTrq] + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - [iq] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - + - - [iq_max] + + - - - - + - - - - - - - - - - - - - - - - + + - - 0 + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y - - + + - - + + - - + + - - sfix32_En20 + + sfix16_En4 @@ -441,28 +445,28 @@ - - + + - + - + - - [Vq_max] + + [Vq_nLimProtMax] - + @@ -484,19 +488,19 @@ - + - + - + - + @@ -522,11 +526,11 @@ - + - + sfix16_En4 @@ -538,44 +542,29 @@ - - - + + + - - + + - - + + - - 1 + + [Vq_min] - - - - - - - - - - - - - - - - - Vq_Trq + + @@ -586,28 +575,61 @@ - - + + - + - + - - [Vq_maxTrq] + + [iq_max] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + @@ -629,11 +651,11 @@ - + - + [iq] @@ -651,203 +673,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_minTrq] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -869,11 +699,11 @@ - + - + [r_inpTgtSca] @@ -892,91 +722,43 @@ - - + + - + - - - - - - - [Vq_maxTrq] - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] + + [iq_max] - + - + - - + + - + sfix16_En4 @@ -988,140 +770,195 @@ - - - + + + - - + + - - + + - - case: { } + + [Vq_minTrq] - - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) + + + + + + + - - + + - - + + - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - cf_iqKp - - - - - - - + + PI_clamp_fixdt - - + + - - + + - - ufix16_En12 + + sfix16_En4 - - - - - - - - - - - - - - - + - - + + - - cf_iqKi + + - - - - - - - - - - - - - - - - - - - - ufix16_En16 + + + + + + + + + + + + + + + + + + @@ -1142,11 +979,11 @@ - + - + [Vq_nLimProtMax] @@ -1164,11 +1001,11 @@ - + - + sfix16_En4 @@ -1180,59 +1017,29 @@ - - - + + + - - + + - - + + - - 4 + + [Vq_minTrq] - - - - - - - - - - - - - - - - - iq - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1253,11 +1060,11 @@ - + - + [iq_min] @@ -1275,11 +1082,11 @@ - + - + sfix16_En4 @@ -1291,58 +1098,43 @@ - - - + + + - - + + - - + + - - 3 + + [Vq_maxTrq] - - - - - - - - - - - - - - - - - Vq_min + + - + - - + + - + sfix16_En4 @@ -1354,43 +1146,43 @@ - - - + + + - - + + - - + + - - -1 + + [r_inpTgtSca] - - + + - + - - + + - + sfix16_En4 @@ -1412,11 +1204,11 @@ - + - + 7 @@ -1434,11 +1226,11 @@ - + - + Vq_nLimProtMax @@ -1449,11 +1241,11 @@ - + - + sfix16_En4 @@ -1465,122 +1257,139 @@ - - - + + + - - + + - - + + - - 2 + + [Vq_max] - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + - - + + - - + + - - Vq_max + + iq_min - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1602,11 +1411,11 @@ - + - + 5 @@ -1624,11 +1433,11 @@ - + - + iq_max @@ -1639,11 +1448,299 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_maxTrq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1665,11 +1762,11 @@ - + - + 1 @@ -1687,11 +1784,11 @@ - + - + r_inpTgtSca @@ -1702,11 +1799,11 @@ - + - + sfix16_En4 @@ -1718,170 +1815,58 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - 6 + + 3 - + - - + + - - + + - - iq_min + + Vq_min - + - - + + - + sfix16_En4 @@ -1893,29 +1878,44 @@ - - - + + + - - + + - - + + - - [Vq_nLimProtMax] + + [Vq_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -2296,5 +2296,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json index dc4ae41..6c9c5da 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json @@ -59,11 +59,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", + "name":"cf_idKi1", + "label":"cf_idKi1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -77,12 +77,12 @@ "FramePeriod" ], "values":[ - "0", + "cf_idKi", "on", "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(0,16,16)", "off", "inf" ], @@ -188,11 +188,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_idKp1", - "label":"cf_idKp1", + "name":"constant1", + "label":"constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -206,12 +206,12 @@ "FramePeriod" ], "values":[ - "cf_idKp", + "0", "on", "inf", "[]", "[]", - "fixdt(0,16,12)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -237,42 +237,69 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9161", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" + "id", + "local", + "Tag" ], "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - ] + "tabs_idx":0 }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9160", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" } }, { @@ -368,39 +395,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9160", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723", "className":"Simulink.From", @@ -432,6 +426,189 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9162", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9722", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9156", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_idKp1", + "label":"cf_idKp1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_idKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9155", "className":"Simulink.From", @@ -463,6 +640,99 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9152", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9151", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9150", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9159", "className":"Simulink.Goto", @@ -497,19 +767,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9152", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9158", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id", + "Vd_max", + "local", "Tag" ], "tabs":[ @@ -523,7 +795,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -594,6 +866,140 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9148", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_max", + "label":"id_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9147", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vd_min", + "label":"Vd_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9157", "className":"Simulink.Goto", @@ -627,315 +1033,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_idKi1", - "label":"cf_idKi1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_idKi", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9148", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9161", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9722", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9147", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vd_min", - "label":"Vd_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9156", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9151", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9146", "className":"Simulink.Inport", @@ -1003,39 +1100,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9162", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9145", "className":"Simulink.Inport", @@ -1170,70 +1234,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9150", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9158", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9152#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.svg index a6c015b..c755b41 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.svg @@ -77,44 +77,44 @@ - - - + + + - - + + - + - - 0 + + cf_idKi - - + + - - + + - + - - sfix32_En20 + + ufix16_En16 @@ -173,724 +173,44 @@ - - - + + + - - + + - + - - cf_idKp + + 0 - - + + - - + + - + - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - err - - - - - - - - P - - - - - - - - I - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - ext_limProt - - - - - - - - out - - - - - - - - PI(z) - - - - - - - - - - - - - - - - - - - - - - PI_clamp_fixdt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - id_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cf_idKi - - - - - - - - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - id_max - - - - - - - - - - - - - - - sfix16_En4 + + sfix32_En20 @@ -911,11 +231,11 @@ - + - + [id] @@ -934,44 +254,29 @@ - - - + + + - - + + - - + + - - [Vd_max] + + [id_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -982,106 +287,194 @@ - - - + + + - - + + - - + + - - 4 + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) - - + + - - + + - - + + - - Vd_min + + PI_clamp_fixdt - + - - + + - + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - + - - [id_min] + + [Vd_min] - + - + - - + + - + sfix16_En4 @@ -1093,106 +486,107 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - [id_Tgt] + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y - - + + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vd_max - - - - - - - - - - - - - - + sfix16_En4 @@ -1214,11 +608,11 @@ - + - + [id_min] @@ -1237,58 +631,43 @@ - - - + + + - - + + - - + + - - 2 + + [Vd_max] - - - - - - - - - - - - - - - - - id + + - + - - + + - + sfix16_En4 @@ -1300,58 +679,235 @@ - - - + + + - - + + - - + + - - 1 + + [id_min] - - - - - - - - - - - - - - - - - id_Tgt + + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_idKp + + + + + + + + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1373,11 +929,11 @@ - + - + if { } @@ -1395,11 +951,11 @@ - + - + Action Port @@ -1409,6 +965,39 @@ + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + @@ -1421,11 +1010,11 @@ - + - + [Vd_max] @@ -1442,6 +1031,417 @@ + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + id_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + id_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + Vd_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vd_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + id_Tgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1696,5 +1696,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg index 280f2c1..8e48bb9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg @@ -1009,16 +1009,16 @@ - + - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json index 589c51f..5f819b1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json @@ -1,19 +1,21 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10740", - "className":"Simulink.Signum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10737", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"SignDeltaU2", - "label":"SignDeltaU2", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "ZeroCross", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "on", - "-1" + "r_inpTgtScaAbs", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -26,7 +28,106 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Signum", + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9189", + "className":"Simulink.SignalConversion", + "icon":"WebViewIcon3", + "name":"Signal Conversion2", + "label":"Signal Conversion2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" + ], + "values":[ + "Signal copy", + "Inherit: auto", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SignalConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9186", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9187", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto31", + "label":"Goto31", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, @@ -84,11 +185,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9185", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9184", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -97,7 +198,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_inpTgtSca", "local", "Tag" ], @@ -116,99 +217,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10731", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9179", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10725", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9183", "className":"Simulink.Goto", @@ -242,39 +250,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9186", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10738", "className":"Simulink.From", @@ -307,150 +282,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9189", - "className":"Simulink.SignalConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" - ], - "values":[ - "Signal copy", - "Inherit: auto", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SignalConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10741", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9184", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtSca", - "local", + "Vq_min", "Tag" ], "tabs":[ @@ -464,7 +308,149 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9191", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_Vlt", + "label":"Vq_Vlt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9179", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10731", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -500,11 +486,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9185", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10733", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -512,7 +531,69 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10740", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU2", + "label":"SignDeltaU2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "ZeroCross", + "SampleTime" + ], + "values":[ + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Signum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10725", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", "Tag" ], "tabs":[ @@ -597,37 +678,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10733", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9175", "className":"Simulink.Inport", @@ -695,6 +745,130 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9174", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_min", + "label":"Vq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10741", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9173", "className":"Simulink.Inport", @@ -762,86 +936,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9191", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_Vlt", - "label":"Vq_Vlt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10736", "className":"Simulink.Inport", @@ -909,6 +1003,45 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9172", "className":"Simulink.Inport", @@ -976,139 +1109,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10737", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9187", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9174", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9172#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png index 63cf5cb..1dd1515 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.svg index 1cd7010..a5120b9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.svg @@ -13,431 +13,29 @@ - - - + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -458,131 +56,131 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -608,11 +206,11 @@ - + - + sfix16_En4 @@ -624,736 +222,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [r_inpTgtSca] + + [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - r_nLimProtMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - r_iqLimProtMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vq_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vq_Vlt - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtScaAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - + @@ -1375,11 +265,11 @@ - + - + [r_iqLimProtMax] @@ -1396,6 +286,759 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Vq_Vlt + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1408,11 +1051,11 @@ - + - + 4 @@ -1430,11 +1073,11 @@ - + - + Vq_min @@ -1445,11 +1088,368 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + sfix16_En4 @@ -1699,5 +1699,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg index d8dd5d9..68d269d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg @@ -63,7 +63,7 @@ - + @@ -1012,15 +1012,15 @@ - - - + + + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.json index 97591a0..d07e98e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.json @@ -975,56 +975,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9449", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9235", "className":"Simulink.Switch", @@ -1083,129 +1033,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9741", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"SIN_Method", - "label":"SIN_Method", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9449", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", + "0", + "Inherited", "-1", "", + "", "off", - "" + [ + ], + "Auto" ], "tabs":[ "Main", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9914", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets", - "Inputs" - ], - "values":[ - "[]", - "off", - "[]", - "3" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 + 3, + 4 ] }, "viewer":{ @@ -1214,7 +1078,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -1264,11 +1128,56 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9924", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9840", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9225", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1277,7 +1186,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "r_inpTgtSca", "local", "Tag" ], @@ -1297,11 +1206,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9225", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"SIN_Method", + "label":"SIN_Method", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9925", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1310,7 +1318,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "r_fieldWeak", "local", "Tag" ], @@ -1363,11 +1371,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9925", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9452", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1376,7 +1384,7 @@ "IconDisplay" ], "values":[ - "r_fieldWeak", + "VqFinPrev", "local", "Tag" ], @@ -1426,6 +1434,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9920", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9917", "className":"Simulink.From", @@ -1457,37 +1527,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9929", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215", "className":"Simulink.From", @@ -1519,113 +1558,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9839", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9835", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9916", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9833", "className":"Simulink.If", @@ -1669,53 +1601,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion6", - "label":"Data Type Conversion6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9451", "className":"Simulink.Goto", @@ -1750,11 +1635,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9928", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9908", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1762,7 +1647,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "V_phaABC_FOC", "Tag" ], "tabs":[ @@ -1781,42 +1666,265 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9838", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9227", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"CTRL_COMM3", - "label":"CTRL_COMM3", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "CTRL_SIN", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "z_ctrlTypSel", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9924", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dir", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9832", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9915", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_pos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC_Method", + "label":"FOC_Method", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inf" + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ "Main", - "Signal Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9835", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 ] }, "viewer":{ @@ -1825,7 +1933,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"RelationalOperator", "masktype":"" } }, @@ -1910,11 +2018,128 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9914", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" + ], + "values":[ + "[]", + "off", + "[]", + "3" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion6", + "label":"Data Type Conversion6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int16", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9929", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"FOC_Method", - "label":"FOC_Method", + "name":"COM_Method", + "label":"COM_Method", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1922,8 +2147,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1935,7 +2160,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1946,9 +2170,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1958,7 +2183,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1971,7 +2196,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1981,18 +2205,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2006,68 +2233,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9915", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_pos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9214", "className":"Simulink.From", @@ -2100,88 +2265,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9923", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9916", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"r_fieldWeak", - "label":"r_fieldWeak", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9452", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "VqFinPrev", - "local", + "VqFin", "Tag" ], "tabs":[ @@ -2195,7 +2291,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2267,239 +2363,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9920", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9838", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"CTRL_COMM3", + "label":"CTRL_COMM3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9840", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9904", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"COM_Method", - "label":"COM_Method", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", + "CTRL_SIN", "on", - "", - "", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "inf" ], "tabs":[ "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 3, + 7 ] }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9908", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "V_phaABC_FOC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9227", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, @@ -2570,6 +2478,135 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9923", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_fieldWeak", + "label":"r_fieldWeak", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9928", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9839", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9921", "className":"Simulink.Inport", @@ -2637,37 +2674,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9832", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.png index 06370c3..4895270 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.svg index 96f75e2..8c387f7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.svg @@ -539,30 +539,30 @@ - + - + - + int16 - + - + - + int16 @@ -956,6 +956,198 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -968,35 +1160,35 @@ - + - + - + - + - + - + - + - + @@ -1017,224 +1209,209 @@ - - - - - - - - - - - Ini=0 - - - - - + - + sfix16_En4 + + + + + + + + + + + Ini=0 + + + + - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + + + + + + + + + - - + + - - + + - - + + - - sfix16_En4 + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + @@ -1261,51 +1438,51 @@ - + - + r_inpTgtSca - + - + a_elecAngle - + - + z_dir - + - + r_fieldWeak - + - + V_phaABC_SIN - + - + elseif { } @@ -1335,11 +1512,11 @@ - + - + SIN_Method @@ -1352,16 +1529,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -1373,16 +1550,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -1393,203 +1570,34 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + - + - + - - [z_dir] + + [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - + @@ -1611,11 +1619,11 @@ - + - + [a_elecAngle] @@ -1634,28 +1642,28 @@ - - + + - + - + - - [r_fieldWeak] + + [VqFinPrev] - + @@ -1677,11 +1685,11 @@ - + - + [a_elecAngle] @@ -1699,11 +1707,11 @@ - + - + sfix16_En6 @@ -1713,6 +1721,102 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1725,11 +1829,11 @@ - + - + [r_inpTgtSca] @@ -1747,59 +1851,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1821,11 +1877,11 @@ - + - + [r_inpTgtSca] @@ -1843,179 +1899,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFin] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2037,43 +1925,43 @@ - + - + u1 - + - + u2 - + - + if(u1 ~= 0) - + - + elseif(u2 ~= 0) - + - + else @@ -2086,31 +1974,16 @@ - - - - - - - - - - - action - - - - - + - + action @@ -2121,76 +1994,27 @@ - + - + action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - int16 + + action @@ -2211,11 +2035,11 @@ - + - + [VqFin] @@ -2234,44 +2058,110 @@ - - + + - + - + - + + [V_phaABC_FOC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] - - - - - - - - - - - - - - - - - int8 + + @@ -2282,92 +2172,44 @@ - - - - - - - - - - - - - - - - CTRL_SIN - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - + + - + - + - - [b_enaAdvCtrl] + + [z_ctrlTypSel] - + - - + + - - + + - - boolean + + uint8 @@ -2378,44 +2220,44 @@ - - - + + + - - + + - - + + - - CTRL_FOC + + [z_pos] - - + + - - + + - - + + - - uint8 + + int8 @@ -2442,27 +2284,27 @@ - + - + V_phaABC_FOC_in - + - + V_phaABC_FOC - + - + if { } @@ -2492,11 +2334,11 @@ - + - + FOC_Method @@ -2513,11 +2355,11 @@ - + - + action @@ -2534,11 +2376,11 @@ - + - + sfix16_En4 @@ -2550,394 +2392,43 @@ - + - - + + - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - - - - - - - - - - - - - - - - - - - - r_fieldWeak - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - z_dir - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - + - + - + - + - + - + - + @@ -2952,22 +2443,22 @@ - + - + - - + + - + boolean @@ -2977,6 +2468,278 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_FOC + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -2995,35 +2758,35 @@ - + - + VqFin - + - + z_pos - + - + V_phaABC_COM - + - + else { } @@ -3053,11 +2816,11 @@ - + - + COM_Method @@ -3070,16 +2833,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -3091,16 +2854,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -3111,49 +2874,97 @@ - + - + - + - + - - [V_phaABC_FOC] + + [z_ctrlTypSel] - + - + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFin] + + + + + + + + + + + + + - - + + - + sfix16_En4 @@ -3165,29 +2976,107 @@ - - - + + + - - + + - - + + - - [z_ctrlTypSel] + + 8 - - + + + + + + + + + + + + + + + + + z_dir + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_SIN + + + + + + + + + + + + + + + + + + + + + + uint8 @@ -3208,11 +3097,11 @@ - + - + 6 @@ -3230,11 +3119,11 @@ - + - + r_inpTgtSca @@ -3245,11 +3134,11 @@ - + - + sfix16_En4 @@ -3259,6 +3148,165 @@ + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + r_fieldWeak + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -3271,11 +3319,11 @@ - + - + 7 @@ -3293,11 +3341,11 @@ - + - + a_elecAngle @@ -3308,11 +3356,11 @@ - + - + sfix16_En6 @@ -3322,54 +3370,6 @@ - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -3515,6 +3515,21 @@ + + + + + + + + + + + boolean + + + + @@ -3526,21 +3541,6 @@ - - - - - - - - - - - boolean - - - - @@ -4303,5 +4303,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9292_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9292_d.svg index 779e94b..3a2d57b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9292_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9292_d.svg @@ -10,5 +10,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9293_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9293_d.svg index b6269c5..cfb01d1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9293_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9293_d.svg @@ -10,5 +10,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json index 929d623..1ff9b19 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json @@ -494,8 +494,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -507,7 +507,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -518,9 +517,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -530,7 +530,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -543,7 +543,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -553,18 +552,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -612,11 +614,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9801", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9800", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", "inspector":{ "params":[ @@ -625,7 +627,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "r_fieldWeak", "local", "Tag" ], @@ -678,44 +680,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9820", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "V_phaABC_SIN", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9818", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9806", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", "inspector":{ "params":[ @@ -723,38 +692,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9810", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "V_phaABC_SIN", + "r_fieldWeak", "Tag" ], "tabs":[ @@ -804,73 +742,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9805", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9806", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9800", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9820", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", "inspector":{ "params":[ @@ -879,7 +755,7 @@ "IconDisplay" ], "values":[ - "r_fieldWeak", + "V_phaABC_SIN", "local", "Tag" ], @@ -899,20 +775,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9819", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9810", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "IconDisplay" ], "values":[ - "3", - "bar" + "V_phaABC_SIN", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -925,64 +801,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9816", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, @@ -1035,6 +854,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9805", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9798", "className":"Simulink.Inport", @@ -1169,6 +1019,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9819", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9801", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9795", "className":"Simulink.Inport", @@ -1236,6 +1150,94 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9818", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9816", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9796", "className":"Simulink.Inport", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg index 2841929..4985ceb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg @@ -82,7 +82,7 @@ - + @@ -553,7 +553,7 @@ - + @@ -1024,7 +1024,7 @@ - + @@ -1495,7 +1495,7 @@ - + @@ -1638,7 +1638,7 @@ - + @@ -1819,11 +1819,11 @@ - - + + - + @@ -1833,14 +1833,14 @@ - - [a_elecAngle] + + [r_fieldWeak] - + @@ -1885,124 +1885,43 @@ - - - + + + - - + + - - - - - [V_phaABC_SIN] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] + + [r_fieldWeak] - + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [V_phaABC_SIN] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2024,11 +1943,11 @@ - + - + [a_elecAngle] @@ -2046,11 +1965,11 @@ - + - + sfix16_En6 @@ -2062,124 +1981,28 @@ - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [r_fieldWeak] + + [V_phaABC_SIN] - + @@ -2191,99 +2014,43 @@ - - - + + + - - + + - - + + - - + + [V_phaABC_SIN] - - + + - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + sfix16_En4 @@ -2305,11 +2072,11 @@ - + - + 0 @@ -2327,11 +2094,11 @@ - + - + uint8 @@ -2341,6 +2108,54 @@ + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -2353,11 +2168,11 @@ - + - + 4 @@ -2375,11 +2190,11 @@ - + - + r_fieldWeak @@ -2390,11 +2205,11 @@ - + - + sfix16_En4 @@ -2416,11 +2231,11 @@ - + - + 3 @@ -2438,11 +2253,11 @@ - + - + z_dir @@ -2453,11 +2268,11 @@ - + - + int8 @@ -2467,6 +2282,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + @@ -2479,11 +2375,11 @@ - + - + 2 @@ -2501,11 +2397,11 @@ - + - + a_elecAngle @@ -2516,11 +2412,11 @@ - + - + sfix16_En6 @@ -2530,6 +2426,110 @@ + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -2638,10 +2638,10 @@ - + - + @@ -2692,10 +2692,10 @@ - + - + @@ -2913,5 +2913,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json index ab95f2c..ee94706 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json @@ -834,37 +834,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10175", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9794", "className":"Simulink.From", @@ -896,103 +865,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10035", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Modulo_fixdt", - "label":"Modulo_fixdt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9746", "className":"Simulink.Inport", @@ -1060,6 +932,105 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Modulo_fixdt", + "label":"Modulo_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9747", "className":"Simulink.Inport", @@ -1127,6 +1098,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10175", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9756#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg index ac3a622..1eafcf9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg @@ -1089,54 +1089,6 @@ - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1149,11 +1101,11 @@ - + - + [r_fieldWeak] @@ -1171,11 +1123,74 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + r_fieldWeak + + + + + + + + + + + + + + sfix16_En4 @@ -1203,27 +1218,27 @@ - + - + num - + - + div - + - + rem @@ -1253,11 +1268,11 @@ - + - + sfix16_En6 @@ -1269,29 +1284,29 @@ - + - + - + - + - + - + @@ -1305,76 +1320,13 @@ - + - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - r_fieldWeak - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - @@ -1384,11 +1336,11 @@ - + - + 1 @@ -1406,11 +1358,11 @@ - + - + a_elecAngle @@ -1421,11 +1373,11 @@ - + - + sfix16_En6 @@ -1435,6 +1387,54 @@ + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1689,5 +1689,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg index 1a7d8c9..d01524c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg @@ -63,7 +63,7 @@ - + @@ -171,5 +171,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.json index bb59137..108889e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.json @@ -110,160 +110,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9823", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "V_phaABC_COM", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9911", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_pos", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9913", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "V_phaABC_COM", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9236", "className":"Simulink.LookupNDDirect", @@ -317,6 +163,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9911", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_pos", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453", "className":"Simulink.From", @@ -348,6 +227,101 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9913", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "V_phaABC_COM", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9823", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "V_phaABC_COM", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9211", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_pos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9910", "className":"Simulink.Inport", @@ -415,6 +389,63 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9912", "className":"Simulink.Goto", @@ -515,37 +546,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9211", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_pos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png index 449c731..8cf73e6 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg index 9731491..d55477f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg @@ -63,7 +63,7 @@ - + @@ -94,29 +94,203 @@ - - - + + + - - + + - + - - [V_phaABC_COM] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2-D T[k] - - + + + + + + + + + + + + + + + + + z_commutMap_M1 + + + + + + + + + + + + + + + int8 @@ -137,11 +311,11 @@ - + - + [z_pos] @@ -158,317 +332,6 @@ - - - - - - - - - - - - - - - - - - [V_phaABC_COM] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-D T[k] - - - - - - - - - - - - - - - - - - - - - - z_commutMap_M1 - - - - - - - - - - - - - - - int8 - - - - - - - - @@ -481,11 +344,11 @@ - + - + [VqFin] @@ -503,11 +366,11 @@ - + - + sfix16_En4 @@ -517,6 +380,135 @@ + + + + + + + + + + + + + + + + + + [V_phaABC_COM] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [V_phaABC_COM] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_pos] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -529,11 +521,11 @@ - + - + 2 @@ -551,11 +543,11 @@ - + - + z_pos @@ -566,11 +558,11 @@ - + - + int8 @@ -580,6 +572,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -592,11 +640,11 @@ - + - + [VqFin] @@ -625,11 +673,11 @@ - + - + 1 @@ -647,11 +695,11 @@ - + - + VqFin @@ -662,11 +710,11 @@ - + - + sfix16_En4 @@ -676,54 +724,6 @@ - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - @@ -824,5 +824,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.json index 87617a8..33d77a4 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.json @@ -128,103 +128,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950", - "className":"Rising edge init", - "icon":"WebViewIcon4", - "name":"rising_edge_init", - "label":"rising_edge_init", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "on", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Rising edge init" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9949", "className":"Simulink.Constant", @@ -275,69 +178,102 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9947", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950", + "className":"Rising edge init", + "icon":"WebViewIcon4", + "name":"rising_edge_init", + "label":"rising_edge_init", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "VqFinPrev", - "local", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "on", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "Code Generation", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 5, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10006", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaOpen", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Rising edge init" } }, { @@ -433,6 +369,84 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9944", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaOpen", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9942", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9945", "className":"Simulink.Gain", @@ -493,19 +507,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9944", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9947", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtScaOpen", + "VqFinPrev", + "local", "Tag" ], "tabs":[ @@ -519,7 +535,40 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10006", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaOpen", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, @@ -601,53 +650,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9942", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9940", "className":"Simulink.Constant", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg index 295406a..3ae3c57 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg @@ -86,118 +86,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -210,11 +98,11 @@ - + - + dV_openRate @@ -232,11 +120,11 @@ - + - + dV_openRate @@ -247,11 +135,442 @@ - + - + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + initVal + + + + + + + + init + + + + + + + + inc + + + + + + + + dec + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Rate_Limiter + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaOpen] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + sfix28_En16 @@ -273,11 +592,11 @@ - + - + [VqFinPrev] @@ -306,11 +625,11 @@ - + - + [r_inpTgtScaOpen] @@ -327,261 +646,6 @@ - - - - - - - - - - - - - - - - - - u - - - - - - - - initVal - - - - - - - - init - - - - - - - - inc - - - - - - - - dec - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Rate_Limiter - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaOpen] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -594,19 +658,19 @@ - + - + - + - + @@ -632,11 +696,11 @@ - + - + sfix28_En16 @@ -658,11 +722,11 @@ - + - + [VqFinPrev] @@ -680,75 +744,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -810,7 +810,7 @@ - + @@ -1079,5 +1079,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.svg index bd6e4a4..a15bb81 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.svg @@ -15,7 +15,7 @@ - + @@ -444,7 +444,7 @@ - + @@ -693,36 +693,36 @@ - - - - - - - - - - - sfix28_En16 - - - - - + - + Ini=initVal + + + + + + + + + + + sfix28_En16 + + + + @@ -853,5 +853,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg index 4e620a1..6784142 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -1015,10 +1015,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json index 0ec5e64..05c3986 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json @@ -49,63 +49,42 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2360", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2343", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"y", - "label":"y", + "name":"Sum2", + "label":"Sum2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Zero", + "off", "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -115,7 +94,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -124,7 +103,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Sum", "masktype":"" } }, @@ -188,18 +167,28 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Delay_Init1", - "label":"Delay_Init1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ - "initVal" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" ], "values":[ - "0" + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" ], "tabs":[ ], @@ -213,15 +202,15 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2357", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2358", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"inc", - "label":"inc", + "name":"dec", + "label":"dec", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ @@ -244,7 +233,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -351,11 +340,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2358", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2357", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"dec", - "label":"dec", + "name":"inc", + "label":"inc", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ @@ -378,172 +367,7 @@ "OutputFunctionCall" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2343", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Zero", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2359", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", + "4", "Port number", "[]", "[]", @@ -649,6 +473,182 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2360", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2359", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Delay_Init1", + "label":"Delay_Init1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2356#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.svg index f275e2f..11847e9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.svg @@ -48,44 +48,68 @@ - - - + + + - - + + - + - - 1 + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - y + + sfix28_En16 @@ -106,27 +130,27 @@ - + - + - + - + - + - + @@ -144,11 +168,11 @@ - + - + sfix28_En16 @@ -160,186 +184,170 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - u + + up - - + + - - initVal + + u - - + + - - init + + lo - - + + - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - + + y - - + + - - + + - - + + - + sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - - 4 + + 5 - + - - + + - - + + - - inc + + dec - + - - + + - + sfix28_En16 @@ -361,11 +369,11 @@ - + - + 3 @@ -383,11 +391,11 @@ - + - + init @@ -398,11 +406,11 @@ - + - + boolean @@ -414,305 +422,58 @@ - - + + - + - + - - 5 + + 4 - + - - + + - - + + - - dec + + inc - + - - + + - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - + sfix28_En16 @@ -734,11 +495,11 @@ - + - + 2 @@ -756,11 +517,11 @@ - + - + initVal @@ -771,11 +532,11 @@ - + - + sfix28_En16 @@ -785,6 +546,245 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + initVal + + + + + + + + init + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -953,5 +953,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.svg index 25383ed..8176068 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.svg @@ -120,36 +120,36 @@ - - - - - - - - - - - Ini=1 - - - - - + - + boolean + + + + + + + + + + + Ini=1 + + + + @@ -232,5 +232,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json index d18b6ec..55a997f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json @@ -151,108 +151,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9937", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Open_Mode", - "label":"Open_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10013", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9987", "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Merge1", - "label":"Merge1", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ @@ -287,11 +190,54 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9987", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10002", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == OPEN_MODE", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10013", "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"Merge1", + "label":"Merge1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ @@ -358,6 +304,435 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9983", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10014", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9980", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10015", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9984", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9978", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9977", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10000", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9999", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9986", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == CTRL_FOC", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9988", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Default_Control_Type", + "label":"Default_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9992", "className":"Simulink.Outport", @@ -439,11 +814,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10014", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9982", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ @@ -452,7 +827,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "z_ctrlModReq", "local", "Tag" ], @@ -471,291 +846,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9980", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9983", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10015", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10005", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9977", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"FOC_Control_Type", - "label":"FOC_Control_Type", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9978", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10004", "className":"Simulink.Goto", @@ -790,11 +880,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10000", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10005", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ @@ -802,7 +892,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "VqFinPrev", "Tag" ], "tabs":[ @@ -820,346 +910,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9988", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Default_Control_Type", - "label":"Default_Control_Type", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9999", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10016", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9982", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9955", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10002", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 == OPEN_MODE", - "", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9956", "className":"Simulink.Inport", @@ -1259,44 +1009,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9984", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Default_Mode", + "label":"Default_Mode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" ], "values":[ - "r_inpTgtScaRaw", - "local", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "Code Generation", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 5, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9954", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10016", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ @@ -1319,7 +1135,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "5", "Port number", "[]", "[]", @@ -1425,6 +1241,271 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC_Control_Type", + "label":"FOC_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9937", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Open_Mode", + "label":"Open_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "SystemSampleTime", + "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", + "", + "off", + "on", + "off", + "" + ], + "tabs":[ + "Main", + "Code Generation", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9955", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9979", "className":"Simulink.From", @@ -1457,36 +1538,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9986", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9954", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "1", - "u1 == CTRL_FOC", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", "", "on", - "-1", - "on" + "off", + "off", + "off" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 4 + 2, + 11 ] }, "viewer":{ @@ -1495,104 +1600,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10007", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Default_Mode", - "label":"Default_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", + "blocktype":"Inport", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg index 6ce2a63..868c076 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg @@ -53,7 +53,7 @@ - + @@ -129,205 +129,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - r_inpTgtScaOpen - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Open_Mode - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + @@ -335,19 +141,19 @@ - + - + - + - + @@ -373,11 +179,154 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 == OPEN_MODE) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -399,11 +348,11 @@ - + - + [z_ctrlTypSel] @@ -422,44 +371,29 @@ - - - + + + - - + + - - + + - - 1 + + [r_inpTgt] - - - - - - - - - - - - - - - - - r_inpTgtSca + + @@ -480,11 +414,11 @@ - + - + [r_inpTgtSca] @@ -513,11 +447,11 @@ - + - + [r_inpTgt] @@ -535,11 +469,11 @@ - + - + sfix16_En4 @@ -549,39 +483,6 @@ - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - @@ -594,11 +495,11 @@ - + - + [r_inpTgtScaRaw] @@ -616,11 +517,11 @@ - + - + sfix16_En4 @@ -632,43 +533,76 @@ - - - + + + - - + + - - + + - - [VqFinPrev] + + [r_inpTgtScaRaw] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + - + - - + + - + sfix16_En4 @@ -690,11 +624,11 @@ - + - + [r_inpTgt] @@ -712,11 +646,11 @@ - + - + sfix16_En4 @@ -726,225 +660,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - r_inpTgt - - - - - - - - z_ctrlModReq - - - - - - - - r_inpTgtScaFOC - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FOC_Control_Type - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - @@ -957,11 +672,11 @@ - + - + [z_ctrlMod] @@ -979,11 +694,11 @@ - + - + uint8 @@ -993,139 +708,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - r_inpTgt - - - - - - - - r_inpTgtScaDft - - - - - - - - else { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Default_Control_Type - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - @@ -1135,11 +720,11 @@ - + - + [z_ctrlMod] @@ -1158,59 +743,253 @@ - - - + + + - - + + - - + + - - 5 + + u1 + + + + + + + + if(u1 == CTRL_FOC) + + + + + + + + else - + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + r_inpTgtScaDft + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default_Control_Type + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + - - + + - - + + - - VqFinPrev - - - - - - - - - - - - - - - sfix16_En4 + + r_inpTgtSca @@ -1231,11 +1010,11 @@ - + - + [z_ctrlModReq] @@ -1254,59 +1033,29 @@ - - - + + + - - + + - - + + - - 2 + + [VqFinPrev] - - - - - - - - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 + + @@ -1317,75 +1066,44 @@ - - - + + + - - + + - - + + - - u1 - - - - - - - - if(u1 == OPEN_MODE) - - - - - - - - else + + [VqFinPrev] - - + + - - + + - - + + - - action - - - - - - - - - - - - - - - action + + sfix16_En4 @@ -1406,11 +1124,11 @@ - + - + 4 @@ -1428,11 +1146,11 @@ - + - + r_inpTgt @@ -1443,11 +1161,11 @@ - + - + sfix16_En4 @@ -1469,11 +1187,11 @@ - + - + [z_ctrlModReq] @@ -1491,11 +1209,11 @@ - + - + uint8 @@ -1507,29 +1225,120 @@ - - - + + + - - + + + + + + + + - - + + - - [r_inpTgtScaRaw] + + r_inpTgtScaRaw + + + + + + + + r_inpTgtScaDft + + + + + + + + else { } - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1540,59 +1349,65 @@ - - + + + + + + + + - + - + - - 1 + + 5 - + - - + + - - + + - - z_ctrlTypSel + + VqFinPrev - - + + - - + + - - uint8 + + sfix16_En4 @@ -1613,11 +1428,11 @@ - + - + 3 @@ -1635,11 +1450,11 @@ - + - + z_ctrlMod @@ -1650,11 +1465,342 @@ - + - + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgtScaFOC + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FOC_Control_Type + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + r_inpTgtScaOpen + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Open_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + uint8 @@ -1676,11 +1822,11 @@ - + - + [z_ctrlTypSel] @@ -1698,11 +1844,11 @@ - + - + uint8 @@ -1714,199 +1860,59 @@ - - - + + + - - + + - - + + - - u1 - - - - - - - - if(u1 == CTRL_FOC) - - - - - - - - else + + 1 - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - r_inpTgtScaRaw - - - - - - - - r_inpTgtScaDft - - - - - - - - else { } - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - Default_Mode - - - - - - - - - - - - - + + - + - - sfix16_En4 + + z_ctrlTypSel - - - - - - - - + + - + - - action + + uint8 @@ -1918,12 +1924,6 @@ - - - - - - @@ -2259,5 +2259,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json index a28465d..4a13ad7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json @@ -80,11 +80,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9974", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9975", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", + "name":"n_max", + "label":"n_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ @@ -98,7 +98,7 @@ "FramePeriod" ], "values":[ - "i_max", + "n_max", "on", "inf", "[]", @@ -129,11 +129,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9973", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9971", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", + "name":"Vd_max", + "label":"Vd_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ @@ -147,12 +147,12 @@ "FramePeriod" ], "values":[ - "0", + "Vd_max", "on", "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(1,16,4)", "off", "inf" ], @@ -177,108 +177,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9972", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "1000", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9970", - "className":"Simulink.Selector", - "icon":"WebViewIcon3", - "name":"Selector", - "label":"Selector", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "IndexMode", - "IndexOptionArray", - "IndexOptions", - "IndexParamArray", - "Indices", - "InputPortWidth", - "NumberOfDimensions", - "OutputSizeArray", - "OutputSizes", - "SampleTime" - ], - "values":[ - "Zero-based", - [ - "Index vector (port)" - ], - "Index vector (port)", - [ - "[1 3]" - ], - "[1 3]", - "4", - "1", - [ - "1" - ], - "1", - "-1" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Selector", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9969", "className":"Simulink.Mux", @@ -343,39 +241,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9967", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlModReq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9966", "className":"Simulink.Goto", @@ -409,6 +274,107 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9970", + "className":"Simulink.Selector", + "icon":"WebViewIcon3", + "name":"Selector", + "label":"Selector", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "NumberOfDimensions", + "IndexMode", + "IndexOptionArray", + "IndexParamArray", + "OutputSizeArray", + "InputPortWidth", + "SampleTime", + "IndexOptions", + "NumberOfDimensions", + "IndexMode", + "IndexOptionArray", + "IndexParamArray", + "OutputSizeArray", + "InputPortWidth", + "SampleTime", + "IndexOptions", + "NumberOfDimensions", + "IndexMode", + "IndexOptionArray", + "IndexParamArray", + "OutputSizeArray", + "InputPortWidth", + "SampleTime", + "IndexOptions", + "Indices", + "OutputSizes" + ], + "values":[ + "1", + "Zero-based", + [ + "Index vector (port)" + ], + [ + "[1 3]" + ], + [ + "1" + ], + "4", + "-1", + "Index vector (port)", + "1", + "Zero-based", + [ + "Index vector (port)" + ], + [ + "[1 3]" + ], + [ + "1" + ], + "4", + "-1", + "Index vector (port)", + "1", + "Zero-based", + [ + "Index vector (port)" + ], + [ + "[1 3]" + ], + [ + "1" + ], + "4", + "-1", + "Index vector (port)", + "[1 3]", + "1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 24 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Selector", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9965", "className":"Simulink.From", @@ -441,11 +407,75 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9975", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9964", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9967", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9973", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", + "name":"constant1", + "label":"constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ @@ -459,12 +489,12 @@ "FramePeriod" ], "values":[ - "n_max", + "0", "on", "inf", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -489,37 +519,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9963", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaFOC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9962", "className":"Simulink.Product", @@ -578,11 +577,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9964", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9963", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ @@ -590,7 +589,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "r_inpTgtScaFOC", "Tag" ], "tabs":[ @@ -608,143 +607,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9971", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "Vd_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9961", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9960", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9959", "className":"Simulink.Inport", @@ -812,6 +674,112 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9961", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9974", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"i_max", + "label":"i_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "i_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9958", "className":"Simulink.Inport", @@ -879,6 +847,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9960", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9972", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant", + "label":"constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "1000", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9958#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.svg index 16e780d..a9442c9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.svg @@ -59,432 +59,6 @@ - - - - - - - - - - - - - - - - - - i_max - - - - - - - - - - - - - - - - - - - - - - i_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1000 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - U - - - - - - - - Idx1 - - - - - - - - 0 - - - - - - - - Y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaFOC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -497,11 +71,11 @@ - + - + n_max @@ -519,11 +93,11 @@ - + - + n_max @@ -534,180 +108,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaFOC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -729,11 +134,11 @@ - + - + Vd_max @@ -751,11 +156,11 @@ - + - + Vd_max @@ -766,11 +171,11 @@ - + - + sfix16_En4 @@ -782,51 +187,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + - - + + - + - - + + - + sfix16_En4 @@ -838,44 +235,432 @@ - - - + + + - - + + - - + + - - if { } + + [r_inpTgt] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - Action Port + + [r_inpTgtScaFOC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + U + + + + + + + + Idx1 + + + + + + + + 0 + + + + + + + + Y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaFOC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -896,11 +681,11 @@ - + - + 2 @@ -918,11 +703,11 @@ - + - + z_ctrlModReq @@ -933,11 +718,11 @@ - + - + uint8 @@ -947,6 +732,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + i_max + + + + + + + + + + + + + + + + + + + + + + i_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -959,11 +863,11 @@ - + - + 1 @@ -981,11 +885,11 @@ - + - + r_inpTgt @@ -996,11 +900,107 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 1000 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1208,5 +1208,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json index 66adcc6..20ed587 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json @@ -79,6 +79,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9990", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9988", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9989", "className":"Simulink.Inport", @@ -146,37 +177,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9990", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9988", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9989#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.svg index 899c297..a3e198b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.svg @@ -59,69 +59,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgt - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -134,11 +71,11 @@ - + - + else { } @@ -156,11 +93,11 @@ - + - + Action Port @@ -170,6 +107,69 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -186,5 +186,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json index 933cd1a..e6c3816 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json @@ -27,8 +27,7 @@ 83, 89, 90, - 91, - 92 + 91 ], "name":"BLDC_controller", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller", @@ -42,119 +41,119 @@ ":9308", ":9307", ":10192", - ":9306", - ":9305", - ":9304", ":9303", - ":9302", - ":9300", - ":9298", + ":9304", + ":9299", + ":10064", ":9297", - ":10164", + ":9441", + ":10751", + ":10749", ":10156", - ":9293", - ":10258", - ":9281", - ":9280", - ":9279", - ":9285", + ":9292", + ":10139", + ":9290", + ":9282", + ":9289", + ":9287", + ":9286", ":9283", ":9272", - ":10187", - ":9277", - ":9276", - ":9290", ":9275", - ":9456", - ":10139", - ":9287", - ":9437", - ":9271", - ":11017", - ":9292", - ":10159", - ":9263", - ":10692", - ":10355", - ":9291", - ":9268", - ":9266", ":9274", - ":9258", - ":9259", + ":9456", + ":9252", + ":9278", + ":9250", + ":10189", + ":11019", + ":9418", + ":9276", + ":10692", + ":9262", + ":10355", + ":10259", + ":9268", + ":9934", + ":9266", + ":9271", + ":9300", + ":9260", + ":9930", + ":9261", + ":10188", ":10161", ":10160", ":10027", - ":9284", - ":10026", - ":9288", - ":10188", - ":10025", + ":9285", ":9935", - ":10257", - ":9931", - ":10259", - ":9720", - ":9242", - ":9240", - ":9265", - ":10191", - ":9262", - ":9289", - ":10155", - ":9198", - ":9264", - ":9261", - ":10751", - ":9267", ":9436", - ":9260", - ":9278", - ":9448", - ":9930", - ":9251", - ":8469", - ":9253", - ":9418", - ":10189", - ":8535", - ":9241", - ":10066", - ":10065", - ":10356", - ":9299", - ":9269", - ":8210", - ":10154", - ":8658", - ":9441", - ":9245", - ":8207", - ":8205", - ":8206", - ":8217", - ":10064", - ":8214", - ":10749", - ":8220", - ":9282", - ":8208", - ":8204", - ":9270", - ":8215", - ":9301", - ":8203", - ":8209", - ":9934", ":9249", - ":9244", - ":9252", - ":8202", - ":9250", - ":8201", - ":9286", + ":9448", + ":9258", + ":9245", + ":9720", + ":9277", + ":9240", + ":10191", ":9248", + ":9437", + ":10025", + ":9291", + ":9263", + ":8658", + ":9241", + ":10257", + ":10155", + ":9280", + ":9281", + ":10066", + ":10159", + ":8469", + ":9279", + ":9298", + ":9198", + ":9305", + ":10356", + ":9267", + ":8220", + ":8217", + ":8535", + ":8210", + ":9269", + ":10258", + ":8214", + ":9306", + ":8208", + ":9244", + ":9288", + ":8207", + ":9931", ":10158", + ":8206", + ":9242", + ":9293", + ":9251", + ":9253", + ":9264", + ":8205", + ":9284", + ":10065", + ":10164", + ":9265", + ":8202", + ":10154", + ":9302", + ":9301", + ":9270", + ":8203", + ":8215", + ":8204", + ":10026", + ":8209", + ":10187", + ":9259", + ":8201", ":10255", ":10157", ":9268#out:1", @@ -249,7 +248,8 @@ ":8207#out:1", ":10749#out:1", ":10751#out:1", - ":8208#out:1" + ":8208#out:1", + ":11019#out:1" ], "sameAsElement":true }, @@ -301,34 +301,34 @@ ":8464", ":8426", ":8428", - ":8468", ":9433", ":8467", - ":8466", - ":8461", - ":8460", - ":8458", + ":8462", + ":8457", ":9432", ":8451", + ":8450", ":8449", ":8446", + ":8461", + ":9933", + ":8463", + ":8458", + ":9932", ":9431", ":8437", + ":8436", ":8435", - ":8434", - ":8463", ":8431", ":8430", ":8429", - ":8457", - ":8462", - ":8384", + ":8466", ":8427", + ":8460", ":8432", - ":8450", - ":8436", - ":9932", - ":9933", + ":8434", + ":8384", + ":8468", ":8462#out:1", ":8440#out:1", ":8439#out:1", @@ -469,9 +469,9 @@ ":8251", ":8252", ":8262", + ":8260", ":8259", ":8249", - ":8260", ":8259#out:1", ":8255#out:1", ":8253#out:1", @@ -521,56 +521,56 @@ ":8266", ":8296", ":9430", - ":8378", - ":8377", + ":8376", ":8374", - ":8371", - ":8370", - ":8369", - ":9428", - ":8366", - ":8313", - ":8312", ":9429", - ":8311", + ":8372", + ":8377", + ":8370", ":8308", + ":8306", ":9427", - ":8305", - ":8303", - ":8301", + ":8300", + ":8299", ":8298", + ":8297", + ":8314", + ":8369", + ":9425", + ":8303", + ":8289", + ":8286", + ":9477", + ":8371", + ":8281", + ":8284", + ":8280", + ":8373", + ":8276", + ":8275", + ":8379", + ":8278", + ":8270", + ":8312", + ":8291", + ":8268", + ":8283", + ":8282", + ":8277", + ":9428", ":8294", ":8293", - ":8291", - ":9425", - ":8289", - ":8285", - ":8297", - ":8284", - ":8299", - ":8306", - ":8278", - ":8280", - ":8277", - ":8300", - ":8372", - ":8282", - ":8283", - ":8270", - ":8379", - ":8268", - ":8292", - ":9426", + ":8313", ":8267", - ":8275", - ":8314", - ":8276", - ":8373", - ":9477", - ":8281", - ":8376", + ":8301", + ":8305", + ":8292", ":8272", - ":8286", + ":8366", + ":9426", + ":8378", + ":8285", + ":8311", ":8310", ":8309", ":8293#out:1", @@ -640,12 +640,12 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.json", "elements":[ - ":8272:2418", ":8272:2515", ":8272:2416", ":8272:2415", ":8272:2414", ":8272:2413", + ":8272:2418", ":8272:2412", ":8272:2515#out:1", ":8272:2415#out:1", @@ -705,49 +705,49 @@ ":8363", ":8364", ":8365", - ":8358", - ":8355", - ":8354", - ":8352", - ":8357", - ":8351", - ":8360", - ":8348", - ":8349", - ":8346", ":8359", - ":8350", - ":8356", + ":8357", + ":8354", + ":8353", + ":8351", + ":8349", + ":8352", + ":8348", + ":8347", + ":8345", ":8344", + ":8358", + ":8341", ":8340", - ":8337", - ":8336", + ":8356", ":8339", - ":8332", + ":8338", + ":8335", ":8333", + ":8332", + ":8331", + ":8350", ":8330", ":8329", - ":8335", - ":8323", - ":8324", ":8328", - ":8327", - ":8342", - ":8319", ":8326", + ":8355", ":8325", - ":8321", - ":8318", - ":8341", - ":8345", - ":8331", + ":8327", + ":8324", + ":8346", ":8322", - ":8347", - ":8317", - ":8338", + ":8360", + ":8321", ":8320", - ":8353", + ":8319", + ":8317", + ":8318", + ":8336", + ":8323", ":8316", + ":8342", + ":8337", ":8334", ":8315", ":8343", @@ -826,27 +826,27 @@ ":8416", ":8391", ":8420", - ":8417", - ":9660", - ":8411", - ":8410", - ":8412", - ":8404", - ":8400", ":8418", - ":8398", - ":8395", - ":8393", + ":8417", ":9664", - ":9665", - ":8389", - ":8396", - ":8405", + ":9660", + ":8404", ":8403", + ":8412", + ":8405", + ":8398", ":8394", - ":8392", - ":8421", + ":8400", + ":8393", + ":8395", + ":8411", + ":9665", ":8397", + ":8410", + ":8421", + ":8392", + ":8396", + ":8389", ":8385#out:1", ":8386#out:1", ":8399#out:1", @@ -909,49 +909,52 @@ ":8526", ":8499", ":8497", - ":8525", + ":8527", ":8524", - ":8520", - ":8517", ":9405", - ":9398", - ":8510", - ":8508", - ":9406", - ":8504", ":8521", + ":8517", + ":9398", + ":8515", ":8514", + ":8510", + ":8509", + ":8508", + ":11021", + ":8504", + ":9395", ":9397", ":8503", - ":8500", - ":8515", ":9404", - ":8491", - ":9395", - ":9407", - ":8509", - ":8519", - ":9400", - ":8483", - ":8493", - ":8482", - ":8527", - ":9412", - ":8480", - ":8484", + ":11022", ":8494", - ":8479", - ":8478", - ":8487", - ":9408", - ":8474", - ":8486", - ":9402", - ":9403", - ":9394", - ":9410", - ":9396", + ":8491", ":8492", + ":9406", + ":9402", + ":8486", + ":8483", + ":8482", + ":9412", + ":8487", + ":8500", + ":9407", + ":8480", + ":9400", + ":8525", + ":9403", + ":8519", + ":8474", + ":8484", + ":9410", + ":9408", + ":9394", + ":8493", + ":9396", + ":8479", + ":11020", + ":8478", + ":8520", ":9401", ":8497#out:1", ":8470#out:1", @@ -979,18 +982,20 @@ ":8521#out:1", ":9394#out:1", ":9396#out:1", - ":9400#out:1", ":9402#out:1", ":9403#out:1", ":9405#out:1", - ":9404#out:1", ":8517#out:1", ":9407#out:1", ":9408#out:1", ":9410#out:1", ":9412#out:1", ":9401#out:1", - ":9398#out:1" + ":9398#out:1", + ":11020#out:1", + ":9404#out:1", + ":11022#out:1", + ":9400#out:1" ], "sameAsElement":true }, @@ -1016,37 +1021,37 @@ ":8486:2496", ":8486:2507", ":8486:2509", - ":8486:2473", - ":8486:2465", - ":8486:2464", - ":8486:2466", - ":8486:2462", - ":8486:2460", - ":8486:2467", - ":8486:2458", - ":8486:2457", ":8486:2472", + ":8486:2467", + ":8486:2466", + ":8486:2465", + ":8486:2461", + ":8486:2457", + ":8486:2456", ":8486:2455", + ":8486:2454", ":8486:2453", ":8486:2452", - ":8486:2451", - ":8486:2456", + ":8486:2462", ":8486:2450", - ":8486:2454", - ":8486:2461", - ":8486:2448", - ":8486:2428", - ":8486:2459", - ":8486:2423", ":8486:2449", + ":8486:2473", + ":8486:2459", + ":8486:2448", + ":8486:2464", + ":8486:2458", + ":8486:2423", + ":8486:2428", + ":8486:2463", ":8486:2422", ":8486:2421", + ":8486:2451", ":8486:2420", - ":8486:2463", + ":8486:2460", + ":8486:2471", ":8486:2468", ":8486:2470", ":8486:2469", - ":8486:2471", ":8486:2507#out:1", ":8486:2422#out:1", ":8486:2421#out:1", @@ -1095,9 +1100,9 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2423_d.json", "elements":[ ":8486:2427", + ":8486:2426", ":8486:2425", ":8486:2424", - ":8486:2426", ":8486:2424#out:1" ], "sameAsElement":true @@ -1118,25 +1123,25 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.json", "elements":[ + ":8486:2447", ":8486:2445", ":8486:2444", ":8486:2441", ":8486:2440", - ":8486:2439", + ":8486:2438", ":8486:2437", ":8486:2436", - ":8486:2443", - ":8486:2447", - ":8486:2435", - ":8486:2432", ":8486:2434", - ":8486:2433", - ":8486:2438", ":8486:2442", - ":8486:2446", + ":8486:2433", + ":8486:2432", ":8486:2431", + ":8486:2439", + ":8486:2443", ":8486:2430", + ":8486:2435", ":8486:2429", + ":8486:2446", ":8486:2438#out:1", ":8486:2429#out:1", ":8486:2430#out:1", @@ -1170,12 +1175,12 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.json", "elements":[ ":8486:2435:2418", - ":8486:2435:2416", - ":8486:2435:2414", ":8486:2435:2515", + ":8486:2435:2416", ":8486:2435:2415", - ":8486:2435:2413", + ":8486:2435:2414", ":8486:2435:2412", + ":8486:2435:2413", ":8486:2435:2515#out:1", ":8486:2435:2415#out:1", ":8486:2435:2413#out:1", @@ -1230,25 +1235,25 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json", "elements":[ - ":8486:2492", ":8486:2491", + ":8486:2490", ":8486:2489", ":8486:2487", - ":8486:2485", + ":8486:2486", ":8486:2484", ":8486:2483", - ":8486:2490", - ":8486:2481", - ":8486:2479", ":8486:2482", - ":8486:2477", - ":8486:2478", - ":8486:2476", + ":8486:2492", ":8486:2480", ":8486:2488", - ":8486:2475", + ":8486:2479", + ":8486:2485", + ":8486:2476", + ":8486:2477", + ":8486:2478", + ":8486:2481", ":8486:2474", - ":8486:2486", + ":8486:2475", ":8486:2480#out:1", ":8486:2491#out:1", ":8486:2481#out:1", @@ -1285,8 +1290,8 @@ ":8486:2480:2515", ":8486:2480:2416", ":8486:2480:2415", - ":8486:2480:2413", ":8486:2480:2414", + ":8486:2480:2413", ":8486:2480:2412", ":8486:2480:2515#out:1", ":8486:2480:2415#out:1", @@ -1397,47 +1402,47 @@ ":8655", ":8634", ":10029", + ":8654", ":10024", - ":8647", - ":8646", - ":8643", + ":8645", + ":8651", + ":10019", + ":9423", + ":8640", + ":8639", ":10020", ":10017", - ":8636", - ":8633", - ":10028", - ":9996", - ":8650", - ":9995", - ":10023", - ":8639", - ":9994", - ":8628", - ":8640", - ":9424", ":8635", - ":8645", - ":8624", - ":8625", - ":9423", - ":8603", - ":9953", - ":8546", - ":10256", - ":10018", - ":9997", - ":10022", - ":8651", - ":10021", - ":10019", - ":8630", - ":8537", - ":8654", - ":9422", - ":8536", - ":8642", - ":8539", ":8632", + ":8643", + ":10028", + ":9995", + ":8630", + ":8628", + ":8625", + ":8624", + ":9953", + ":8646", + ":8603", + ":9424", + ":8546", + ":8642", + ":10022", + ":10018", + ":10023", + ":8539", + ":10256", + ":8647", + ":10021", + ":8537", + ":8650", + ":8633", + ":9994", + ":9422", + ":9997", + ":8536", + ":9996", + ":8636", ":8634#out:1", ":8537#out:1", ":8625#out:1", @@ -1488,58 +1493,58 @@ "elements":[ ":8601", ":8602", + ":8600", ":8599", ":8597", - ":8594", - ":8591", - ":8589", - ":8587", - ":8590", + ":8593", + ":8592", ":8586", - ":8585", + ":8584", ":8583", ":8581", - ":8595", - ":8584", - ":8593", - ":8598", ":8580", - ":8572", - ":9421", + ":8589", + ":8595", + ":8590", + ":8573", + ":8571", ":8568", + ":8572", + ":8566", + ":8585", + ":8565", + ":8564", + ":8594", ":8563", ":9419", + ":8561", ":8559", - ":8570", - ":8582", + ":8558", + ":8598", ":8556", ":8555", ":8554", - ":8553", - ":8551", ":8552", - ":8549", - ":8560", - ":8564", - ":8592", - ":8548", - ":8573", - ":8561", - ":9420", - ":8571", - ":8562", + ":8591", + ":8570", ":8569", - ":8600", + ":8548", + ":8560", + ":9420", + ":8549", + ":8551", + ":8553", ":8547", - ":8558", - ":8566", - ":8565", + ":8562", + ":9421", + ":8587", + ":8582", + ":8579", + ":8578", + ":8576", ":8575", ":8574", - ":8576", ":8577", - ":8578", - ":8579", ":8587#out:1", ":8593#out:1", ":8594#out:1", @@ -1598,19 +1603,19 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json", "elements":[ ":8603:3", - ":8603:6", ":8603:28", + ":8603:6", ":8603:4", - ":8603:12", - ":8603:31", - ":8603:32", - ":8603:9", - ":8603:33", ":8603:30", + ":8603:9", + ":8603:31", + ":8603:12", + ":8603:33", + ":8603:32", ":8603:1", - ":8603:2", ":8603:13", - ":8603:14" + ":8603:14", + ":8603:2" ], "sameAsElement":false }, @@ -1636,35 +1641,35 @@ ":9993", ":10003", ":10449", - ":9937", - ":10013", ":9987", + ":10002", + ":10013", ":9985", - ":9992", + ":9983", ":10014", ":9980", - ":9983", ":10015", - ":10005", - ":9977", - ":9957", + ":9984", ":9978", - ":10004", + ":9977", ":10000", - ":9988", ":9999", - ":10016", + ":9986", + ":9988", + ":9992", ":9982", - ":9955", - ":10002", + ":10004", + ":10005", ":9956", ":9981", - ":9984", - ":9954", - ":9998", - ":9979", - ":9986", ":10007", + ":10016", + ":9998", + ":9957", + ":9937", + ":9955", + ":9979", + ":9954", ":9957#out:1", ":9980#out:1", ":9978#out:1", @@ -1708,8 +1713,8 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json", "elements":[ ":9991", - ":9989", ":9990", + ":9989", ":9989#out:1" ], "sameAsElement":true @@ -1729,9 +1734,9 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json", "elements":[ + ":10009", ":10012", ":10008", - ":10009", ":10008#out:1" ], "sameAsElement":true @@ -1752,24 +1757,24 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json", "elements":[ ":9976", - ":9974", - ":9973", - ":9972", - ":9970", + ":9975", + ":9971", ":9969", ":9968", - ":9967", ":9966", + ":9970", ":9965", - ":9975", - ":9963", - ":9962", ":9964", - ":9971", - ":9961", - ":9960", + ":9967", + ":9973", + ":9962", + ":9963", ":9959", + ":9961", + ":9974", ":9958", + ":9960", + ":9972", ":9958#out:1", ":9963#out:1", ":9959#out:1", @@ -1806,16 +1811,16 @@ "elements":[ ":9952", ":9951", - ":9950", ":9949", + ":9950", + ":9948", + ":9944", + ":9942", + ":9945", ":9947", ":10006", - ":9948", - ":9945", - ":9944", ":9941", ":9943", - ":9942", ":9940", ":9939", ":9938", @@ -1850,16 +1855,16 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json", "elements":[ ":9948:2353", - ":9948:2360", - ":9948:2346", - ":9948:2342", - ":9948:2357", - ":9948:2356", - ":9948:2358", - ":9948:2395", ":9948:2343", - ":9948:2359", + ":9948:2346", + ":9948:2395", + ":9948:2358", + ":9948:2356", + ":9948:2357", ":9948:2355", + ":9948:2360", + ":9948:2359", + ":9948:2342", ":9948:2356#out:1", ":9948:2342#out:1", ":9948:2359#out:1", @@ -1981,41 +1986,41 @@ ":10523", ":10522", ":10521", - ":10513", + ":10520", ":10518", - ":10512", + ":10516", ":10514", - ":10511", ":10510", ":10509", ":10508", ":10507", - ":10503", + ":10515", ":10504", + ":10503", ":10502", - ":10506", + ":10501", ":10500", - ":10498", + ":10519", + ":10513", + ":10497", + ":10511", ":10495", ":10494", - ":10492", + ":10499", ":10493", - ":10505", + ":10517", + ":10506", ":10491", - ":10501", + ":10498", + ":10512", + ":10490", + ":10496", ":10489", ":10488", - ":10497", - ":10519", - ":10499", - ":10520", - ":10496", - ":10490", + ":10505", + ":10492", ":10487", - ":10516", - ":10517", ":10486", - ":10515", ":10514#out:1", ":10500#out:1", ":10513#out:1", @@ -2156,125 +2161,125 @@ ":9071", ":9025", ":9197", - ":9196", ":9195", - ":10173", + ":10447", ":8743", - ":9073", - ":9028", - ":9027", ":9026", + ":9023", ":8913", ":10363", - ":10365", - ":9045", + ":9713", ":8863", - ":8862", - ":8861", + ":9027", + ":8858", ":8857", ":8856", - ":8849", + ":9717", + ":8861", + ":8851", + ":8848", ":8845", - ":8844", + ":9028", + ":8843", + ":8842", ":10703", - ":10171", + ":8837", ":8839", - ":8838", - ":10728", - ":10448", - ":10395", - ":10172", - ":10394", + ":10686", ":8826", - ":9023", - ":10428", - ":10438", + ":10719", + ":9045", + ":8825", + ":10439", + ":9073", ":8817", ":10441", - ":8815", - ":8850", ":10440", - ":10434", - ":10359", - ":8843", ":10433", - ":8810", - ":10432", - ":10431", - ":8842", - ":8807", + ":8811", ":10362", - ":8864", ":10743", + ":10729", ":8806", ":10726", - ":8797", - ":8796", - ":8790", - ":8825", - ":8787", - ":8786", - ":10688", - ":8784", - ":8848", - ":8853", - ":8783", - ":8781", - ":8851", - ":10446", - ":9718", - ":8776", - ":10436", - ":10447", - ":8795", - ":10430", - ":10429", - ":8775", - ":8768", - ":10697", - ":9717", - ":9072", - ":10687", - ":10393", - ":8837", - ":9713", - ":10445", - ":10364", - ":10719", + ":10395", ":8798", - ":8858", + ":10707", + ":8810", + ":8807", + ":10698", + ":8797", + ":10697", + ":8850", + ":10688", + ":8796", + ":10448", + ":8784", + ":10394", + ":8783", + ":8782", + ":9072", + ":10446", + ":8815", + ":9718", + ":10171", + ":10432", + ":8776", + ":8775", + ":8862", + ":10436", + ":10172", ":8772", - ":8668", - ":10360", + ":10429", + ":8864", + ":8768", + ":10393", + ":8787", + ":10428", + ":10434", + ":8790", + ":8726", + ":10687", + ":8844", + ":10173", + ":10689", + ":10435", ":10702", ":8667", - ":10689", - ":8811", - ":8788", - ":10686", - ":8794", - ":8662", - ":10729", - ":9716", + ":8668", + ":8795", ":8664", - ":10437", - ":10358", - ":10691", ":8663", - ":10701", + ":10445", + ":10364", + ":8794", + ":10691", ":10174", - ":8782", - ":8661", - ":10444", - ":10439", - ":8659", - ":8660", + ":10359", + ":8786", + ":10430", + ":8781", + ":10728", + ":10358", ":8846", - ":10707", - ":10698", - ":8726", - ":10435", ":10357", + ":8849", + ":8788", + ":10365", + ":8838", + ":8661", + ":10360", + ":10444", + ":8853", + ":8662", + ":8660", + ":10437", + ":10701", + ":10431", + ":8659", + ":9196", + ":9716", + ":10438", ":8827#out:1", ":8886#out:1", ":8886#out:2", @@ -2402,34 +2407,34 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json", "elements":[ + ":8725", ":8723", ":8722", - ":8721", - ":8719", - ":8716", - ":8715", - ":8713", - ":8711", - ":8709", - ":8724", - ":8704", - ":8705", - ":8710", ":8720", - ":8706", - ":8686", - ":8725", - ":8707", - ":8703", - ":8718", + ":8719", ":8717", - ":8671", - ":8708", - ":8702", - ":8670", + ":8716", ":8714", - ":8669", + ":8713", ":8712", + ":8710", + ":8718", + ":8724", + ":8721", + ":8705", + ":8709", + ":8704", + ":8708", + ":8706", + ":8711", + ":8702", + ":8715", + ":8703", + ":8671", + ":8670", + ":8707", + ":8669", + ":8686", ":8686#out:1", ":8705#out:1", ":8704#out:1", @@ -2470,19 +2475,19 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.json", "elements":[ ":8685", - ":8684", ":8682", + ":8681", + ":8684", ":8680", - ":8679", ":8683", - ":8675", + ":8676", ":8674", ":8678", ":8673", ":8677", - ":8681", + ":8679", ":8672", - ":8676", + ":8675", ":8673#out:1", ":8672#out:1", ":8675#out:1", @@ -2510,20 +2515,20 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.json", "elements":[ ":8701", - ":8700", ":8696", - ":8693", - ":8698", + ":8694", ":8699", - ":8691", + ":8690", ":8695", ":8689", - ":8697", + ":8700", ":8688", - ":8694", - ":8692", ":8687", - ":8690", + ":8698", + ":8692", + ":8693", + ":8697", + ":8691", ":8691#out:1", ":8690#out:1", ":8693#out:1", @@ -2552,23 +2557,23 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json", "elements":[ - ":8741", ":8740", - ":8739", - ":8737", - ":8736", - ":8734", - ":8732", + ":8741", ":8742", ":8738", - ":8733", - ":8729", - ":9714", - ":8730", - ":8728", + ":8737", + ":8739", + ":8736", ":8735", - ":8727", ":8731", + ":8732", + ":8734", + ":8729", + ":8728", + ":8733", + ":8727", + ":8730", + ":9714", ":8739#out:1", ":8729#out:2", ":8740#out:1", @@ -2599,13 +2604,13 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json", "elements":[ ":8738:2904", - ":8738:2903", ":8738:2902", ":8738:2901", + ":8738:2903", ":8738:2900", - ":8738:2899", ":8738:2898", ":8738:2897", + ":8738:2899", ":8738:2898#out:1", ":8738:2900#out:1", ":8738:2897#out:1", @@ -2636,96 +2641,96 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json", "elements":[ - ":10370", - ":9171", - ":9109", - ":9108", + ":9143", ":9074", + ":9029", ":8912", + ":9715", + ":10425", ":10391", + ":9108", + ":10424", ":10420", ":10419", - ":10388", + ":10418", ":10413", ":10387", - ":10735", - ":9143", - ":10412", - ":10424", - ":10410", - ":10409", - ":10723", - ":10722", - ":10425", - ":8834", - ":8830", - ":9715", - ":10030", - ":8816", - ":10367", - ":8814", - ":8813", - ":9029", - ":8812", - ":8831", ":8841", - ":8803", - ":8802", - ":10730", - ":8799", - ":8793", - ":8804", - ":8791", - ":8824", - ":10724", - ":10418", - ":8779", - ":8809", - ":8852", + ":10412", ":10411", - ":8771", - ":8808", - ":8766", - ":10417", - ":8780", - ":8774", - ":10720", - ":10422", - ":10742", - ":10406", - ":10366", - ":8801", - ":10398", - ":10421", - ":8832", - ":10415", - ":8823", + ":10722", + ":8834", ":10368", - ":10416", - ":10404", - ":10407", - ":10369", - ":10403", + ":10408", + ":10030", + ":8830", + ":8824", + ":8823", + ":8813", + ":8812", + ":10742", + ":8852", + ":8816", + ":8801", + ":10730", + ":8804", + ":8793", + ":10388", + ":10410", + ":8792", + ":10370", + ":8791", + ":10724", + ":9171", + ":8780", + ":10723", + ":10421", + ":8777", + ":8774", + ":10409", ":8789", + ":8771", + ":8770", + ":10367", + ":8765", + ":10366", + ":10416", + ":8832", + ":10423", + ":8800", + ":10415", + ":10407", + ":8809", + ":8802", + ":10720", ":8773", ":10397", - ":10426", - ":10423", - ":8792", - ":10734", - ":8770", - ":10372", - ":8765", - ":8800", - ":10373", - ":10408", - ":10427", + ":9109", + ":8779", + ":8799", + ":10403", + ":8814", + ":8808", + ":10422", + ":10369", + ":10404", ":10402", - ":8777", ":10721", - ":10371", + ":10398", + ":10426", + ":10406", + ":8831", + ":8803", + ":10427", + ":10372", ":10405", + ":10417", + ":10371", + ":10734", + ":8766", + ":10735", ":10414", + ":10373", ":8766#out:1", ":8770#out:1", ":8779#out:1", @@ -2809,8 +2814,8 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json", "elements":[ ":9044", - ":9031", ":9043", + ":9031", ":9030", ":9030#out:1" ], @@ -2834,25 +2839,25 @@ "elements":[ ":9709", ":9106", - ":10455", - ":9095", + ":9105", ":9104", - ":9093", + ":10455", ":9094", ":9092", - ":9089", - ":9090", ":9091", + ":9093", + ":9095", ":9088", ":9087", ":10714", + ":9089", ":9101", - ":9081", ":9077", - ":9105", - ":9082", ":9078", ":9076", + ":9090", + ":9081", + ":9082", ":9075", ":9087#out:1", ":9075#out:1", @@ -2890,28 +2895,28 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json", "elements":[ ":10455:2785", - ":10455:2783", - ":10455:2781", + ":10455:2817", ":10455:2791", ":10455:2779", - ":10455:2794", ":10455:2795", - ":10455:2845", - ":10455:2814", - ":10455:2773", - ":10455:2816", - ":10455:2732", - ":10455:2771", - ":10455:2846", - ":10455:2778", + ":10455:2832", ":10455:2776", ":10455:2833", ":10455:2815", + ":10455:2778", + ":10455:2816", + ":10455:2781", + ":10455:2845", + ":10455:2773", ":10455:2733", + ":10455:2732", + ":10455:2846", + ":10455:2771", + ":10455:2783", ":10455:2770", - ":10455:2832", + ":10455:2814", ":10455:2769", - ":10455:2817", + ":10455:2794", ":10455:2844", ":10455:2791#out:2", ":10455:2846#out:1", @@ -2957,11 +2962,11 @@ ":10455:2818", ":10455:2831", ":10455:2839", - ":10455:2840", - ":10455:2836", ":10455:2837", ":10455:2843", + ":10455:2836", ":10455:2841", + ":10455:2840", ":10455:2838", ":10455:2843#out:1", ":10455:2838#out:1", @@ -2990,11 +2995,11 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json", "elements":[ - ":10455:2789", ":10455:2790", - ":10455:2788", + ":10455:2789", ":10455:2787", ":10455:2786", + ":10455:2788", ":10455:2787#out:1", ":10455:2789#out:1", ":10455:2788#out:1", @@ -3017,14 +3022,14 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json", "elements":[ - ":10455:2791:2709", ":10455:2791:2707", - ":10455:2791:2710", ":10455:2791:2849", + ":10455:2791:2710", ":10455:2791:2848", ":10455:2791:2701", - ":10455:2791:2700", ":10455:2791:2377", + ":10455:2791:2700", + ":10455:2791:2709", ":10455:2791:2699", ":10455:2791:2704", ":10455:2791:2849#out:1", @@ -3054,42 +3059,42 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json", "elements":[ - ":10828", - ":10842", - ":10844", - ":9129", - ":9128", - ":9130", - ":9127", - ":10834", - ":9125", - ":10841", ":9141", - ":10843", - ":10819", - ":10836", - ":10820", - ":10823", - ":10846", - ":9126", - ":10845", - ":10822", - ":9117", + ":10834", ":9139", ":9138", - ":10838", - ":9113", - ":10821", - ":9112", - ":10840", - ":9116", - ":9111", ":10831", - ":9114", - ":9110", + ":10842", ":10829", - ":9115", ":9131", + ":10841", + ":9128", + ":9127", + ":9125", + ":10819", + ":9126", + ":10820", + ":10846", + ":10828", + ":10838", + ":10844", + ":10821", + ":10845", + ":10836", + ":9116", + ":10822", + ":9129", + ":9115", + ":9114", + ":9113", + ":10843", + ":9117", + ":9111", + ":9130", + ":10840", + ":9110", + ":9112", + ":10823", ":9111#out:1", ":9110#out:1", ":9112#out:1", @@ -3138,27 +3143,27 @@ "elements":[ ":10828:2785", ":10828:2814", - ":10828:2781", + ":10828:2791", ":10828:2783", - ":10828:2779", + ":10828:2794", ":10828:2795", ":10828:2846", - ":10828:2832", - ":10828:2791", - ":10828:2817", - ":10828:2845", - ":10828:2776", - ":10828:2778", - ":10828:2815", ":10828:2833", + ":10828:2832", + ":10828:2778", + ":10828:2817", + ":10828:2816", + ":10828:2779", + ":10828:2776", + ":10828:2773", ":10828:2733", ":10828:2732", - ":10828:2773", - ":10828:2794", - ":10828:2816", + ":10828:2781", ":10828:2771", - ":10828:2770", ":10828:2769", + ":10828:2815", + ":10828:2770", + ":10828:2845", ":10828:2844", ":10828:2791#out:2", ":10828:2846#out:1", @@ -3203,12 +3208,12 @@ ":10828:2819", ":10828:2818", ":10828:2831", + ":10828:2839", ":10828:2837", + ":10828:2841", ":10828:2840", ":10828:2836", - ":10828:2839", ":10828:2843", - ":10828:2841", ":10828:2838", ":10828:2843#out:1", ":10828:2838#out:1", @@ -3237,9 +3242,9 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json", "elements":[ + ":10828:2788", ":10828:2789", ":10828:2790", - ":10828:2788", ":10828:2787", ":10828:2786", ":10828:2787#out:1", @@ -3264,16 +3269,16 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json", "elements":[ + ":10828:2791:2377", + ":10828:2791:2849", ":10828:2791:2710", ":10828:2791:2709", - ":10828:2791:2849", - ":10828:2791:2707", - ":10828:2791:2377", - ":10828:2791:2704", - ":10828:2791:2701", - ":10828:2791:2700", - ":10828:2791:2699", ":10828:2791:2848", + ":10828:2791:2704", + ":10828:2791:2700", + ":10828:2791:2707", + ":10828:2791:2701", + ":10828:2791:2699", ":10828:2791:2849#out:1", ":10828:2791:2701#out:1", ":10828:2791:2704#out:1", @@ -3337,31 +3342,31 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json", "elements":[ ":9165", - ":9726", - ":9170", - ":9725", - ":9164", - ":10454", - ":9160", - ":9723", - ":9155", - ":9159", - ":9152", - ":9149", - ":9157", ":9724", - ":9148", + ":9170", + ":9726", ":9161", - ":9722", - ":9147", - ":9156", - ":9151", - ":9146", + ":9160", + ":10454", + ":9723", + ":9164", ":9162", + ":9722", + ":9156", + ":9725", + ":9155", + ":9152", + ":9151", + ":9150", + ":9159", + ":9158", + ":9149", + ":9148", + ":9147", + ":9157", + ":9146", ":9145", ":9144", - ":9150", - ":9158", ":9152#out:1", ":9151#out:1", ":9144#out:1", @@ -3402,27 +3407,27 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json", "elements":[ ":10454:2817", - ":10454:2783", - ":10454:2791", + ":10454:2814", + ":10454:2781", + ":10454:2794", ":10454:2845", ":10454:2846", - ":10454:2794", + ":10454:2833", ":10454:2832", - ":10454:2795", - ":10454:2778", + ":10454:2791", ":10454:2779", ":10454:2776", - ":10454:2785", - ":10454:2733", - ":10454:2781", - ":10454:2814", ":10454:2816", + ":10454:2815", + ":10454:2733", + ":10454:2795", ":10454:2732", - ":10454:2833", + ":10454:2783", + ":10454:2785", ":10454:2773", + ":10454:2778", ":10454:2771", ":10454:2770", - ":10454:2815", ":10454:2769", ":10454:2844", ":10454:2791#out:2", @@ -3471,9 +3476,9 @@ ":10454:2839", ":10454:2837", ":10454:2841", - ":10454:2836", ":10454:2840", ":10454:2843", + ":10454:2836", ":10454:2838", ":10454:2843#out:1", ":10454:2838#out:1", @@ -3502,10 +3507,10 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json", "elements":[ - ":10454:2790", - ":10454:2788", ":10454:2789", ":10454:2787", + ":10454:2790", + ":10454:2788", ":10454:2786", ":10454:2787#out:1", ":10454:2789#out:1", @@ -3533,12 +3538,12 @@ ":10454:2791:2377", ":10454:2791:2709", ":10454:2791:2707", - ":10454:2791:2848", + ":10454:2791:2701", ":10454:2791:2704", + ":10454:2791:2849", ":10454:2791:2700", ":10454:2791:2699", - ":10454:2791:2849", - ":10454:2791:2701", + ":10454:2791:2848", ":10454:2791:2849#out:1", ":10454:2791:2701#out:1", ":10454:2791:2704#out:1", @@ -3600,31 +3605,31 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json", "elements":[ - ":10740", - ":10732", - ":9185", - ":10731", - ":9179", - ":10725", - ":9183", - ":9186", - ":10738", - ":9189", - ":10741", - ":9188", - ":9184", - ":9177", - ":9181", - ":9176", - ":10733", - ":9175", - ":9173", - ":9191", - ":10736", - ":9172", ":10737", + ":9189", + ":9186", ":9187", + ":10732", + ":9184", + ":9183", + ":10738", + ":9181", + ":9191", + ":9179", + ":10731", + ":9177", + ":9185", + ":10733", + ":10740", + ":10725", + ":9176", + ":9175", ":9174", + ":10741", + ":9173", + ":10736", + ":9188", + ":9172", ":9172#out:1", ":9181#out:1", ":9179#out:1", @@ -3700,17 +3705,17 @@ ":8868", ":8867", ":8881", - ":8880", ":8879", - ":8878", - ":8875", - ":8874", - ":8873", - ":8872", - ":8876", - ":8870", - ":8869", ":8877", + ":8876", + ":8875", + ":8872", + ":8870", + ":8880", + ":8878", + ":8873", + ":8869", + ":8874", ":8880#out:1", ":8879#out:1", ":8872#out:1", @@ -3749,24 +3754,24 @@ ":8909", ":8889", ":8890", - ":8908", ":8906", - ":8905", ":8904", + ":8905", + ":8902", ":8901", - ":8900", + ":8903", ":8899", ":8897", ":8895", - ":8893", - ":8902", - ":8898", - ":8892", ":8896", + ":8894", ":8907", ":8891", - ":8894", - ":8903", + ":8898", + ":8892", + ":8893", + ":8908", + ":8900", ":8889#out:1", ":8888#out:1", ":8887#out:1", @@ -3812,91 +3817,91 @@ ":9021", ":9022", ":9014", - ":10711", - ":9013", ":9010", + ":9008", ":9006", - ":9004", - ":9003", - ":8974", - ":8973", + ":9005", + ":8999", + ":8998", + ":9009", + ":9013", + ":8997", + ":10602", + ":10565", + ":10712", + ":9002", + ":8976", + ":8975", + ":8972", ":8971", ":10718", ":10713", - ":9008", - ":10705", - ":9007", - ":10584", + ":8970", ":10696", - ":10565", - ":10694", - ":8969", + ":8974", + ":9007", + ":8968", ":8963", + ":9012", ":8962", ":8961", - ":10712", - ":9017", + ":8959", ":8958", - ":8957", - ":8998", - ":8956", ":8955", - ":8975", ":8954", - ":8952", - ":8950", - ":10710", - ":10727", - ":10709", - ":8947", - ":10699", - ":10602", - ":10564", + ":9017", ":8953", - ":8999", - ":8970", - ":9009", + ":9004", + ":8957", + ":8952", + ":10584", + ":8951", + ":8950", + ":8947", + ":10705", + ":9003", ":10683", - ":10715", - ":9012", + ":10564", + ":10682", + ":10681", + ":10680", ":8946", - ":10685", + ":9011", + ":8944", ":8939", ":10816", - ":8944", - ":10682", - ":10684", - ":8959", - ":10566", - ":10675", - ":8968", - ":8972", - ":10674", - ":9732", - ":10693", - ":10681", ":8935", - ":8917", - ":8916", - ":8976", - ":10680", - ":9002", - ":10700", - ":10695", - ":9011", - ":8915", - ":8997", ":10780", ":8934", - ":8951", - ":8919", - ":10361", + ":8973", + ":10685", + ":9732", + ":10684", ":9733", - ":8967", - ":8914", + ":8919", + ":10710", + ":10709", + ":10693", + ":10695", ":10708", - ":9005", + ":10715", + ":10675", + ":8967", + ":10566", + ":8916", + ":10694", + ":8915", + ":8969", + ":10727", ":10704", + ":10699", + ":8917", + ":10711", + ":10674", + ":10700", + ":10361", + ":8956", + ":8914", ":8999#out:1", ":8947#out:1", ":8935#out:1", @@ -3973,14 +3978,14 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json", "elements":[ ":10600", - ":10662", ":10597", - ":10661", - ":10587", ":10594", - ":10586", - ":10585", + ":10661", + ":10662", ":10591", + ":10586", + ":10587", + ":10585", ":10585#out:1", ":10594#out:1", ":10586#out:1", @@ -4042,22 +4047,22 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json", "elements":[ - ":10619", - ":10811", ":10809", - ":10810", - ":10808", - ":10777", ":10815", - ":10803", - ":10609", - ":10812", ":10805", - ":10814", + ":10777", + ":10619", + ":10812", + ":10808", + ":10803", + ":10811", ":10804", + ":10810", ":10607", ":10776", ":10774", + ":10609", + ":10814", ":10774#out:1", ":10607#out:1", ":10809#out:1", @@ -4089,18 +4094,18 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json", "elements":[ - ":10808:2889", - ":10808:2892", - ":10808:2895", - ":10808:2894", - ":10808:2869", - ":10808:2877", - ":10808:2855", - ":10808:2891", - ":10808:2853", - ":10808:2890", ":10808:2893", + ":10808:2889", + ":10808:2894", + ":10808:2895", ":10808:2854", + ":10808:2891", + ":10808:2877", + ":10808:2890", + ":10808:2855", + ":10808:2853", + ":10808:2892", + ":10808:2869", ":10808:2851", ":10808:2892#out:1", ":10808:2869#out:1", @@ -4132,9 +4137,9 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json", "elements":[ - ":10808:2882", - ":10808:2880", ":10808:2896", + ":10808:2880", + ":10808:2882", ":10808:2879", ":10808:2878", ":10808:2878#out:1", @@ -4196,37 +4201,37 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json", "elements":[ - ":10583", + ":10575", ":10653", ":10574", ":10640", ":10651", ":10746", - ":10745", - ":10630", - ":10627", - ":10656", ":10658", - ":10642", - ":10629", - ":10633", - ":10641", - ":10672", - ":10659", - ":10570", - ":10632", - ":10655", - ":10575", - ":10625", - ":10577", - ":10576", - ":10634", - ":10568", ":10649", + ":10629", + ":10659", + ":10641", + ":10627", + ":10633", + ":10632", + ":10630", ":10643", - ":10673", - ":10657", + ":10577", + ":10672", + ":10576", + ":10570", ":10567", + ":10656", + ":10655", + ":10673", + ":10745", + ":10634", + ":10625", + ":10657", + ":10568", + ":10642", + ":10583", ":10568#out:1", ":10567#out:1", ":10577#out:1", @@ -4268,19 +4273,19 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json", "elements":[ - ":10745:2889", ":10745:2894", - ":10745:2869", - ":10745:2855", + ":10745:2889", ":10745:2893", - ":10745:2854", - ":10745:2895", - ":10745:2891", ":10745:2892", + ":10745:2895", ":10745:2877", - ":10745:2853", - ":10745:2851", + ":10745:2891", + ":10745:2855", ":10745:2890", + ":10745:2854", + ":10745:2851", + ":10745:2869", + ":10745:2853", ":10745:2892#out:1", ":10745:2869#out:1", ":10745:2890#out:1", @@ -4312,8 +4317,8 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json", "elements":[ ":10745:2882", - ":10745:2880", ":10745:2896", + ":10745:2880", ":10745:2879", ":10745:2878", ":10745:2878#out:1", @@ -4375,19 +4380,19 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json", "elements":[ - ":10746:2889", - ":10746:2892", - ":10746:2893", - ":10746:2877", - ":10746:2895", ":10746:2894", - ":10746:2854", - ":10746:2855", - ":10746:2890", - ":10746:2869", + ":10746:2892", ":10746:2891", + ":10746:2869", + ":10746:2855", + ":10746:2895", + ":10746:2854", ":10746:2853", + ":10746:2889", + ":10746:2877", ":10746:2851", + ":10746:2893", + ":10746:2890", ":10746:2892#out:1", ":10746:2869#out:1", ":10746:2890#out:1", @@ -4420,9 +4425,9 @@ "elements":[ ":10746:2896", ":10746:2880", + ":10746:2878", ":10746:2882", ":10746:2879", - ":10746:2878", ":10746:2878#out:1", ":10746:2880#out:1", ":10746:2896#out:1", @@ -4487,24 +4492,24 @@ ":9069", ":9048", ":9049", - ":9067", ":9066", - ":9064", ":9062", - ":9060", ":9061", + ":9060", ":9059", ":9058", ":9054", - ":9065", - ":9052", - ":9057", ":9051", - ":9055", + ":9067", + ":9064", ":9050", - ":9056", ":9053", + ":9052", + ":9056", ":9063", + ":9065", + ":9055", + ":9057", ":9048#out:1", ":9047#out:1", ":9046#out:1", @@ -4544,17 +4549,17 @@ ":8762", ":8764", ":8757", - ":8748", ":8755", - ":9639", - ":9645", - ":9646", - ":9644", - ":9643", - ":10676", - ":8758", - ":9640", + ":8748", ":8754", + ":9646", + ":9643", + ":9639", + ":10676", + ":9640", + ":9645", + ":9644", + ":8758", ":8744", ":8748#out:1", ":10676#out:1", @@ -4605,44 +4610,44 @@ ":9199", ":9223", ":9455", - ":9449", ":9235", - ":9741", - ":9914", + ":9449", ":9233", - ":9924", - ":9225", - ":9926", - ":9925", - ":9927", - ":9917", - ":9929", - ":9215", - ":9839", - ":9835", - ":9916", - ":9833", - ":8216", - ":9451", - ":9928", - ":9838", - ":9831", - ":9207", - ":9842", - ":9454", - ":9915", - ":9214", - ":9923", - ":9452", - ":9922", - ":9920", ":9840", - ":9904", + ":9225", + ":9741", + ":9925", + ":9926", + ":9452", + ":9927", + ":9920", + ":9454", + ":9917", + ":9215", + ":9833", + ":9451", ":9908", ":9227", - ":9206", - ":9921", + ":9924", ":9832", + ":9915", + ":9842", + ":9835", + ":9831", + ":9207", + ":9914", + ":8216", + ":9929", + ":9904", + ":9214", + ":9916", + ":9922", + ":9838", + ":9206", + ":9923", + ":9928", + ":9839", + ":9921", ":9201", ":9834", ":9919", @@ -4715,16 +4720,16 @@ "elements":[ ":9907", ":9906", - ":9823", - ":9911", - ":9913", - ":9209", ":9236", + ":9911", ":9453", + ":9913", + ":9823", + ":9211", ":9910", + ":9209", ":9912", ":9909", - ":9211", ":9209#out:1", ":9211#out:1", ":9236#out:1", @@ -4782,21 +4787,21 @@ ":9742", ":9743", ":9802", - ":9801", - ":9799", - ":9820", - ":9818", - ":9810", - ":9803", - ":9805", - ":9806", ":9800", - ":9819", - ":9816", + ":9799", + ":9806", + ":9803", + ":9820", + ":9810", ":10677", + ":9805", ":9798", ":9797", + ":9819", + ":9801", ":9795", + ":9818", + ":9816", ":9796", ":9779#out:1", ":10677#out:1", @@ -4854,11 +4859,11 @@ ":9760", ":9791", ":9758", - ":10175", ":9794", - ":10035", ":9746", + ":10035", ":9747", + ":10175", ":9756#out:1", ":9745#out:1", ":9765#out:1", @@ -4948,24 +4953,6 @@ }, { "hid":91, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11017", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:11017", - "parent":2, - "children":[ - ], - "name":"Motor_winding", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/Motor_winding", - "label":"Motor_winding", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_11017_d.json", - "elements":[ - ], - "sameAsElement":true - }, - { - "hid":92, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", "parent":2, @@ -4980,14 +4967,14 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json", "elements":[ ":10169", + ":10186", ":10168", ":10185", - ":10184", + ":10167", ":10162", ":10183", - ":10167", ":10190", - ":10186", + ":10184", ":10163", ":10162#out:1", ":10163#out:1", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json index 5ebc755..f326e81 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json @@ -12,8 +12,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -25,7 +25,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -36,9 +35,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -47,8 +47,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -61,7 +61,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -71,18 +70,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "Ts_ctrl", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -109,8 +111,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -122,7 +124,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -133,9 +134,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -145,7 +147,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -158,7 +160,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -168,18 +169,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -206,8 +210,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -219,7 +223,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -230,9 +233,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -242,7 +246,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -255,7 +259,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -265,18 +268,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -303,8 +309,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -316,7 +322,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -327,9 +332,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -339,7 +345,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -352,7 +358,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -362,18 +367,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -400,8 +408,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -413,7 +421,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -424,9 +431,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -436,7 +444,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -449,7 +457,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -459,18 +466,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -497,8 +507,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -510,7 +520,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -521,9 +530,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -533,7 +543,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -546,7 +556,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -556,18 +565,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -652,8 +664,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -665,7 +677,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -676,9 +687,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -688,7 +700,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -701,7 +713,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -711,18 +722,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -749,8 +763,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -762,7 +776,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -773,9 +786,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -785,7 +799,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -798,7 +812,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -808,18 +821,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -846,8 +862,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -859,7 +875,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -870,9 +885,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -882,7 +898,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -895,7 +911,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -905,18 +920,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -943,8 +961,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -956,7 +974,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -967,9 +984,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -978,8 +996,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Reusable function", "", "", "off", @@ -992,7 +1010,6 @@ "off", "", "off", - "off", "", "Use subsystem name", "", @@ -1002,18 +1019,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Reusable function", "-1", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1040,8 +1060,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1053,7 +1073,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1064,9 +1083,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1076,7 +1096,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1089,7 +1109,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1099,18 +1118,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1137,8 +1159,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1150,7 +1172,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1161,9 +1182,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1173,7 +1195,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1186,7 +1208,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1196,18 +1217,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1292,8 +1316,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1305,7 +1329,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1316,9 +1339,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1328,7 +1352,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1341,7 +1365,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1351,18 +1374,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1447,8 +1473,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1460,7 +1486,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1471,9 +1496,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1482,8 +1508,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -1496,7 +1522,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1506,18 +1531,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1544,8 +1572,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1557,7 +1585,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1568,9 +1595,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1579,8 +1607,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -1593,7 +1621,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1603,18 +1630,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1641,8 +1671,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1654,7 +1684,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1665,9 +1694,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1677,7 +1707,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1690,7 +1720,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1700,18 +1729,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1738,8 +1770,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1751,7 +1783,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1762,9 +1793,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1774,7 +1806,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1787,7 +1819,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1797,18 +1828,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1894,8 +1928,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1907,7 +1941,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1918,9 +1951,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1930,7 +1964,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1943,7 +1977,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1953,18 +1986,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1991,8 +2027,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2004,7 +2040,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2015,9 +2050,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2027,7 +2063,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2040,7 +2076,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2050,18 +2085,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2088,8 +2126,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2101,7 +2139,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2112,9 +2149,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2124,7 +2162,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2137,7 +2175,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2147,18 +2184,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2185,8 +2225,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2198,7 +2238,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2209,9 +2248,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2221,7 +2261,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2234,7 +2274,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2244,18 +2283,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2282,8 +2324,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2295,7 +2337,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2306,9 +2347,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2318,7 +2360,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2331,7 +2373,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2341,18 +2382,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2540,8 +2584,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2553,7 +2597,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2564,9 +2607,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2575,8 +2619,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -2589,7 +2633,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2599,18 +2642,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2637,8 +2683,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2650,7 +2696,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2661,9 +2706,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2673,7 +2719,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2686,7 +2732,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2696,18 +2741,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2812,8 +2860,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2825,7 +2873,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2836,9 +2883,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2848,7 +2896,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2861,7 +2909,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2871,18 +2918,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -2909,8 +2959,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2922,7 +2972,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2933,9 +2982,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2945,7 +2995,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2958,7 +3008,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2968,18 +3017,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3006,8 +3058,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3019,7 +3071,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3030,9 +3081,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3042,7 +3094,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3055,7 +3107,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3065,18 +3116,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3103,8 +3157,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3116,7 +3170,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3127,9 +3180,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3139,7 +3193,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3152,7 +3206,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3162,18 +3215,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3200,8 +3256,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3213,7 +3269,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3224,9 +3279,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3236,7 +3292,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3249,7 +3305,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3259,18 +3314,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3390,8 +3448,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3403,7 +3461,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3414,9 +3471,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3426,7 +3484,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3439,7 +3497,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3449,18 +3506,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3487,8 +3547,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3500,7 +3560,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3511,9 +3570,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3523,7 +3583,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3536,7 +3596,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3546,18 +3605,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3584,8 +3646,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3597,7 +3659,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3608,9 +3669,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3620,7 +3682,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3633,7 +3695,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3643,18 +3704,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3774,8 +3838,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3787,7 +3851,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3798,9 +3861,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3810,7 +3874,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3823,7 +3887,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3833,18 +3896,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -3871,8 +3937,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3884,7 +3950,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3895,9 +3960,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3907,7 +3973,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3920,7 +3986,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3930,18 +3995,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -4061,8 +4129,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4074,7 +4142,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4085,9 +4152,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4097,7 +4165,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4110,7 +4178,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4120,18 +4187,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -4251,8 +4321,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4264,7 +4334,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4275,9 +4344,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4287,7 +4357,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4300,7 +4370,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4310,18 +4379,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -4348,8 +4420,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4361,7 +4433,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4372,9 +4443,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4384,7 +4456,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4397,7 +4469,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4407,18 +4478,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -4577,8 +4651,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4590,7 +4664,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4601,9 +4674,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4613,7 +4687,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4626,7 +4700,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4636,18 +4709,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -4767,8 +4843,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4780,7 +4856,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4791,9 +4866,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4803,7 +4879,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4816,7 +4892,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4826,18 +4901,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -4864,8 +4942,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4877,7 +4955,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4888,9 +4965,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4900,7 +4978,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4913,7 +4991,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4923,18 +5000,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5093,8 +5173,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5106,7 +5186,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5117,9 +5196,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5129,7 +5209,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5142,7 +5222,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5152,18 +5231,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5229,8 +5311,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5242,7 +5324,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5253,9 +5334,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5265,7 +5347,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5278,7 +5360,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5288,18 +5369,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5326,8 +5410,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5339,7 +5423,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5350,9 +5433,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5362,7 +5446,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5375,7 +5459,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5385,18 +5468,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5423,8 +5509,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5436,7 +5522,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5447,9 +5532,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5459,7 +5545,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5472,7 +5558,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5482,18 +5567,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5520,8 +5608,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5533,7 +5621,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5544,9 +5631,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5556,7 +5644,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5569,7 +5657,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5579,18 +5666,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5656,8 +5746,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5669,7 +5759,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5680,9 +5769,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5692,7 +5782,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5705,7 +5795,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5715,18 +5804,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5782,8 +5874,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5795,7 +5887,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5806,9 +5897,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5818,7 +5910,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5831,7 +5923,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5841,18 +5932,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -5918,8 +6012,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5931,7 +6025,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5942,9 +6035,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5954,7 +6048,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5967,7 +6061,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5977,18 +6070,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6044,8 +6140,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6057,7 +6153,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6068,9 +6163,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6080,7 +6176,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6093,7 +6189,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6103,18 +6198,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6209,8 +6307,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6222,7 +6320,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6233,9 +6330,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6245,7 +6343,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6258,7 +6356,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6268,18 +6365,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6345,8 +6445,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6358,7 +6458,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6369,9 +6468,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6381,7 +6481,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6394,7 +6494,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6404,18 +6503,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6442,8 +6544,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6455,7 +6557,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6466,9 +6567,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6478,7 +6580,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6491,7 +6593,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6501,18 +6602,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6539,8 +6643,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6552,7 +6656,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6563,9 +6666,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6575,7 +6679,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6588,7 +6692,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6598,18 +6701,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6636,8 +6742,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6649,7 +6755,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6660,9 +6765,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6672,7 +6778,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6685,7 +6791,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6695,18 +6800,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6733,8 +6841,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6746,7 +6854,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6757,9 +6864,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6769,7 +6877,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6782,7 +6890,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6792,18 +6899,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6830,8 +6940,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6843,7 +6953,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6854,9 +6963,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6866,7 +6976,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6879,7 +6989,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6889,18 +6998,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -6927,8 +7039,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -6940,7 +7052,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -6951,9 +7062,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -6963,7 +7075,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -6976,7 +7088,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -6986,18 +7097,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -7024,8 +7138,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -7037,7 +7151,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -7048,9 +7161,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -7060,7 +7174,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -7073,7 +7187,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -7083,18 +7196,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -7214,8 +7330,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -7227,7 +7343,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -7238,9 +7353,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -7250,7 +7366,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -7263,7 +7379,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -7273,18 +7388,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -7298,99 +7416,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:11017", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Motor_winding", - "label":"Motor_winding", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "off", - "off", - "off", - "-1", - "Auto", - "Auto", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", "className":"Simulink.SubSystem", @@ -7404,8 +7429,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -7417,7 +7442,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -7428,9 +7452,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -7440,7 +7465,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -7453,7 +7478,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -7463,18 +7487,21 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", "-1", "", "off", + "on", + "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] },