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 1c5fc6f..cab615f 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 @@ -77,7 +77,9 @@ 65, 66, 67, - 68 + 68, + 69, + 70 ], "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_29_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json index 0b32576..a9d307f 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 @@ -147,11 +147,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9306", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_devSignal2", - "label":"r_devSignal2", + "name":"DC_phaC", + "label":"DC_phaC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -180,7 +180,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "8", + "3", "Port number", "[]", "[]", @@ -193,9 +193,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -227,11 +227,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305", + "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:9306", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_devSignal1", - "label":"r_devSignal1", + "name":"r_devSignal2", + "label":"r_devSignal2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -260,7 +287,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "8", "Port number", "[]", "[]", @@ -307,82 +334,95 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "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":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", - "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/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":"Outport", + "blocktype":"Goto", + "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":"" } }, @@ -467,43 +507,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel1", - "label":"z_ctrlTypSel1", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "z_ctrlTypSel", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" + "z_posRaw", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -511,202 +535,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9669", - "className":"Simulink.Saturate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9288", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Saturation2", - "label":"Saturation2", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1000", - "-1000", - "on", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Floor", - "-1", - "on" + "n_mot", + "local", + "Tag" ], "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:9293", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Model_Info", - "label":"Model_Info", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - ], - "values":[ - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9304", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", - "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":[ - "6", - "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: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" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -714,16 +568,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9389", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto25", + "label":"Goto25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -732,7 +586,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "DC_phaC", "local", "Tag" ], @@ -752,11 +606,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9289", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto28", - "label":"Goto28", + "name":"Goto24", + "label":"Goto24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -765,7 +619,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "DC_phaB", "local", "Tag" ], @@ -785,11 +639,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9288", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -798,7 +652,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "r_devSignal2", "local", "Tag" ], @@ -818,11 +672,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -831,7 +685,7 @@ "IconDisplay" ], "values":[ - "b_hallC", + "z_ctrlModReq", "local", "Tag" ], @@ -851,11 +705,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9276", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -864,7 +718,7 @@ "IconDisplay" ], "values":[ - "b_hallB", + "i_phaBC", "local", "Tag" ], @@ -884,11 +738,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9275", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -897,7 +751,7 @@ "IconDisplay" ], "values":[ - "z_pos", + "a_elecAngle", "local", "Tag" ], @@ -917,11 +771,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9276", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -930,7 +784,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "VqFinPrev", "local", "Tag" ], @@ -950,11 +804,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9437", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -963,7 +817,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "b_motStdStill", "local", "Tag" ], @@ -983,21 +837,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "z_ctrlModReq", - "local", "Tag" ], "tabs":[ @@ -1011,26 +863,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9270", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_hallA", - "local", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -1044,96 +894,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297", + "className":"Simulink.Constant", "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: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:9252", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"b_diagEna", + "label":"b_diagEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "b_hallA", - "Tag" + "b_diagEna", + "on", + "inf", + "[]", + "[]", + "boolean", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1141,16 +943,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1158,7 +960,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "n_mot", "Tag" ], "tabs":[ @@ -1177,25 +979,37 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"If1", + "label":"If1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "z_ctrlTypSel", - "Tag" + "1", + "u1 == CTRL_FOC", + "", + "off", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1203,16 +1017,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9389", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1221,7 +1035,7 @@ "IconDisplay" ], "values":[ - "i_phaAB", + "r_inpTgtSca", "local", "Tag" ], @@ -1240,55 +1054,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_diagEna", - "label":"b_diagEna", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_diagEna", - "on", - "inf", - "[]", - "[]", - "boolean", - "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:9263", "className":"Simulink.From", @@ -1321,21 +1086,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441", - "className":"Simulink.Terminator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Terminator", - "label":"Terminator", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ + "GotoTag", + "IconDisplay" ], "values":[ + "b_motStdStill", + "Tag" ], "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1343,26 +1112,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Terminator", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"From35", + "label":"From35", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_devSignal1", - "local", + "n_mot", "Tag" ], "tabs":[ @@ -1376,16 +1143,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From35", - "label":"From35", + "name":"From34", + "label":"From34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1393,7 +1160,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "a_elecAngle", "Tag" ], "tabs":[ @@ -1443,27 +1210,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9304", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "DC_phaA", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], - "tabs_idx":0 + "values":[ + "6", + "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" @@ -1471,26 +1285,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", + "name":"From30", + "label":"From30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "DC_phaC", - "local", + "z_pos", "Tag" ], "tabs":[ @@ -1504,16 +1316,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1521,7 +1333,7 @@ "IconDisplay" ], "values":[ - "DC_phaA", + "b_hallC", "Tag" ], "tabs":[ @@ -1540,11 +1352,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1552,7 +1364,7 @@ "IconDisplay" ], "values":[ - "z_pos", + "z_errCode", "Tag" ], "tabs":[ @@ -1571,11 +1383,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9674", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1583,7 +1395,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "DC_phaA", "Tag" ], "tabs":[ @@ -1602,11 +1414,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9257", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From26", + "label":"From26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1614,7 +1426,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -1633,19 +1445,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "b_hallC", + "local", "Tag" ], "tabs":[ @@ -1659,79 +1473,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"DC_phaC", - "label":"DC_phaC", + "name":"Goto3", + "label":"Goto3", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "z_ctrlTypSel", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1739,16 +1506,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9387", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"From24", + "label":"From24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1756,7 +1523,7 @@ "IconDisplay" ], "values":[ - "z_errCode", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -1775,11 +1542,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9257", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1787,7 +1554,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "a_elecAngle", "Tag" ], "tabs":[ @@ -1806,25 +1573,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"z_ctrlTypSel1", + "label":"z_ctrlTypSel1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "b_motStdStill", - "Tag" + "z_ctrlTypSel", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1832,20 +1617,492 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Implemented_control_methods", - "label":"Implemented_control_methods", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", + "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":[ + "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: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: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: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:9244", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "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":"" + } + }, + { + "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:9294", + "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":[ + "2000", + "-2000", + "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:9252", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "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:9385", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "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: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: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: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: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: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:9292", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Implemented_control_methods", + "label":"Implemented_control_methods", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", "BlockChoice", "TemplateBlock", "MemberBlocks", @@ -1930,72 +2187,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9294", - "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":[ - "2000", - "-2000", - "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:9249", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbs", + "DC_phaA", + "local", "Tag" ], "tabs":[ @@ -2009,16 +2215,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2026,7 +2232,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "b_motEna", "Tag" ], "tabs":[ @@ -2045,11 +2251,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9299", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"DC_phaA", - "label":"DC_phaA", + "name":"DC_phaB", + "label":"DC_phaB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2078,7 +2284,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -2120,142 +2326,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "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:9244", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "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":"" - } - }, - { - "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":[ - "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", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F05_Control_Type_Management", - "label":"F05_Control_Type_Management", + "name":"F04_Field_Oriented_Control", + "label":"F04_Field_Oriented_Control", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2263,8 +2343,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2276,7 +2356,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2287,9 +2366,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2299,7 +2379,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2307,11 +2387,10 @@ "void_void", "off", "off", - "on", - "", "off", "", "off", + "", "off", "", "Auto", @@ -2322,18 +2401,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 ] }, @@ -2348,68 +2430,126 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "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":[ - "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":[ - "i_phaBC", - "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:9290", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9278", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "u1 ~= CTRL_COM", - "", - "off", - "-1", - "on" + "n_motAbs", + "local", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2417,16 +2557,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F03_Control_Mode_Manager", - "label":"F03_Control_Mode_Manager", + "name":"F05_Control_Type_Management", + "label":"F05_Control_Type_Management", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2434,8 +2574,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2447,7 +2587,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2458,9 +2597,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2470,7 +2610,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2481,80 +2621,131 @@ "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: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", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "off" ], "tabs":[ "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 2, + 11 ] }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9388", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "name":"From33", + "label":"From33", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2562,7 +2753,7 @@ "IconDisplay" ], "values":[ - "r_devSignal2", + "DC_phaC", "Tag" ], "tabs":[ @@ -2581,11 +2772,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9388", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2593,7 +2784,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -2612,11 +2803,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2624,7 +2815,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -2643,64 +2834,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9295", - "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":[ - "2000", - "-2000", - "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:9280", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2709,7 +2847,7 @@ "IconDisplay" ], "values":[ - "z_posRaw", + "r_inpTgt", "local", "Tag" ], @@ -2729,11 +2867,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_Estimations", - "label":"F01_Estimations", + "name":"F02_Diagnostics", + "label":"F02_Diagnostics", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2741,8 +2879,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2754,7 +2892,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2765,9 +2902,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2777,7 +2915,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2785,11 +2923,10 @@ "void_void", "off", "off", - "on", - "", "off", "", "off", + "", "off", "", "Auto", @@ -2800,18 +2937,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 ] }, @@ -2826,66 +2966,101 @@ } }, { - "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:9259", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "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":[ - "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_hallB", - "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":"" } }, @@ -2937,42 +3112,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9385", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "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:8215", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion5", - "label":"Data Type Conversion5", + "name":"Data Type Conversion6", + "label":"Data Type Conversion6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3015,44 +3159,11 @@ } }, { - "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:8213", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8215", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion3", - "label":"Data Type Conversion3", + "name":"Data Type Conversion5", + "label":"Data Type Conversion5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3095,40 +3206,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8214", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Data Type Conversion4", - "label":"Data Type Conversion4", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ + "5", + "Port number", "[]", "[]", - "int16", + "Inherit: auto", "off", - "Real World Value (RWV)", - "Floor", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "-1" + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 7 + 2, + 11 ] }, "viewer":{ @@ -3137,16 +3281,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8212", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8214", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion2", - "label":"Data Type Conversion2", + "name":"Data Type Conversion4", + "label":"Data Type Conversion4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3189,11 +3333,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8218", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8212", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion8", - "label":"Data Type Conversion8", + "name":"Data Type Conversion2", + "label":"Data Type Conversion2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3236,11 +3380,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8213", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", + "name":"Data Type Conversion3", + "label":"Data Type Conversion3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3283,108 +3427,58 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F04_Field_Oriented_Control", - "label":"F04_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", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8211", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion10", + "label":"Data Type Conversion10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int16", "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", + "Real World Value (RWV)", + "Floor", "off", - "" + "-1" ], "tabs":[ - "Main", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"Goto23", + "label":"Goto23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3393,7 +3487,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "z_pos", "local", "Tag" ], @@ -3413,11 +3507,64 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8208", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9669", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation2", + "label":"Saturation2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1000", + "-1000", + "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:8209", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"i_phaBC", - "label":"i_phaBC", + "name":"i_DCLink", + "label":"i_DCLink", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3440,7 +3587,7 @@ "OutputFunctionCall" ], "values":[ - "8", + "9", "Port number", "[]", "[]", @@ -3480,56 +3627,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9387", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "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:9248", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"b_hallB", + "label":"b_hallB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "z_ctrlModReq", - "Tag" + "5", + "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" @@ -3537,16 +3689,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"i_phaAB", - "label":"i_phaAB", + "name":"b_hallA ", + "label":"b_hallA ", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3569,7 +3721,7 @@ "OutputFunctionCall" ], "values":[ - "7", + "4", "Port number", "[]", "[]", @@ -3609,72 +3761,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8211", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion10", - "label":"Data Type Conversion10", + "name":"From27", + "label":"From27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "b_hallB", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3682,16 +3787,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_hallB", - "label":"b_hallB", + "name":"r_inpTgt", + "label":"r_inpTgt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3714,7 +3819,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "3", "Port number", "[]", "[]", @@ -3754,60 +3859,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"b_hallA ", - "label":"b_hallA ", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", "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" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "4", - "Port number", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", + "int16", "off", + "Real World Value (RWV)", + "Floor", "off", - "off" + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 7 ] }, "viewer":{ @@ -3816,16 +3901,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9393", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9270", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3834,7 +3919,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "b_hallA", "local", "Tag" ], @@ -3854,11 +3939,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"DC_phaB", - "label":"DC_phaB", + "name":"b_hallC", + "label":"b_hallC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3874,20 +3959,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "2", + "6", "Port number", "[]", "[]", @@ -3899,17 +3978,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -3929,183 +4001,121 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "DC_phaC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F02_Diagnostics", - "label":"F02_Diagnostics", + "name":"r_devSignal1", + "label":"r_devSignal1", "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" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", + "inherit", + "-1", + "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":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9295", + "className":"Simulink.Saturate", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", + "name":"Saturation1", + "label":"Saturation1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Port", - "IconDisplay", + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ZeroCross" ], "values":[ - "3", - "Port number", + "2000", + "-2000", + "on", "[]", "[]", - "Inherit: auto", + "fixdt(1,16,4)", "off", - "inherit", - "-1", - "Inherit", + "Floor", "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "on" ], "tabs":[ "Main", @@ -4114,8 +4124,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 8 ] }, "viewer":{ @@ -4124,16 +4134,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Saturate", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4142,7 +4152,7 @@ "IconDisplay" ], "values":[ - "r_devSignal2", + "r_devSignal1", "local", "Tag" ], @@ -4229,11 +4239,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206", + "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:8201", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_hallC", - "label":"b_hallC", + "name":"b_motEna", + "label":"b_motEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4256,7 +4297,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "1", "Port number", "[]", "[]", @@ -4296,44 +4337,11 @@ } }, { - "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:8216", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8218", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion6", - "label":"Data Type Conversion6", + "name":"Data Type Conversion8", + "label":"Data Type Conversion8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4376,11 +4384,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8201", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", + "name":"i_phaAB", + "label":"i_phaAB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4403,7 +4411,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "7", "Port number", "[]", "[]", @@ -4443,42 +4451,11 @@ } }, { - "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:8209", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8208", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"i_DCLink", - "label":"i_DCLink", + "name":"i_phaBC", + "label":"i_phaBC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4501,7 +4478,7 @@ "OutputFunctionCall" ], "values":[ - "9", + "8", "Port number", "[]", "[]", @@ -7804,57 +7781,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535#out:2", - "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":[ - ] - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392#out:1", "className":"Simulink.Line", @@ -8468,7 +8394,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9674#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", 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 dd043a4..4e4c899 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 b7520c2..b914dff 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 @@ -458,11 +458,11 @@ - - + + - + @@ -472,30 +472,30 @@ - - 8 + + 3 - + - - + + - + - - r_devSignal2 + + DC_phaC @@ -506,92 +506,45 @@ - - - - - - + + + - + - + - - 7 - - - - - - - - - - - - - - + + - - + + - - r_devSignal1 + + - - - - - - - - - - - - - - - - - - - - - - 5 + + + - - - - + - - - - - - - - - - - n_mot + + + @@ -602,172 +555,44 @@ - - + + - + - + - - 4 + + 8 - + - - - - - - - - - - z_errCode - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - sfix16_En4 + + r_devSignal2 @@ -785,51 +610,51 @@ - + - + MODEL INFO - + - - Version: 1.1187 + + Version: 1.1197 - + - + Author: Emanuel Feru - + - + Last modified by: eferu - + - - Last update: 27-okt-2019 17:30:55 + + Last update: - + - + Copyright © 2019 Emanuel FERU @@ -844,29 +669,29 @@ - + - + - + - + - + - + @@ -880,44 +705,29 @@ - - - + + + - - + + - - + + - - 6 + + [z_errCode] - - - - - - - - - - - - - - - - - a_elecAngle + + @@ -928,52 +738,29 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + [b_hallB] - - - - - - - - - - - - - - - - - action + + @@ -984,62 +771,44 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + 4 - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [b_motEna] - - - - - - - + + z_errCode @@ -1050,28 +819,28 @@ - - + + - + - + - - [n_mot] + + [z_posRaw] - + @@ -1083,28 +852,28 @@ - - + + - + - + - - [b_hallC] + + [n_mot] - + @@ -1116,28 +885,28 @@ - - + + - + - + - - [b_hallB] + + [DC_phaC] - + @@ -1149,28 +918,28 @@ - - + + - + - + - - [z_pos] + + [DC_phaB] - + @@ -1182,28 +951,28 @@ - - + + - + - + - - [i_phaBC] + + [r_devSignal2] - + @@ -1215,28 +984,28 @@ - - + + - + - + - - [a_elecAngle] + + [z_ctrlModReq] - + @@ -1248,28 +1017,28 @@ - - + + - + - + - - [z_ctrlModReq] + + [i_phaBC] - + @@ -1281,28 +1050,28 @@ - - + + - + - + - - [b_hallA] + + [a_elecAngle] - + @@ -1314,28 +1083,28 @@ - - + + - + - + - - [r_inpTgt] + + [VqFinPrev] - + @@ -1357,11 +1126,11 @@ - + - + [b_motStdStill] @@ -1380,43 +1149,43 @@ - - + + - + - + - - [b_hallA] + + [z_ctrlModReq] - + - + - - + + - + uint8 @@ -1438,11 +1207,11 @@ - + - + [z_ctrlTypSel] @@ -1460,11 +1229,11 @@ - + - + uint8 @@ -1476,44 +1245,44 @@ - - - + + + - - + + - - + + - - [z_ctrlTypSel] + + b_diagEna - - + + - - + + - - + + - - uint8 + + boolean @@ -1524,77 +1293,133 @@ - - - + + + - - + + - - + + - - [i_phaAB] + + [n_mot] - - + + - - - + + + + + + + + + + + sfix16_En4 + + + + + + + - - - + + + - - + + - - + + - - b_diagEna + + u1 + + + + + + + + if(u1 == CTRL_FOC) - - + + - - + + - - + + - - boolean + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + @@ -1615,11 +1440,11 @@ - + - + [r_devSignal1] @@ -1637,11 +1462,11 @@ - + - + sfix16_En4 @@ -1653,45 +1478,44 @@ - - - + + + + + + - - - - - - - - - + - - + + - - + + [b_motStdStill] - - - + + + - - - - - - - + + + + + + + + + + + boolean @@ -1702,29 +1526,44 @@ - - - + + + - - + + - - + + - - [r_devSignal1] + + [n_mot] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1735,44 +1574,44 @@ - - + + - + - + - - [n_mot] + + [a_elecAngle] - + - - + + - - + + - - sfix16_En4 + + ufix16_En6 @@ -1793,11 +1632,11 @@ - + - + [DC_phaB] @@ -1815,11 +1654,11 @@ - + - + int16 @@ -1831,62 +1670,44 @@ - - - + + + - - + + - - + + - - [DC_phaA] + + 6 - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [DC_phaC] - - - - - - - + + a_elecAngle @@ -1897,44 +1718,44 @@ - - + + - + - + - - [DC_phaA] + + [z_pos] - + - - + + - - + + - - int16 + + int8 @@ -1945,44 +1766,44 @@ - - + + - + - + - - [z_pos] + + [b_hallC] - + - - + + - - + + - - int8 + + uint8 @@ -1993,44 +1814,44 @@ - - + + - + - + - - [r_inpTgt] + + [z_errCode] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -2041,44 +1862,44 @@ - - + + - + - + - - [b_motStdStill] + + [DC_phaA] - + - - + + - - + + - - boolean + + int16 @@ -2089,43 +1910,43 @@ - - + + - + - + - - [b_hallC] + + [z_ctrlTypSel] - + - + - - + + - + uint8 @@ -2137,44 +1958,62 @@ - - - + + + - - + + - - + + - - 3 + + [b_hallC] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - DC_phaC + + [z_ctrlTypSel] + + + + + + + @@ -2185,44 +2024,44 @@ - - + + - + - + - - [z_errCode] + + [r_inpTgtSca] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -2233,44 +2072,44 @@ - - + + - + - + - - [z_ctrlTypSel] + + [a_elecAngle] - + - - + + - - + + - - uint8 + + ufix16_En6 @@ -2281,44 +2120,44 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + z_ctrlTypSel - - + + - - + + - - + + - - boolean + + uint8 @@ -2329,43 +2168,44 @@ - - - + + + - - + + - - - - - - - - - + + - - Implemented_control_methods + + [n_motAbs] - - - + + + - - - + + + + + + + + + + + sfix16_En4 @@ -2376,76 +2216,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + [z_ctrlModReq] - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + uint8 @@ -2456,44 +2264,44 @@ - - + + - + - + - - [n_motAbs] + + [VqFinPrev] - + - - + + - - + + - - sfix16_En4 + + int16 @@ -2504,44 +2312,44 @@ - - + + - + - + - - [VqFinPrev] + + [b_motEna] - + - - + + - - + + - - int16 + + boolean @@ -2552,44 +2360,44 @@ - - - + + + - - + + - - + + - - 1 + + [i_phaAB] - - + + - - - + + + - - + + - - DC_phaA + + sfix16_En4 @@ -2600,29 +2408,44 @@ - - - + + + - - + + - - + + - - [DC_phaB] + + [z_posRaw] - - + + + + + + + + + + + + + + + + + uint8 @@ -2633,43 +2456,75 @@ - - - + + + - - + + - + - - + + - - [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -2681,44 +2536,44 @@ - - + + - + - + - - [n_mot] + + [b_hallA] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -2729,44 +2584,44 @@ - - + + - + - + - - [z_posRaw] + + [r_inpTgt] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -2777,234 +2632,166 @@ - - - + + + - - - - - - - - + + - - + + - - b_enaFOC + + u1 - - + + - - z_pos + + if(u1 ~= 0) + + + + + + + + + + + + + + - - + + - - z_ctrlTypSel - - - - - - - - r_phaA - - - - - - - - r_phaB - - - - - - - - r_phaC - - - - - - - - Vq - - - - - - - - r_inpTgtSca - - - - - - - - DC_phaA - - - - - - - - DC_phaB - - - - - - - - DC_phaC + + action + + + + + + + + + + + + + + + + + + - - + + - - VqFinPrev + + [i_phaAB] - - - - - - - - + + - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - F05_Control_Type_Management + + [b_motEna] - - - - - - - - - - - - - - - - - int16 + + + - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - int16 + + [b_motStdStill] - - - - - - - - - - - - - - - - - int16 + + + - - - - - - - - + + - - + + - - int16 + + boolean @@ -3016,12 +2803,6 @@ - - - - - - @@ -3031,11 +2812,11 @@ - + - + [i_phaBC] @@ -3053,11 +2834,11 @@ - + - + sfix16_En4 @@ -3069,52 +2850,43 @@ - - - + + + - - + + - - - - - - - u1 + + + + + + - - + + - - if(u1 ~= CTRL_COM) + + Implemented_control_methods - - - + + + - - - - - - - - - - - action + + + @@ -3125,144 +2897,29 @@ - - - + + + - - - - - - - - + + - - - - - - b_errFlag - - - - - - - - b_motStdStill - - - - - - - - b_motEna - - - - - - - - z_ctrlModReq - - - - - - - - z_ctrlMod - - - - + + - - z_ctrlModPrev + + [DC_phaA] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F03_Control_Mode_Manager - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - uint8 + + @@ -3273,50 +2930,44 @@ - - - - - - - - + + - + - + - - [r_inpTgtSca] + + [b_motEna] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -3327,44 +2978,44 @@ - - - + + + - - + + - - + + - - [r_devSignal2] + + 2 - - + + - - - + + + - - + + - - sfix16_En4 + + DC_phaB @@ -3375,458 +3026,244 @@ - - - + + + - - + + + + + + + + - - + + - - [a_elecAngle] - - - - - - - - - - - - - - + + b_enaFOC - - + + - - ufix16_En6 + + z_ctrlMod - - - - - - - - - - - - - - - - - - - - + + - - [b_motEna] - - - - - - - - - - - - - - + + b_motEna - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - r_inpTgt + + r_inpTgtSca - - + + - - b_hallA + + n_mot - - + + - - b_hallB + + n_motAbs - - + + - - b_hallC + + a_elecAngle - - + + - - z_ctrlModPrev + + i_phaAB - - + + - - r_inpTgtSca + + i_phaBC - - + + - - z_posRaw + + r_phaA - - + + - - z_pos + + r_phaB - - + + - - n_mot + + r_phaC - - + + - - n_motAbs + + Vq - - + + - - a_elecAngle + + r_devSignal1 - - + + - - b_motStdStill + + r_devSignal2 - - + + - - b_enaFOC + + if { } - + - - + + - + - - + + - - + + - - F01_Estimations + + F04_Field_Oriented_Control - + - - + + - - + + - - uint8 + + sfix16_En4 - + - - + + - - + + - - boolean + + sfix16_En4 - + - - + + - - - - - - boolean - - - - - - - - - - - - - - - - - + + - + sfix16_En4 @@ -3834,84 +3271,84 @@ - + - - + + - - + + - - sfix16_En4 + + int16 - + - - + + - - + + - - sfix16_En4 + + int16 - + - - + + - - + + - - int8 + + int16 - + - - + + - - + + - - ufix16_En6 + + action @@ -3922,147 +3359,121 @@ - + - + - - + + - - + + + + + + + + - - + + - - [n_motAbs] - - - - - - - + + b_errFlag - - - - - - - - - - - - - - - - - - - - + + - - [b_hallB] - - - - - - - - - - - - - - + + b_motStdStill - - + + - - uint8 + + b_motEna - - - - - - - - - - - - - - - - - - - - + + - - + + z_ctrlModReq - - + + - - + + z_ctrlMod - - - - - + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + F03_Control_Mode_Manager - + + + + + + + - - + + - - int16 + + uint8 @@ -4073,44 +3484,35 @@ - - - + + + + + + + + + - - + + - - + + - - [r_inpTgt] + + [n_motAbs] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -4121,59 +3523,233 @@ - - - + + + - - + + + + + + + + - + - - + + - - + + b_enaFOC - - + + - - + + z_pos + + + + + + + + z_ctrlTypSel + + + + + + + + r_phaA + + + + + + + + r_phaB + + + + + + + + r_phaC + + + + + + + + Vq + + + + + + + + r_inpTgtSca + + + + + + + + DC_phaA + + + + + + + + DC_phaB + + + + + + + + DC_phaC + + + + + + + + VqFinPrev - + + + + + + + + + + - + + + + + + + + + + + + + + + + + F05_Control_Type_Management + - - - + + + + + + + + + + + + + + + + + int16 - + + + + + + + - - + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + - + int16 @@ -4185,29 +3761,50 @@ - - - + + + + + + + + + - - + + - - + + - - [z_ctrlTypSel] + + 1 - - + + + + + + + + + + + + + + + + + DC_phaA @@ -4218,60 +3815,686 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [DC_phaC] - + + + + - + + + + + + + + + + + int16 + - - - + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_posRaw + + + + + + + + b_motStdStill + + + + + + + + VqFinPrev + + + + + + + + z_errCode + + + + + + + + b_errFlag + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F02_Diagnostics + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgt + + + + + + + + b_hallA + + + + + + + + b_hallB + + + + + + + + b_hallC + + + + + + + + r_inpTgtSca + + + + + + + + z_posRaw + + + + + + + + z_pos + + + + + + + + n_mot + + + + + + + + n_motAbs + + + + + + + + a_elecAngle + + + + + + + + b_motStdStill + + + + + + + + b_enaFOC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F01_Estimations + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + ufix16_En6 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 - - + + + + + + + + - - + + - - int16 + + boolean @@ -4282,29 +4505,35 @@ - - + + + + + + + + - + - + - + - + - + @@ -4319,22 +4548,22 @@ - + - + - - + + - + int16 @@ -4346,29 +4575,29 @@ - - + + - + - + - + - + - + @@ -4383,22 +4612,22 @@ - + - + - - + + - + int16 @@ -4410,29 +4639,29 @@ - - + + - + - + - + - + - + @@ -4447,22 +4676,22 @@ - + - + - - + + - + int16 @@ -4474,60 +4703,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 5 - - - - - - - - - - + + - - - + + + - - + + - - int16 + + n_mot @@ -4538,328 +4751,251 @@ - - - + + + - - - - - - - - + + - - - - - - - - b_enaFOC - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgt - - - - - - - - r_inpTgtSca - - - - - - - - n_mot - - - - - - - - n_motAbs - - - - - - - - a_elecAngle - - - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - r_phaA - - - - - - - - r_phaB - - - - - - - - r_phaC - - - - - - - - Vq - - - - - - - - r_devSignal1 - - - - - - - - r_devSignal2 - + - - + + - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - F04_Field_Oriented_Control + + + + + + + + + + + + + + + + + - - - - - - - + - - + + - + int16 - + + + + + + + + + + + + + + + - - - - + + + - - + + - - + + - - sfix16_En4 + + + + + + + + + + + + + + + + + - - - - - - - - + + - - + + - - sfix16_En4 + + int16 - + + + + + + + + + + + + + + + - - - - + + + - - + + - - + + - - action + + + + + + + + + + + + + + + + + - - - - - - - + - - + + - + int16 - + + + + + + + + + + + + + + + - - - - + + + - - + + - - + + - - sfix16_En4 + + + + + + + + + + + + + + + + + - - - - - - - + - - + + - + int16 @@ -4871,34 +5007,28 @@ - - - - - - - - + + - + - + - - [VqFinPrev] + + [z_pos] - + @@ -4910,106 +5040,75 @@ - - - + + + - - + + - + - - + + - - 8 - - - - - - - - - - - - - - + + - - + + - - i_phaBC + + - - - - - - + + + + + + + - - + + - - int16 + + - - - - - - - - - - - - + + - - - - - - - [r_inpTgtSca] - - - + + - + - - + + - + sfix16_En4 @@ -5021,44 +5120,59 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + 9 - - + + + + + + + + + + + + + + + + + i_DCLink - + - - + + - - uint8 + + int16 @@ -5069,59 +5183,59 @@ - - + + - + - + - - 7 + + 5 - + - - + + - - + + - - i_phaAB + + b_hallB - + - - + + - - int16 + + uint8 @@ -5132,43 +5246,58 @@ - - - + + + - - + + - - + + - - [z_ctrlModPrev] + + 4 - - + + + + + + + + + + + + + + + + + b_hallA - + - - + + - + uint8 @@ -5180,60 +5309,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [b_hallB] - - - - - - - - - - + + - + - - + + - - int16 + + uint8 @@ -5244,59 +5357,59 @@ - - + + - + - + - - 5 + + 3 - + - - + + - - + + - - b_hallB + + r_inpTgt - + - - + + - - uint8 + + int16 @@ -5307,59 +5420,60 @@ - - - + + + - - + + - + - - + + - - 4 + + + + + + + + + + - - - - + - - - - - - - - - - - b_hallA + + + + + + + - + - - - + + + - - uint8 + + int16 @@ -5370,28 +5484,28 @@ - - + + - + - + - - [z_ctrlModPrev] + + [b_hallA] - + @@ -5403,92 +5517,59 @@ - - + + - + - + - - 2 + + 6 - + - - - - - - - - - - DC_phaB + + - - - - - - - - - - - - - - - - - - - - + + - - [DC_phaC] - - - - - - - + + b_hallC - + - - + + - - int16 + + uint8 @@ -5499,234 +5580,124 @@ - - - + + + - - - - - - - - + + - - - - - - z_posRaw - - - - - - - - b_motStdStill - - - - - - - - VqFinPrev - - - - - - - - z_errCode - - - - - - - - b_errFlag - - - - + + - - if { } + + 7 - - - - - - - - + + - - - - - - - - + + - - + + - - F02_Diagnostics + + r_devSignal1 - - - - - - - - - - - - - - - - - action - - + + + + + + + + + + + + - + - - - - + + + - - + + - - + + - - uint8 + + - - - - - - - - + + + - - + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - + + - - - - - - - 3 - - - - - - - - - - - - - - - - - - r_inpTgt + + - - + + - - + + - - int16 + + sfix16_En4 @@ -5737,28 +5708,28 @@ - - + + - + - + - - [r_devSignal2] + + [r_devSignal1] - + @@ -5771,57 +5742,57 @@ - + - + - + - + 2 - + - + - - + + - + z_ctrlModReq - + - - + + - + uint8 @@ -5833,59 +5804,44 @@ - - - + + + - - + + - - + + - - 6 + + [r_devSignal2] - - - - - - - - - - - - - - - - - b_hallC + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -5896,29 +5852,59 @@ - - - + + + - - + + - - + + - - [z_errCode] + + 1 - - + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + + + + + + + + boolean @@ -5929,29 +5915,29 @@ - - + + - + - + - + - + - + @@ -5966,22 +5952,22 @@ - + - + - - + + - + int16 @@ -5993,107 +5979,59 @@ - - + + - + - + - - 1 + + 7 - + - - - - - - - - - - b_motEna - - - - - - - - - - - - - - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [a_elecAngle] - - - - - - - + + i_phaAB - - + + - - + + - - ufix16_En6 + + int16 @@ -6104,7 +6042,7 @@ - + @@ -6114,12 +6052,12 @@ - + - - 9 + + 8 @@ -6133,15 +6071,15 @@ - + - - + + - - i_DCLink + + i_phaBC @@ -6151,11 +6089,11 @@ - + - + int16 @@ -6238,11 +6176,11 @@ - + - + @@ -6280,11 +6218,11 @@ - + - + @@ -6518,11 +6456,11 @@ - + - + @@ -6630,11 +6568,11 @@ - + - + @@ -6714,11 +6652,11 @@ - + - + @@ -6770,11 +6708,11 @@ - + - + @@ -6784,11 +6722,11 @@ - + - + @@ -6874,11 +6812,11 @@ - + - + @@ -6888,11 +6826,11 @@ - + - + @@ -6948,7 +6886,7 @@ - + @@ -6958,11 +6896,11 @@ - + - + @@ -6972,11 +6910,11 @@ - + - + @@ -7000,11 +6938,11 @@ - + - + @@ -7014,11 +6952,11 @@ - + - + @@ -7028,11 +6966,11 @@ - + - + @@ -7081,28 +7019,14 @@ - - - - - - - - - - - - - - - + - + @@ -7154,11 +7078,11 @@ - + - + @@ -7210,11 +7134,11 @@ - + - + @@ -7224,11 +7148,11 @@ - + - + @@ -7263,7 +7187,7 @@ - + @@ -7279,5 +7203,5 @@ - + 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 dd93dbd..4b498b4 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 2590c92..dba3198 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 @@ -27,7 +27,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -94,7 +94,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -161,7 +161,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "6", "Port number", "[]", "[]", @@ -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 ] }, @@ -1352,11 +1360,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9433", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8468", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", + "name":"b_enaFOC", + "label":"b_enaFOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1385,7 +1393,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "8", "Port number", "[]", "[]", @@ -1398,9 +1406,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -1432,11 +1440,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8467", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1465,7 +1473,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "6", + "5", "Port number", "[]", "[]", @@ -1592,27 +1600,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8461", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8467", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "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":[ - "z_dirPrev", - "local", - "Tag" + "6", + "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" @@ -1620,7 +1675,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, @@ -1658,36 +1713,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8463", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"z_posRaw", + "label":"z_posRaw", "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", - "", + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 4 + 2, + 11 ] }, "viewer":{ @@ -1696,16 +1788,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9432", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8458", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1714,7 +1806,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_counterRaw", "local", "Tag" ], @@ -1734,11 +1826,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9384", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9432", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1747,7 +1839,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "b_motStdStill", "local", "Tag" ], @@ -1767,11 +1859,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9379", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9384", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1780,7 +1872,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "r_inpTgtSca", "local", "Tag" ], @@ -1800,27 +1892,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9377", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9433", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"b_motStdStill", + "label":"b_motStdStill", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "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":[ - "r_inpTgt", - "local", - "Tag" + "7", + "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" @@ -1828,16 +1967,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8455", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8451", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1846,7 +1985,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "n_motAbs", "local", "Tag" ], @@ -1866,19 +2005,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9382", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8450", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtSca", + "b_enaFOC", + "local", "Tag" ], "tabs":[ @@ -1892,24 +2033,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8449", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_enaFOC", + "a_elecAngle", + "local", "Tag" ], "tabs":[ @@ -1923,16 +2066,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1940,7 +2083,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "b_enaFOC", "Tag" ], "tabs":[ @@ -1959,11 +2102,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1971,7 +2114,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "z_counterRaw", "Tag" ], "tabs":[ @@ -1990,21 +2133,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8449", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9381", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "a_elecAngle", - "local", + "r_inpTgt", "Tag" ], "tabs":[ @@ -2018,7 +2159,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2054,44 +2195,11 @@ } }, { - "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:8435", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From25", + "label":"From25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2099,7 +2207,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "b_motStdStill", "Tag" ], "tabs":[ @@ -2118,11 +2226,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From17", + "label":"From17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2130,7 +2238,7 @@ "IconDisplay" ], "values":[ - "z_posRaw", + "z_pos", "Tag" ], "tabs":[ @@ -2149,11 +2257,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8430", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2161,7 +2269,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "z_counter", "Tag" ], "tabs":[ @@ -2180,11 +2288,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8429", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2192,7 +2300,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "n_motAbs", "Tag" ], "tabs":[ @@ -2211,21 +2319,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8450", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9380", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_enaFOC", - "local", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -2239,7 +2345,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2275,73 +2381,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9380", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8424", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8384", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_06_Electrical_Angle_Estimation", - "label":"F01_06_Electrical_Angle_Estimation", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F01_06_Electrical_Angle_Estimation", + "label":"F01_06_Electrical_Angle_Estimation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2349,8 +2393,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2362,7 +2406,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2373,9 +2416,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2385,7 +2429,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2398,7 +2442,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2408,18 +2451,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 ] }, @@ -2433,6 +2479,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8455", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "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:9374", "className":"Simulink.From", @@ -2465,21 +2544,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8430", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", - "local", + "z_dirPrev", "Tag" ], "tabs":[ @@ -2493,16 +2570,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8429", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2510,7 +2587,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "z_dir", "Tag" ], "tabs":[ @@ -2529,73 +2606,36 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8468", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", + "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":[ - "8", - "Port number", - "[]", - "[]", - "Inherit: auto", + "1", + "u1 ~= 0", + "", "off", - "inherit", - "-1", - "Inherit", "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 4 ] }, "viewer":{ @@ -2604,26 +2644,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8451", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbs", - "local", + "z_posRaw", "Tag" ], "tabs":[ @@ -2637,7 +2675,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2654,8 +2692,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2667,7 +2705,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2678,9 +2715,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2690,7 +2728,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2703,7 +2741,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2713,18 +2750,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 ] }, @@ -2739,141 +2779,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9378", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModPrev", - "label":"z_ctrlModPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8463", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"z_posRaw", - "label":"z_posRaw", + "name":"Goto5", + "label":"Goto5", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "z_counter", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2881,16 +2807,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9381", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8424", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2898,7 +2824,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -2917,19 +2843,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9377", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_pos", + "r_inpTgt", + "local", "Tag" ], "tabs":[ @@ -2943,16 +2871,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9375", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"r_inpTgt", + "label":"r_inpTgt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2968,20 +2896,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "5", + "3", "Port number", "[]", "[]", @@ -2993,17 +2915,10 @@ "-1", "auto", "off", + "", + "on", "off", - "0", - "off", - "reset", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -3023,7 +2938,40 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9379", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "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":"" } }, @@ -3095,11 +3043,75 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9375", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9382", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From24", + "label":"From24", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "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:8461", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "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:9378", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png index c7ef2dc..2996dff 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png differ 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 3c8b9f5..54fc304 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 @@ -1,10 +1,10 @@ - + - + @@ -14,10 +14,10 @@ - + - + @@ -27,44 +27,44 @@ - - 3 + + 4 - + - + - + - + b_hallA - + - + - + uint8 @@ -77,10 +77,10 @@ - + - + @@ -90,44 +90,44 @@ - - 4 + + 5 - + - + - + - + b_hallB - + - + - + uint8 @@ -140,10 +140,10 @@ - + - + @@ -153,44 +153,44 @@ - - 5 + + 6 - + - + - + - + b_hallC - + - + - + uint8 @@ -235,7 +235,7 @@ - + @@ -252,7 +252,7 @@ - + @@ -325,7 +325,7 @@ - + @@ -346,7 +346,7 @@ - + @@ -400,7 +400,7 @@ - + @@ -448,7 +448,7 @@ - + @@ -496,7 +496,7 @@ - + @@ -544,7 +544,7 @@ - + @@ -592,7 +592,7 @@ - + @@ -640,7 +640,7 @@ - + @@ -754,7 +754,7 @@ - + @@ -844,7 +844,7 @@ - + @@ -865,7 +865,7 @@ - + @@ -886,7 +886,7 @@ - + @@ -907,7 +907,7 @@ - + @@ -961,7 +961,7 @@ - + @@ -1010,10 +1010,10 @@ - + - + @@ -1023,14 +1023,14 @@ - + [b_hallA] - + @@ -1043,10 +1043,10 @@ - + - + @@ -1056,14 +1056,14 @@ - + [b_hallB] - + @@ -1076,10 +1076,10 @@ - + - + @@ -1089,14 +1089,14 @@ - + [b_hallC] - + @@ -1231,7 +1231,7 @@ - + @@ -1247,16 +1247,16 @@ - - + + - + - - int16 + + boolean @@ -1268,15 +1268,15 @@ - + - + - + int16 @@ -1289,15 +1289,15 @@ - + - + - + sfix16_En4 @@ -1310,15 +1310,15 @@ - + - + - + boolean @@ -1331,16 +1331,16 @@ - - + + - + - - boolean + + sfix16_En4 @@ -1352,16 +1352,16 @@ - - + + - + - - sfix16_En4 + + int16 @@ -1461,7 +1461,7 @@ - + @@ -1482,7 +1482,7 @@ - + @@ -1503,7 +1503,7 @@ - + @@ -1557,7 +1557,7 @@ - + @@ -1638,7 +1638,7 @@ - + @@ -1686,7 +1686,7 @@ - + @@ -1734,7 +1734,7 @@ - + @@ -1782,7 +1782,7 @@ - + @@ -1797,11 +1797,11 @@ - - + + - + @@ -1811,30 +1811,30 @@ - - 7 + + 8 - + - - + + - + - - b_motStdStill + + b_enaFOC @@ -1845,11 +1845,11 @@ - - + + - + @@ -1859,30 +1859,30 @@ - - 6 + + 5 - + - - + + - + - - a_elecAngle + + n_motAbs @@ -1926,7 +1926,7 @@ - + @@ -1941,29 +1941,44 @@ - - - + + + - - + + - + - - [z_dirPrev] + + 6 - - + + + + + + + + + + + + + + + + + a_elecAngle @@ -1984,11 +1999,11 @@ - + - + [z_posRaw] @@ -2007,52 +2022,44 @@ - - - + + + - - + + - - - - - - - u1 - - + - - if(u1 ~= 0) + + 2 - - + + - - - + + + - + - - action + + z_posRaw @@ -2063,11 +2070,11 @@ - - + + - + @@ -2077,14 +2084,14 @@ - - [b_motStdStill] + + [z_counterRaw] - + @@ -2096,11 +2103,11 @@ - - + + - + @@ -2110,14 +2117,14 @@ - - [r_inpTgtSca] + + [b_motStdStill] - + @@ -2129,11 +2136,11 @@ - - + + - + @@ -2143,14 +2150,14 @@ - - [z_ctrlModPrev] + + [r_inpTgtSca] - + @@ -2162,29 +2169,44 @@ - - - + + + - - + + - + - - [r_inpTgt] + + 7 - - + + + + + + + + + + + + + + + + + b_motStdStill @@ -2195,28 +2217,28 @@ - - + + - + - + - - [z_ctrlTypSel] + + [n_motAbs] - + @@ -2228,44 +2250,62 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + [b_enaFOC] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [a_elecAngle] + + + + + + + @@ -2286,11 +2326,11 @@ - + - + [b_enaFOC] @@ -2308,11 +2348,11 @@ - - + + - + boolean @@ -2334,11 +2374,11 @@ - + - + [z_counterRaw] @@ -2356,11 +2396,11 @@ - - + + - + int16 @@ -2372,77 +2412,44 @@ - - + + - + - + - - [z_dir] + + [r_inpTgt] - + - - + + - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - + - - [a_elecAngle] - - - - - - - + + sfix16_En4 @@ -2486,7 +2493,7 @@ - + @@ -2501,125 +2508,44 @@ - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - + + - + - + - - [z_posRaw] + + [b_motStdStill] - + - - + + - - + + - - uint8 + + boolean @@ -2630,43 +2556,43 @@ - - + + - + - + - - [z_dirPrev] + + [z_pos] - + - + - - + + - + int8 @@ -2678,77 +2604,44 @@ - - + + - + - + - - [b_motStdStill] + + [z_counter] - + - - - - - - - - - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [b_enaFOC] - - - - - - - + + int16 @@ -2759,44 +2652,44 @@ - - + + - + - + - - [a_elecAngle] + + [n_motAbs] - + - - + + - - + + - - ufix16_En6 + + sfix16_En4 @@ -2808,42 +2701,42 @@ - + - + - + - - [z_ctrlModPrev] + + [z_ctrlModReq] - + - + - - + + - + uint8 @@ -2855,44 +2748,44 @@ - - + + - + - + - - [z_ctrlTypSel] + + [a_elecAngle] - + - - + + - - + + - - uint8 + + ufix16_En6 @@ -2905,7 +2798,7 @@ - + @@ -2919,51 +2812,51 @@ - + - + z_pos - + - + z_dir - + - + z_counter - + - + z_counterRaw - + - + b_enaFOC - + - + a_elecAngle @@ -2993,11 +2886,11 @@ - - + + - + F01_06_Electrical_Angle_Estimation @@ -3014,11 +2907,11 @@ - - + + - + ufix16_En6 @@ -3030,13 +2923,46 @@ - + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + @@ -3046,11 +2972,11 @@ - + - + [z_ctrlTypSel] @@ -3068,11 +2994,11 @@ - - + + - + uint8 @@ -3084,29 +3010,44 @@ - - - + + + - - + + - - + + - - [z_counter] + + [z_dirPrev] - - + + + + + + + + + + + + + + + + + int8 @@ -3117,44 +3058,44 @@ - - + + - + - + - - [n_motAbs] + + [z_dir] - + - - + + - - + + - - sfix16_En4 + + int8 @@ -3165,44 +3106,52 @@ - - - + + + - - + + - - + + - - 8 + + u1 + + + + + + + + if(u1 ~= 0) - - + + - - - + + + - - + + - - b_enaFOC + + action @@ -3213,29 +3162,44 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + [z_posRaw] - - + + + + + + + + + + + + + + + + + uint8 @@ -3248,7 +3212,7 @@ - + @@ -3262,35 +3226,35 @@ - + - + z_ctrlTypSel - + - - r_inpTgt + + z_ctrlModReq - + - - z_ctrlModPrev + + r_inpTgt - + - + r_inpTgtSca @@ -3320,11 +3284,11 @@ - - + + - + F01_01_Input_Scaling @@ -3341,11 +3305,11 @@ - - + + - + sfix16_En4 @@ -3357,64 +3321,82 @@ - + - - + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + - - + + - + - - 6 + + [z_ctrlTypSel] - - - - - - - - - - - - - - - - - z_ctrlModPrev + + - + - - + + - + uint8 @@ -3426,44 +3408,29 @@ - - - + + + - - + + - - + + - - 2 + + [r_inpTgt] - - - - - - - - - - - - - - - - - z_posRaw + + @@ -3474,43 +3441,58 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + 3 - - + + + + + + + + + + + + + + + + + r_inpTgt - + - - + + - + sfix16_En4 @@ -3522,44 +3504,29 @@ - - - + + + - - + + - - + + - - [z_pos] + + [z_ctrlModReq] - - - - - - - - - - - - - - - - - int8 + + @@ -3570,44 +3537,59 @@ - - + + - + - + - - 5 + + 1 - + - - + + - - + + - - n_motAbs + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 @@ -3618,59 +3600,77 @@ - - - + + + - - + + - - + + - - 1 + + [r_inpTgtSca] - - + + - - - + + + - - + + - - z_ctrlTypSel + + sfix16_En4 - - - - + + + + + + + + + + + + + + + - + - - uint8 + + [z_dirPrev] + + + + + + + @@ -3681,7 +3681,7 @@ - + @@ -3710,30 +3710,30 @@ - + - + - - r_inpTgt + + z_ctrlModReq - + - + - sfix16_En4 + uint8 @@ -3857,11 +3857,11 @@ - + - + @@ -3871,11 +3871,11 @@ - + - + @@ -3885,11 +3885,11 @@ - + - + @@ -4305,11 +4305,11 @@ - + - + @@ -4319,11 +4319,11 @@ - + - + @@ -4333,11 +4333,11 @@ - + - + @@ -4347,11 +4347,11 @@ - + - + @@ -4416,5 +4416,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.json index 340428f..c8375ba 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.json @@ -281,11 +281,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8232", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8233", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay2", - "label":"UnitDelay2", + "name":"UnitDelay3", + "label":"UnitDelay3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "inspector":{ "params":[ @@ -331,11 +331,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8231", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8232", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"UnitDelay2", + "label":"UnitDelay2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "inspector":{ "params":[ @@ -381,11 +381,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8233", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8231", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "inspector":{ "params":[ 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 ea8a16e..69aaa8c 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 @@ -250,11 +250,11 @@ - - + + - + @@ -264,7 +264,7 @@ - + @@ -272,7 +272,7 @@ - + @@ -280,7 +280,7 @@ - + @@ -288,7 +288,7 @@ - + @@ -303,37 +303,37 @@ - + - + - + - + uint8 - + - + - + Ini=0 @@ -345,11 +345,11 @@ - - + + - + @@ -359,7 +359,7 @@ - + @@ -367,7 +367,7 @@ - + @@ -375,7 +375,7 @@ - + @@ -383,7 +383,7 @@ - + @@ -398,37 +398,37 @@ - + - + - + - + Ini=0 - + - + - + uint8 @@ -440,11 +440,11 @@ - - + + - + @@ -454,7 +454,7 @@ - + @@ -462,7 +462,7 @@ - + @@ -470,7 +470,7 @@ - + @@ -478,7 +478,7 @@ - + @@ -493,38 +493,38 @@ - + - - - + + + - + - - uint8 + + Ini=0 - - - + + + - + - - Ini=0 + + uint8 @@ -537,7 +537,7 @@ - + @@ -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 d325fbf..ffa983e 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,87 +515,39 @@ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8235", "inspector":{ "params":[ - "NumberOfDimensions", "IndexMode", "IndexOptionArray", - "IndexParamArray", - "OutputSizeArray", - "InputPortWidth", - "SampleTime", "IndexOptions", - "NumberOfDimensions", - "IndexMode", - "IndexOptionArray", "IndexParamArray", - "OutputSizeArray", + "Indices", "InputPortWidth", - "SampleTime", - "IndexOptions", "NumberOfDimensions", - "IndexMode", - "IndexOptionArray", - "IndexParamArray", "OutputSizeArray", - "InputPortWidth", - "SampleTime", - "IndexOptions", - "Indices", - "OutputSizes" + "OutputSizes", + "SampleTime" ], "values":[ - "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" - ], + "[1 3]", "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" + "1", + "-1" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 24 - ] + "tabs_idx":0 }, "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 1cffa5b..c0950cd 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 9a962ae..07f089d 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 @@ -593,56 +593,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:8262", "className":"Simulink.Outport", @@ -773,6 +723,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:8249", "className":"Simulink.ActionPort", 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 113ab00..6cb5478 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 @@ -780,45 +780,93 @@ - - - + + + - + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_dirPrev + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + @@ -833,86 +881,23 @@ - + - - - - - - - - - - - Ini=0 - - - - - + - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - + - - z_dirPrev + + int8 @@ -923,45 +908,45 @@ - - + + - + - + - + - + - + - + - + - + - + @@ -976,27 +961,42 @@ - + - + - - + + - + int8 + + + + + + + + + + + Ini=0 + + + + @@ -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 f405dae..8371bbc 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 @@ -734,91 +734,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8379", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", - "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":[ - "6", - "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:8378", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9430", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_counterRaw", - "label":"z_counterRaw", + "name":"b_motStdStill", + "label":"b_motStdStill", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -847,7 +767,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -1023,11 +943,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8373", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9429", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"z_maxCntRst", - "label":"z_maxCntRst", + "name":"n_stdStillDet", + "label":"n_stdStillDet", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1041,7 +961,7 @@ "FramePeriod" ], "values":[ - "z_maxCntRst", + "n_stdStillDet", "on", "inf", "[]", @@ -1072,32 +992,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9429", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372", + "className":"Simulink.Relay", "icon":"WebViewIcon3", - "name":"n_stdStillDet", - "label":"n_stdStillDet", + "name":"n_commDeacv", + "label":"n_commDeacv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "SampleTime", + "ZeroCross" ], "values":[ - "n_stdStillDet", - "on", - "inf", + "n_commDeacvHi", + "n_commAcvLo", + "1", + "0", + "Elements as channels (sample based)", "[]", "[]", - "Inherit: Inherit via back propagation", + "boolean", "off", - "inf" + "-1", + "on" ], "tabs":[ "Main", @@ -1106,8 +1032,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 5, + 9 ] }, "viewer":{ @@ -1116,53 +1042,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Relay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372", - "className":"Simulink.Relay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8371", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"n_commDeacv", - "label":"n_commDeacv", + "name":"UnitDelay4", + "label":"UnitDelay4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", + "InitialCondition", "InputProcessing", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", "SampleTime", - "ZeroCross" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "n_commDeacvHi", - "n_commAcvLo", - "1", "0", - "Elements as channels (sample based)", - "[]", - "[]", - "boolean", - "off", + "Inherited", "-1", - "on" + "", + "", + "off", + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 5, - 9 + 3, + 4 ] }, "viewer":{ @@ -1171,7 +1092,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Relay", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -1283,11 +1204,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8367", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", + "name":"Relational Operator9", + "label":"Relational Operator9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1299,7 +1220,7 @@ "ZeroCross" ], "values":[ - "~=", + "<", "off", "boolean", "Simplest", @@ -1373,44 +1294,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8371", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8313", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", + "name":"Mux3", + "label":"Mux3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "Inputs", + "DisplayOption" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "2", + "bar" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1418,79 +1320,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9430", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8311", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", + "name":"Mux1", + "label":"Mux1", "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" + "Inputs", + "DisplayOption" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "2", + "bar" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1498,27 +1351,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8306", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8312", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Mux2", + "label":"Mux2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "n_mot", - "local", - "Tag" + "2", + "bar" ], "tabs":[ "Parameter Attributes" @@ -1531,32 +1382,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9427", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8367", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Relational Operator3", + "label":"Relational Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "b_motStdStill", - "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" @@ -1564,7 +1427,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"RelationalOperator", "masktype":"" } }, @@ -1602,11 +1465,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8301", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8300", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1615,7 +1478,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "b_enaFOC", "local", "Tag" ], @@ -1635,11 +1498,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8304", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8303", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1648,7 +1511,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "n_motAbsPrev", "local", "Tag" ], @@ -1668,11 +1531,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8300", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8297", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1681,7 +1544,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "z_counter", "local", "Tag" ], @@ -1701,27 +1564,37 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8299", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8308", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "n_motAbs", - "local", - "Tag" + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1729,24 +1602,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8306", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "dz_trnsDet", + "n_mot", + "local", "Tag" ], "tabs":[ @@ -1760,16 +1635,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8293", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1777,7 +1652,7 @@ "IconDisplay" ], "values":[ - "n_motRaw", + "n_motAbs", "Tag" ], "tabs":[ @@ -1796,11 +1671,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1808,7 +1683,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "dz_trnsDet", "Tag" ], "tabs":[ @@ -1827,21 +1702,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8297", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8293", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", - "local", + "n_motRaw", "Tag" ], "tabs":[ @@ -1855,16 +1728,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8288", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8289", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1872,7 +1745,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "b_edge", "Tag" ], "tabs":[ @@ -1891,11 +1764,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8291", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8288", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From30", + "label":"From30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1903,7 +1776,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -1922,19 +1795,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8286", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9427", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbs", + "b_motStdStill", + "local", "Tag" ], "tabs":[ @@ -1948,26 +1823,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8303", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbsPrev", - "local", + "n_motRaw", "Tag" ], "tabs":[ @@ -1981,41 +1854,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8308", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8373", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "name":"z_maxCntRst", + "label":"z_maxCntRst", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "1", - "u1 ~= 0", - "", + "z_maxCntRst", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "-1", - "on" + "inf" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 4 + 3, + 7 ] }, "viewer":{ @@ -2024,47 +1903,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", - "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", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8283", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8291", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2072,7 +1920,7 @@ "IconDisplay" ], "values":[ - "n_motAbsPrev", + "z_counterRaw", "Tag" ], "tabs":[ @@ -2091,11 +1939,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8280", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8285", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2103,7 +1951,7 @@ "IconDisplay" ], "values":[ - "z_counterRawPrev", + "z_dirPrev", "Tag" ], "tabs":[ @@ -2122,56 +1970,11 @@ } }, { - "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:8276", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2179,7 +1982,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "b_edge", "Tag" ], "tabs":[ @@ -2198,11 +2001,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8292", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8281", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2210,7 +2013,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "b_enaFOC", "Tag" ], "tabs":[ @@ -2229,11 +2032,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8281", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8277", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2241,7 +2044,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "z_counterRaw", "Tag" ], "tabs":[ @@ -2260,25 +2063,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8311", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8379", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", + "name":"b_enaFOC", + "label":"b_enaFOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "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", - "bar" + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "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" @@ -2286,16 +2138,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8276", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2303,7 +2155,7 @@ "IconDisplay" ], "values":[ - "b_edge", + "z_counter", "Tag" ], "tabs":[ @@ -2322,60 +2174,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8269", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM", - "label":"CTRL_COMM", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "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:8314", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Raw_Motor_Speed_Estimation", - "label":"Raw_Motor_Speed_Estimation", + "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":[ @@ -2383,8 +2186,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2396,7 +2199,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2407,9 +2209,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2419,7 +2222,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2432,7 +2235,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2442,18 +2244,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 ] }, @@ -2468,56 +2273,74 @@ } }, { - "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:8275", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8377", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"z_counter", + "label":"z_counter", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "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":[ - "z_counter", - "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" @@ -2525,16 +2348,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8267", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8378", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_dirPrev", - "label":"z_dirPrev", + "name":"z_counterRaw", + "label":"z_counterRaw", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2550,11 +2373,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ "4", @@ -2569,10 +2398,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -2592,16 +2428,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8277", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8286", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2609,7 +2445,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "n_motAbs", "Tag" ], "tabs":[ @@ -2627,6 +2463,39 @@ "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:8270", "className":"Simulink.Constant", @@ -2677,31 +2546,82 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8269", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM", + "label":"CTRL_COMM", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "z_cntInit" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_maxCntRst" + "CTRL_FOC", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ - ], + "Main", + "Signal Attributes", + "-Other" + ], "tabs_idx":[ + 0, + 3, + 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8292", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "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":"" } }, @@ -2784,11 +2704,78 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8289", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8267", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_dirPrev", + "label":"z_dirPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "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:8284", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From24", + "label":"From24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2796,7 +2783,7 @@ "IconDisplay" ], "values":[ - "b_edge", + "b_enaFOC", "Tag" ], "tabs":[ @@ -2815,20 +2802,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8312", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8282", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "IconDisplay" ], "values":[ - "2", - "bar" + "z_dir", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2841,25 +2828,27 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8313", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8299", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Mux3", - "label":"Mux3", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "bar" + "n_motAbs", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2872,66 +2861,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8264", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8275", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "z_counter", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2939,79 +2892,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8377", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8301", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"z_counter", - "label":"z_counter", + "name":"Goto2", + "label":"Goto2", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "z_dirPrev", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3019,16 +2925,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8284", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8280", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", + "name":"From17", + "label":"From17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -3036,7 +2942,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "z_counterRawPrev", "Tag" ], "tabs":[ @@ -3055,19 +2961,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "z_maxCntRst" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8304", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_motRaw", + "z_ctrlTypSel", + "local", "Tag" ], "tabs":[ @@ -3081,26 +3018,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8298", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8283", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motRaw", - "local", + "n_motAbsPrev", "Tag" ], "tabs":[ @@ -3114,7 +3049,74 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8264", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "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":"" } }, 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 8c4dd60..cd19fd7 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 48078e3..85ca02e 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 @@ -107,7 +107,7 @@ - + @@ -700,11 +700,11 @@ - - + + - + @@ -714,78 +714,30 @@ - - 6 + + 5 - + - - + + - - - - - b_enaFOC - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - + - - z_counterRaw + + b_motStdStill @@ -806,11 +758,11 @@ - + - + 2 @@ -828,11 +780,11 @@ - + - + n_motAbs @@ -854,11 +806,11 @@ - + - + z_maxCntRst @@ -876,59 +828,11 @@ - + - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - z_maxCntRst - - - - - - - - - - - - - - - - - - - - - + int16 @@ -950,11 +854,11 @@ - + - + n_stdStillDet @@ -972,11 +876,11 @@ - + - + n_stdStillDet @@ -987,11 +891,11 @@ - + - + sfix16_En4 @@ -1013,51 +917,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -1083,11 +987,11 @@ - + - + n_commDeacv @@ -1098,11 +1002,11 @@ - + - + boolean @@ -1114,45 +1018,45 @@ - - + + - + - + - + - + - + - + - + - + - + @@ -1167,23 +1071,103 @@ - + + + + + + + + + + + + Ini=0 + + + + - - + + - - + + - - int16 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1193,16 +1177,31 @@ - + - + Ini=z_maxCntRst + + + + + + + + + + + int16 + + + + @@ -1211,7 +1210,7 @@ - + @@ -1219,155 +1218,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -1385,11 +1384,11 @@ - + - + sfix16_En4 @@ -1401,30 +1400,30 @@ - - + + - + - + - + - + - - + + @@ -1438,22 +1437,22 @@ - + - + - - + + - + boolean @@ -1475,19 +1474,19 @@ - + - + - + - + @@ -1513,11 +1512,11 @@ - + - + boolean @@ -1529,91 +1528,92 @@ - - - - - - + + + + + + - + - - + + - - + + - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + boolean - - + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - sfix16_En4 - - - - - - - + + - + - - Ini=0 + + int16 @@ -1624,44 +1624,44 @@ - - - + + + - - + + - + - - 5 + + - - + + - - - + + + - + - - b_motStdStill + + sfix16_En4 @@ -1672,62 +1672,68 @@ - - - + + + - - + + - + - + - - [n_mot] + + + + + + + + + + + + + + + + + + - - - - + - - - - - - - - - - - - + + - - - - - - - - [b_motStdStill] + + + - - - + + + + + + + + + + + boolean @@ -1748,11 +1754,11 @@ - + - + [dz_trnsDet] @@ -1771,28 +1777,28 @@ - - + + - + - - + + - - [z_dirPrev] + + [b_enaFOC] - + @@ -1804,28 +1810,28 @@ - - + + - + - - + + - - [z_ctrlTypSel] + + [n_motAbsPrev] - + @@ -1837,28 +1843,28 @@ - - + + - + - + - - [b_enaFOC] + + [z_counter] - + @@ -1870,77 +1876,52 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + u1 + + + + + + + + if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_trnsDet] - - - - - - - + + - - + + - - + + - - boolean + + action @@ -1951,44 +1932,29 @@ - - - + + + - - + + - - + + - - [n_motRaw] + + [n_mot] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2009,11 +1975,11 @@ - + - + [n_motAbs] @@ -2031,11 +1997,11 @@ - + - + sfix16_En4 @@ -2047,29 +2013,44 @@ - - - + + + - - + + - - + + - - [z_counter] + + [dz_trnsDet] - - + + + + + + + + + + + + + + + + + boolean @@ -2080,44 +2061,44 @@ - - + + - + - + - - [z_ctrlTypSel] + + [n_motRaw] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -2128,44 +2109,44 @@ - - + + - + - - + + - - [z_counterRaw] + + [b_edge] - + - - + + - - + + - - int16 + + boolean @@ -2176,44 +2157,44 @@ - - + + - + - + - - [n_motAbs] + + [z_ctrlTypSel] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -2224,28 +2205,28 @@ - - + + - + - + - - [n_motAbsPrev] + + [b_motStdStill] - + @@ -2257,52 +2238,44 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + [n_motRaw] - - + + - - + + - - + + - - action + + sfix16_En4 @@ -2313,44 +2286,44 @@ - - - + + + - - + + - - + + - - [z_dirPrev] + + z_maxCntRst - - + + - - + + - - + + - - int8 + + int16 @@ -2361,44 +2334,44 @@ - - + + - + - - + + - - [n_motAbsPrev] + + [z_counterRaw] - + - - + + - - + + - - sfix16_En4 + + int16 @@ -2409,156 +2382,44 @@ - - - - - - - - - - - - - - - - [z_counterRawPrev] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - - + + - - [z_counter] + + [z_dirPrev] - + - - + + - - + + - - int16 + + int8 @@ -2569,44 +2430,44 @@ - - + + - + - - + + - - [n_motAbs] + + [b_edge] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -2627,11 +2488,11 @@ - + - + [b_enaFOC] @@ -2649,11 +2510,11 @@ - + - + boolean @@ -2665,43 +2526,43 @@ - - - + + + - - + + - - + + - - + + [z_counterRaw] - - + + - + - - + + - + int16 @@ -2713,44 +2574,44 @@ - - - + + + - - + + - - + + - - [b_edge] + + 6 - - + + - - - + + + - - + + - - boolean + + b_enaFOC @@ -2761,44 +2622,44 @@ - - - + + + - - + + - - + + - - CTRL_COM + + [z_counter] - - + + - + - - + + - - uint8 + + int16 @@ -2811,7 +2672,7 @@ - + @@ -2825,67 +2686,67 @@ - + - + z_dir - + - + z_dirPrev - + - + z_counterRawPrev - + - + n_motAbsPrev - + - + z_counter - + - + dz_trnsDet - + - + n_motRaw - + - + if { } @@ -2915,11 +2776,11 @@ - + - + Raw_Motor_Speed_Estimation @@ -2936,11 +2797,11 @@ - + - + action @@ -2953,16 +2814,16 @@ - - + + - - + + - - sfix16_En4 + + boolean @@ -2974,16 +2835,16 @@ - - + + - - + + - - int16 + + sfix16_En4 @@ -2995,16 +2856,16 @@ - - + + - - + + - - boolean + + int16 @@ -3015,50 +2876,50 @@ - + - - + + - - + + - - + + - - [z_dir] + + 3 - - + + - - - + + + - - + + - - int8 + + z_counter @@ -3069,44 +2930,92 @@ - - + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_counterRaw + + + + + + + + + + + + - + - + - - [z_counter] + + [n_motAbs] - + - - + + - - + + - - int16 + + sfix16_En4 @@ -3117,59 +3026,77 @@ - - - + + + - - + + - - + + - - 4 + + [n_motRaw] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - z_dirPrev + + 0 + + + + + + + - - + + - - + + - - int8 + + sfix16_En4 @@ -3180,44 +3107,44 @@ - - - + + + - - + + - - + + - - [z_counterRaw] + + CTRL_FOC - - + + - + - - + + - - int16 + + uint8 @@ -3228,43 +3155,43 @@ - - - + + + - - + + - - + + - - 0 + + [n_motAbs] - - + + - + - - + + - + sfix16_En4 @@ -3276,250 +3203,316 @@ - - - + + + - - + + - - - - - - - - inc - + - - + + - - max + + - + - - rst + + - + - - cnt + + - + - - + + - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + [b_motStdStill] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - - + + - - + + 4 - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + z_dirPrev - - - - - - - + + + + + + - - + + - - + + int8 + + + + + + + + + + + + + + + + + + - - + + - - + + [b_enaFOC] - - + + - - - + + + - - + + - - Counter + + boolean + + + + + + + + + + + + + + - - - - - + + - - Ini=z_maxCntRst + + [z_dir] + + + + + + + - - + + - - + + - - int16 + + int8 - + + + + + + + + + + + + + + + - - + + - - + + [n_motAbs] - - - - - - - - - - - - - - - - - - + + + + + @@ -3530,76 +3523,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - - - - - - - - + - - + + [z_counter] - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + int16 @@ -3610,44 +3571,29 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [z_dirPrev] - - - - - - - - - - - - - - - - - boolean + + @@ -3658,44 +3604,44 @@ - - + + - + - - + + - - [b_edge] + + [z_counterRawPrev] - + - - + + - - + + - - boolean + + int16 @@ -3706,155 +3652,250 @@ - - - + + + - - + + - - + + + + + + inc + + + + + + + + max + + + + + + + + rst + + + + + + + + cnt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - + + + + + + + - - - - - - + + + + + + + - + - - sfix16_En4 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + - - + + - - - + + + - + - - boolean + + Counter - - - - - - - - - - - - - - + + + - - + + - - 1 - - - - - - - + + Ini=z_maxCntRst - - - + + + - - + + - - z_ctrlTypSel + + int16 - - - - + - + - - uint8 + + + + + + + + + + + + + + + + + + + + + + @@ -3865,44 +3906,29 @@ - - - + + + - - + + - - + + - - 3 + + [z_ctrlTypSel] - - - - - - - - - - - - - - - - - z_counter + + @@ -3913,44 +3939,44 @@ - - + + - + - - + + - - [b_enaFOC] + + [n_motAbsPrev] - + - - + + - - + + - - boolean + + sfix16_En4 @@ -3961,77 +3987,59 @@ - - - + + + - - + + - - + + - - [n_motRaw] + + 1 - - + + - - - + + + - - + + - - sfix16_En4 + + z_ctrlTypSel - - - - - - - - - - - - - - - + + + + - - + + - - [n_motRaw] - - - - - - - + + uint8 @@ -4044,7 +4052,7 @@ - + @@ -4052,19 +4060,19 @@ - + - + - + - + @@ -4079,11 +4087,11 @@ - + - + boolean @@ -4116,19 +4124,19 @@ - + - + - + - + @@ -4143,11 +4151,11 @@ - + - + boolean @@ -4958,5 +4966,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 a0492a3..b31ead3 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 @@ -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 25e1a7f..1312c29 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,4 +1,84 @@ [ + { + "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", @@ -140,86 +220,6 @@ "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:2413", "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 aa890f2..1c5bcdd 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,12 +10,60 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + cnt + + + + + + + - + @@ -23,51 +71,51 @@ - + - + u - + - + rst - + - + y - + - + 1 - + - + z - + - + @@ -80,61 +128,61 @@ - - - + + + - - + + - - Ini=z_cntInit + + int16 - - - + + + - - + + - - int16 + + Ini=z_cntInit - + - + - + - + - + - + @@ -158,35 +206,35 @@ - + - + - + - + - + - + - + - + @@ -204,11 +252,11 @@ - + - + int16 @@ -230,19 +278,19 @@ - + - + - + - + @@ -268,11 +316,11 @@ - + - + int16 @@ -282,54 +330,6 @@ - - - - - - - - - - - - - - - - - - 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 ff02ba2..7e02f16 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 @@ -245,11 +245,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8360", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8359", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_motRaw", - "label":"n_motRaw", + "name":"dz_trnsDet", + "label":"dz_trnsDet", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -278,7 +278,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -324,65 +324,6 @@ "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:8356", "className":"Simulink.Relay", @@ -439,42 +380,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8355", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8354", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"cf_speedCoef", - "label":"cf_speedCoef", + "name":"UnitDelay5", + "label":"UnitDelay5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Value", - "VectorParams1D", + "InitialCondition", + "InputProcessing", "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "cf_speedCoef", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,0)", + "0", + "Inherited", + "-1", + "", + "", "off", - "inf" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, 3, - 7 + 4 ] }, "viewer":{ @@ -483,16 +425,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8354", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8353", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay5", - "label":"UnitDelay5", + "name":"UnitDelay4", + "label":"UnitDelay4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -538,50 +480,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8348", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8357", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"g_Ha", + "label":"g_Ha", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "u2 ~= 0", - "on", + "4", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", + "Inherit: Inherit via back propagation", "off", + "Zero", "off", - "-1", - "0", - "on" + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 9 + 2, + 8, + 11 ] }, "viewer":{ @@ -590,55 +534,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8347", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8352", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"UnitDelay3", + "label":"UnitDelay3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", + "InitialCondition", + "InputProcessing", "SampleTime", - "Threshold", - "ZeroCross" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "u2 ~= 0", - "on", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "off", - "off", - "-1", "0", - "on" + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 9 + 3, + 4 ] }, "viewer":{ @@ -647,47 +584,145 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8346", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8351", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum7", - "label":"Sum7", + "name":"UnitDelay2", + "label":"UnitDelay2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "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", - "+-", - "on", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", + "0", + "Inherited", + "-1", + "", + "", "off", - "1", - "All dimensions", - "-1" + [ + ], + "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: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: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", @@ -696,8 +731,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 1, + 9 ] }, "viewer":{ @@ -706,16 +741,73 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8345", + "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:8346", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum13", - "label":"Sum13", + "name":"Sum7", + "label":"Sum7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -735,7 +827,7 @@ ], "values":[ "rectangular", - "++++", + "+-", "on", "Inherit: Inherit via internal rule", "[]", @@ -770,27 +862,39 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8341", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8344", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Relational Operator4", + "label":"Relational Operator4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "dz_trnsDet", - "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" @@ -798,16 +902,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8340", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8342", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -816,7 +920,7 @@ "IconDisplay" ], "values":[ - "z_counterRawPrev", + "cf_speedCoef", "local", "Tag" ], @@ -836,27 +940,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8339", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8355", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"cf_speedCoef", + "label":"cf_speedCoef", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "n_motAbsPrev", - "local", - "Tag" + "cf_speedCoef", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,0)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -864,26 +984,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8338", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8332", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_dirPrev", - "local", + "z_dir", "Tag" ], "tabs":[ @@ -897,16 +1015,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8342", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8341", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -915,7 +1033,7 @@ "IconDisplay" ], "values":[ - "cf_speedCoef", + "dz_trnsDet", "local", "Tag" ], @@ -935,39 +1053,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8344", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8337", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" + "z_counter", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -975,16 +1081,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8333", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8331", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -992,7 +1098,7 @@ "IconDisplay" ], "values":[ - "n_motAbsPrev", + "cf_speedCoef", "Tag" ], "tabs":[ @@ -1011,11 +1117,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8332", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8325", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1023,7 +1129,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "cf_speedCoef", "Tag" ], "tabs":[ @@ -1042,11 +1148,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8329", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8335", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1054,7 +1160,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "z_counter", "Tag" ], "tabs":[ @@ -1073,43 +1179,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8350", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8323", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"Divide13", + "label":"Divide13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "*/", + "Element-wise(.*)", "off", - [ - ], - "Auto" + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 9 ] }, "viewer":{ @@ -1118,16 +1231,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8358", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8360", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_counter", - "label":"z_counter", + "name":"n_motRaw", + "label":"n_motRaw", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1156,7 +1269,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -1169,7 +1282,7 @@ "auto", "off", "off", - "z_maxCntRst", + "[]", "off", "held", "off", @@ -1203,19 +1316,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8327", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8336", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", + "z_dir", + "local", "Tag" ], "tabs":[ @@ -1229,30 +1344,46 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8331", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8320", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Abs2", + "label":"Abs2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" ], "values":[ - "cf_speedCoef", - "Tag" + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1260,16 +1391,73 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Abs", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8325", + "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:8328", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1277,7 +1465,7 @@ "IconDisplay" ], "values":[ - "cf_speedCoef", + "z_counter", "Tag" ], "tabs":[ @@ -1296,44 +1484,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8353", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8326", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", + "name":"From1", + "label":"From1", "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_counterRawPrev", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1341,24 +1510,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8328", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8339", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", + "n_motAbsPrev", + "local", "Tag" ], "tabs":[ @@ -1372,45 +1543,37 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8323", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8321", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Divide13", - "label":"Divide13", + "name":"Constant4", + "label":"Constant4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "FramePeriod" ], "values":[ - "*/", - "Element-wise(.*)", - "off", + "0", + "on", + "inf", "[]", "[]", - "fixdt(1,16,4)", - "off", - "Simplest", + "Inherit: Inherit via back propagation", "off", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -1419,8 +1582,8 @@ ], "tabs_idx":[ 0, - 2, - 9 + 3, + 7 ] }, "viewer":{ @@ -1429,56 +1592,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8324", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8319", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Divide14", - "label":"Divide14", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "held", + "Only when execution is resumed" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1486,7 +1623,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"ActionPort", "masktype":"" } }, @@ -1548,32 +1685,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8321", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8324", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Constant4", - "label":"Constant4", + "name":"Divide14", + "label":"Divide14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "0", - "on", - "inf", + "*/", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(1,16,4)", "off", - "inf" + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1582,8 +1727,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 9 ] }, "viewer":{ @@ -1592,76 +1737,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8334", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8349", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8345", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", + "name":"Sum13", + "label":"Sum13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Criteria", + "IconShape", + "Inputs", "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "u2 ~= 0", + "rectangular", + "++++", "on", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", + "Inherit: Same as first input", "off", + "Simplest", "off", - "-1", - "0", - "on" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1670,8 +1786,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 10 ] }, "viewer":{ @@ -1680,7 +1796,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Sum", "masktype":"" } }, @@ -1752,90 +1868,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8320", - "className":"Simulink.Abs", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8317", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Abs2", - "label":"Abs2", + "name":"z_counterRawPrev", + "label":"z_counterRawPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ + "3", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", + "Inherit: auto", "off", + "inherit", "-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: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", + "Inherit", "-1", + "auto", + "off", "", - "", + "on", "off", - [ - ], - "Auto" + "off", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -1844,47 +1930,16 @@ "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", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8317", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8358", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_counterRawPrev", - "label":"z_counterRawPrev", + "name":"z_counter", + "label":"z_counter", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1900,14 +1955,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "1", "Port number", "[]", "[]", @@ -1919,10 +1980,17 @@ "-1", "auto", "off", - "", - "on", "off", + "z_maxCntRst", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -1942,24 +2010,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8326", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8338", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counterRawPrev", + "z_dirPrev", + "local", "Tag" ], "tabs":[ @@ -1973,25 +2043,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8319", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8329", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "held", - "Only when execution is resumed" + "z_dirPrev", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2004,79 +2074,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8359", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8333", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"dz_trnsDet", - "label":"dz_trnsDet", + "name":"From7", + "label":"From7", "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" + "GotoTag", + "IconDisplay" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "n_motAbsPrev", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2084,7 +2105,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, @@ -2156,11 +2177,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8335", + "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:8330", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -2168,7 +2222,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "z_dir", "Tag" ], "tabs":[ @@ -2187,21 +2241,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8337", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8327", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "z_counter", - "local", "Tag" ], "tabs":[ @@ -2215,49 +2267,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8351", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8334", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"UnitDelay2", - "label":"UnitDelay2", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "dz_trnsDet", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2265,7 +2298,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"From", "masktype":"" } }, @@ -2336,39 +2369,6 @@ "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:8343", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.png index fde781e..229a7ed 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.png differ 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 7beef42..7f7d552 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,78 +234,30 @@ - - 3 + + 2 - + - - + + - - - - - n_motRaw - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - + - - uint16 + + dz_trnsDet @@ -318,7 +270,7 @@ - + @@ -326,51 +278,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -396,11 +348,11 @@ - + - + dz_cntTrnsDet @@ -411,11 +363,11 @@ - + - + boolean @@ -427,59 +379,91 @@ - - - + + + - - + + - + - - + + - - cf_speedCoef + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - cf_speedCoef + + Ini=0 - - + + - - + + - - uint16 + + int16 @@ -490,45 +474,45 @@ - - - + + + - + - + - + - + - + - + - + - + - + @@ -543,37 +527,37 @@ - + - + - - + + - + Ini=0 - + - - + + - + int16 @@ -585,204 +569,329 @@ - - - + + + - - + + - - + + - - + + 4 + + + + + + + + + + + + + + - - + + - - + + uint16 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + Ini=0 - - - - - - - + + + + + + - - + + - - + + int16 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + Ini=0 + + + + + + + - - + + - - + + int16 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - T + + - - + + - - F + + + + + + + + + + - - + + - - + + - - + + - - threshold=0 - Criteria : u2 ~= 0 + + Ini=0 - - + + - - + + - - sfix16_En4 + + boolean @@ -793,187 +902,187 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + T - - + + - + F - - + + - + - - + + - + threshold=0 Criteria : u2 ~= 0 @@ -981,15 +1090,15 @@ - + - - + + - + sfix16_En4 @@ -1001,489 +1110,204 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + - - + + - - - - - - - - - - - - - - - - + + - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - + + - - + + - - int16 + + - - - - - - - - - - - - - - - - - - - - + + - - [dz_trnsDet] - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRawPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - [n_motAbsPrev] - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - [z_dirPrev] - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - [cf_speedCoef] - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - boolean + + T - - - - - - - - - - - - - - - - - - - - + + - - [n_motAbsPrev] + + F - - + + - + - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - + + + + + + + sfix16_En4 - - - + + + - - + + - - int8 + + threshold=0 + Criteria : u2 ~= 0 @@ -1494,44 +1318,60 @@ - - - + + + - - + + - - + + - - [z_dirPrev] + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - int8 + + int16 @@ -1542,46 +1382,30 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + @@ -1595,38 +1419,56 @@ - - + + - + - - + + - + boolean + + + + + + + + + + + + + + - - - - - + + - - Ini=0 + + [cf_speedCoef] + + + + + + + @@ -1637,44 +1479,59 @@ - - - + + + - - + + - - + + - - 1 + + cf_speedCoef - - + + - - + + - - + + - - z_counter + + cf_speedCoef + + + + + + + + + + + + + + + uint16 @@ -1685,44 +1542,44 @@ - - + + - + - + - - [z_counter] + + [z_dir] - + - - + + - - + + - - int16 + + int8 @@ -1733,44 +1590,62 @@ - - - + + + - - + + - - + + - - [cf_speedCoef] + + [dz_trnsDet] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - uint16 + + [z_counter] + + + + + + + @@ -1781,43 +1656,43 @@ - - + + - + - + - + [cf_speedCoef] - + - + - - + + - + uint16 @@ -1829,91 +1704,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + [cf_speedCoef] - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 + + - - + + - - + + - - int16 + + uint16 @@ -1924,43 +1752,43 @@ - - + + - + - + - + [z_counter] - + - + - - + + - + int16 @@ -1974,7 +1802,7 @@ - + @@ -1982,35 +1810,35 @@ - + - + - + - + - + - + - + - + @@ -2029,11 +1857,11 @@ - + - + sfix16_En4 @@ -2045,69 +1873,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - + + 3 - - + + - - - + + + - - + + - - sfix16_En4 + + n_motRaw @@ -2118,52 +1921,29 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [z_dir] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2174,92 +1954,76 @@ - - - + + + - - + + - + - - + + - - 0 - - - - - - - + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [dz_trnsDet] + + + + + + + + + + - - + + - - + + - - + + - - boolean + + int16 @@ -2272,7 +2036,7 @@ - + @@ -2280,155 +2044,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -2446,11 +2210,11 @@ - + - + threshold=0 Criteria : u2 ~= 0 @@ -2462,11 +2226,11 @@ - + - + sfix16_En4 @@ -2478,58 +2242,276 @@ - - - + + + - - + + - - + + - - 4 + + [z_counter] - - + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + - - + + - - + + - - n_motAbsPrev + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + sfix16_En4 @@ -2541,76 +2523,69 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + - - - - - - - - - - + + - - + + - - + + - - int16 + + sfix16_En4 @@ -2621,139 +2596,163 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - + - - + + - + int16 - - - - - - - - - - - Ini=0 - - - - - - - + + + - - + + - - + + - - [z_dir] + + 4 - - + + + + + + + + + + + + + + + + + n_motAbsPrev - - + + - - + + - - int8 + + sfix16_En4 @@ -2774,11 +2773,11 @@ - + - + 3 @@ -2796,11 +2795,11 @@ - + - + z_counterRawPrev @@ -2811,11 +2810,11 @@ - + - + int16 @@ -2827,44 +2826,77 @@ - - - + + + - - + + - - + + - - [z_counterRawPrev] + + 1 - - + + - - - + + + - - + + - - int16 + + z_counter + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + @@ -2875,44 +2907,44 @@ - - - + + + - - + + - - + + - - if { } + + [z_dirPrev] - - + + - - - + + + - - + + - - Action Port + + int8 @@ -2923,44 +2955,44 @@ - - - + + + - - + + - - + + - - 2 + + [n_motAbsPrev] - - + + - - - + + + - - + + - - dz_trnsDet + + sfix16_En4 @@ -2981,11 +3013,11 @@ - + - + 2 @@ -3003,11 +3035,11 @@ - + - + z_dirPrev @@ -3018,11 +3050,11 @@ - + - + int8 @@ -3034,44 +3066,77 @@ - - + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + - + - + - - [z_counter] + + [z_dir] - + - - + + - - + + - - int16 + + int8 @@ -3082,29 +3147,44 @@ - - - + + + - - + + - - + + - + [z_counter] - - + + + + + + + + + + + + + + + + + int16 @@ -3115,91 +3195,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + [dz_trnsDet] - - - - - - - - - - + + - - - - - - - - - - int16 - - - - - - - + + - - + + - - Ini=0 + + boolean @@ -3220,11 +3253,11 @@ - + - + 1 @@ -3242,11 +3275,11 @@ - + - + z_dir @@ -3257,11 +3290,11 @@ - + - + int8 @@ -3271,44 +3304,11 @@ - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - + @@ -3773,10 +3773,10 @@ - + - + @@ -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 a7fd219..ccad967 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 @@ -950,114 +950,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8420", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecAngle1", - "label":"a_elecAngle1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "a_elecAngle", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,6)", - "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:8417", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "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,12)", - "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:8421", "className":"Simulink.Outport", @@ -1138,6 +1030,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:9664", "className":"Simulink.MinMax", @@ -1245,19 +1194,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8403", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8411", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", + "z_posHighRes", + "local", "Tag" ], "tabs":[ @@ -1271,16 +1222,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8412", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8410", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1289,7 +1240,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "z_posLowRes", "local", "Tag" ], @@ -1309,11 +1260,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8398", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8405", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1321,7 +1272,7 @@ "IconDisplay" ], "values":[ - "z_posLowRes", + "z_dir", "Tag" ], "tabs":[ @@ -1340,19 +1291,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8397", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8412", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "b_enaFOC", + "local", "Tag" ], "tabs":[ @@ -1366,7 +1319,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -1402,21 +1355,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8410", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8403", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_posLowRes", - "local", + "z_counter", "Tag" ], "tabs":[ @@ -1430,56 +1381,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8394", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8400", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], + "a_elecAngle", + "Tag" + ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1487,16 +1412,109 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8393", + "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:8397", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaFOC", + "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:8394", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide3", + "label":"Divide3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1549,11 +1567,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8392", + "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":[ @@ -1571,12 +1589,12 @@ "SampleTime" ], "values":[ - "*/", + "**", "Element-wise(.*)", "off", "[]", "[]", - "fixdt(1,16,14)", + "Inherit: Same as first input", "off", "Simplest", "off", @@ -1606,11 +1624,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9665", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8420", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"a_elecAngle1", + "label":"a_elecAngle1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1624,12 +1642,12 @@ "FramePeriod" ], "values":[ - "0", + "a_elecAngle", "on", "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(0,16,6)", "off", "inf" ], @@ -1722,44 +1740,11 @@ } }, { - "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:8400", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8396", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1767,7 +1752,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "b_enaFOC", "Tag" ], "tabs":[ @@ -1786,25 +1771,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8395", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8417", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Sum3", + "label":"Sum3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "z_posHighRes", - "Tag" + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,12)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 10 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1812,30 +1825,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8396", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9665", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "b_enaFOC", - "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" @@ -1843,20 +1874,21 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8418", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8392", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "Criteria", + "Inputs", + "Multiplication", "InputSameDT", "OutMin", "OutMax", @@ -1864,24 +1896,23 @@ "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "u2 ~= 0", + "*/", + "Element-wise(.*)", "off", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", + "fixdt(1,16,14)", "off", + "Simplest", "off", - "-1", - "0", - "on" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1890,7 +1921,7 @@ ], "tabs_idx":[ 0, - 1, + 2, 9 ] }, @@ -1900,38 +1931,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8405", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "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":"Product", "masktype":"" } }, 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 5f9ac98..3fa476d 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 1d93f5f..4b47fb2 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 @@ - + @@ -1144,44 +1144,44 @@ - - - + + + - - + + - + - - a_elecAngle + + 1 - - + + - - - + + + - + - - ufix16_En6 + + a_elecAngle @@ -1192,116 +1192,188 @@ - - - + + + - - + + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - + - + - - sfix16_En12 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - - + + + - - + + - - a_elecAngle + + sfix16_En12 @@ -1314,7 +1386,7 @@ - + @@ -1322,19 +1394,19 @@ - + - + - + - + @@ -1360,11 +1432,11 @@ - + - + sfix16_En12 @@ -1378,7 +1450,7 @@ - + @@ -1386,19 +1458,19 @@ - + - + - + - + @@ -1424,11 +1496,11 @@ - + - + int16 @@ -1440,44 +1512,29 @@ - - - + + + - - + + - - + + - - [z_counter] + + [z_posHighRes] - - - - - - - - - - - - - - - - - int16 + + @@ -1488,28 +1545,28 @@ - - + + - + - + - - [b_enaFOC] + + [z_posLowRes] - + @@ -1521,43 +1578,43 @@ - - + + - + - + - - [z_posLowRes] + + [z_dir] - + - + - - + + - + int8 @@ -1569,44 +1626,29 @@ - - - - - - + + + + + + - - + + - + [b_enaFOC] - - - - - - - - - - - - - - - - - boolean + + @@ -1627,11 +1669,11 @@ - + - + [z_counterRaw] @@ -1649,11 +1691,11 @@ - + - + int16 @@ -1665,29 +1707,44 @@ - - - + + + - - + + - - + + - - [z_posLowRes] + + [z_counter] - - + + + + + + + + + + + + + + + + + int16 @@ -1698,52 +1755,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [a_elecAngle] - - + + - - + + - - + + - - sfix16_En14 + + ufix16_En6 @@ -1754,52 +1803,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [z_posLowRes] - - + + - - + + - - + + - - ufix16_En6 + + int8 @@ -1810,69 +1851,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - + + [b_enaFOC] - - + + - - + + - - + + - - sfix16_En14 + + boolean @@ -1883,43 +1899,43 @@ - - - + + + - - + + - - + + - - 0 + + [z_posHighRes] - - + + - + - - + + - + sfix16_En12 @@ -1931,59 +1947,52 @@ - - - + + + - - + + - - + + - - 5 + + + + + + + + + + - - + + - - - + + + - - + + - - b_enaFOC - - - - - - - - - - - - - - - boolean + + sfix16_En14 @@ -1994,29 +2003,52 @@ - - - + + + - - + + - - + + - - [z_posHighRes] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + ufix16_En6 @@ -2027,43 +2059,43 @@ - - - + + + - - + + - - + + - - [a_elecAngle] + + a_elecAngle - - + + - + - - + + - + ufix16_En6 @@ -2075,44 +2107,59 @@ - - - + + + - - + + - - + + - - [z_posHighRes] + + 5 - - + + + + + + + + + + + + + + + + + b_enaFOC - - + + - - + + - - sfix16_En12 + + boolean @@ -2133,11 +2180,11 @@ - + - + [b_enaFOC] @@ -2155,11 +2202,11 @@ - + - + boolean @@ -2171,187 +2218,115 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - + - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - T + + sfix16_En12 + + + + + + + + + + + + + + + + + + - - + + - - F + + 0 - - + + - + - - + + - + sfix16_En12 @@ -2363,44 +2338,69 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - [z_dir] + + + - - + + - - + + - + - - int8 + + sfix16_En14 @@ -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 80449c9..eb83b24 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 @@ -683,11 +683,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8524", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9405", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"t_errDequal", - "label":"t_errDequal", + "name":"r_errInpTgtThres", + "label":"r_errInpTgtThres", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -701,7 +701,7 @@ "FramePeriod" ], "values":[ - "t_errDequal", + "r_errInpTgtThres", "on", "inf", "[]", @@ -731,65 +731,6 @@ "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:8520", "className":"Simulink.Gain", @@ -849,103 +790,6 @@ "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:8515", "className":"Simulink.Switch", @@ -1003,65 +847,6 @@ "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:9404", "className":"Simulink.RelationalOperator", @@ -1198,27 +983,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9406", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8525", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"t_errQual", + "label":"t_errQual", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_errCodePrev", - "local", - "Tag" + "t_errQual", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1226,16 +1027,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8504", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9395", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1244,7 +1045,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "VqFinPrev", "local", "Tag" ], @@ -1264,11 +1065,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9397", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8503", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1277,7 +1078,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_errCode", "local", "Tag" ], @@ -1297,25 +1098,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8493", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8517", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"UnitDelay", + "label":"UnitDelay", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "b_errFlag", - "Tag" + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" ], "tabs":[ - "Parameter Attributes" + "Main", + "State Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1323,16 +1143,75 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8491", + "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:8494", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1359,11 +1238,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8493", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1371,7 +1250,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "b_errFlag", "Tag" ], "tabs":[ @@ -1390,21 +1269,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8503", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8491", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_errCode", - "local", + "z_errCodeRaw", "Tag" ], "tabs":[ @@ -1418,56 +1295,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9398", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9402", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" + "VqFinPrev", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1475,48 +1326,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8525", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8500", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"t_errQual", - "label":"t_errQual", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "t_errQual", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "z_errCodeRaw", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1524,24 +1359,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9408", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9406", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "z_errCodePrev", + "local", "Tag" ], "tabs":[ @@ -1555,113 +1392,94 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Debounce_Filter", - "label":"Debounce_Filter", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8487", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", "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" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "on", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", + "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: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", - "", - "Use subsystem name", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Reusable function", - "-1", - "", + "Real World Value (RWV)", + "Floor", "off", - "" + "-1" ], "tabs":[ - "Main", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8494", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8492", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1669,7 +1487,7 @@ "IconDisplay" ], "values":[ - "z_errCodeRaw", + "b_errFlag", "Tag" ], "tabs":[ @@ -1688,11 +1506,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8484", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8482", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Conversion3", - "label":"Data Type Conversion3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1735,40 +1553,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8483", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9398", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", + "name":"Switch3", + "label":"Switch3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", "RndMeth", "SaturateOnIntegerOverflow", - "SampleTime" + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ + "u2 ~= 0", + "off", "[]", "[]", - "uint8", + "Inherit: Inherit via back propagation", "off", - "Real World Value (RWV)", - "Floor", + "Zero", "off", - "-1" + "off", + "-1", + "0", + "on" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 7 + 1, + 9 ] }, "viewer":{ @@ -1777,7 +1605,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Switch", "masktype":"" } }, @@ -1831,69 +1659,40 @@ } }, { - "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:8509", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8483", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "OutMin", + "OutMax", "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", "RndMeth", - "SampleTime", - "ZeroCross" + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "~=", + "[]", + "[]", + "uint8", "off", - "boolean", - "Simplest", - "-1", - "on" + "Real World Value (RWV)", + "Floor", + "off", + "-1" ], "tabs":[ - "Main", - "Data Type", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 7 ] }, "viewer":{ @@ -1902,16 +1701,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8479", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8480", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1925,7 +1724,7 @@ "FramePeriod" ], "values":[ - "7", + "0", "on", "inf", "[]", @@ -1987,11 +1786,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8478", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8479", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"CTRL_COMM", - "label":"CTRL_COMM", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -2005,7 +1804,7 @@ "FramePeriod" ], "values":[ - "0", + "7", "on", "inf", "[]", @@ -2036,30 +1835,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9410", - "className":"Simulink.SFunction", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8478", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Bitwise Operator1", - "label":"Bitwise Operator1", + "name":"CTRL_COMM", + "label":"CTRL_COMM", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "logicop", - "UseBitMask", - "NumInputPorts", - "BitMask", - "BitMaskRealWorld" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "AND", + "0", "on", - "1", - "bin2dec('100')", - "Stored Integer" + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 3, + 7 ] }, "viewer":{ @@ -2068,107 +1879,123 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"S-Function", - "masktype":"Bitwise Operator" - } - }, - { - "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", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8517", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", + "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":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "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":[ - "0", - "Inherited", - "-1", + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "Auto", "", "", "off", - [ - ], - "Auto" + "", + "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", - "State Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 5, + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Either edge detection" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9395", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "VqFinPrev", - "local", + "b_motStdStill", "Tag" ], "tabs":[ @@ -2182,27 +2009,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8500", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8474", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "z_errCodeRaw", - "local", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -2215,25 +2040,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8474", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9408", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "z_errCodePrev", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2246,7 +2071,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, @@ -2318,35 +2143,121 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9396", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8524", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", + "name":"t_errDequal", + "label":"t_errDequal", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "2", - "Port number", + "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: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", @@ -2385,42 +2296,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9405", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8509", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"r_errInpTgtThres", - "label":"r_errInpTgtThres", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "FramePeriod" + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "r_errInpTgtThres", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "~=", "off", - "inf" + "boolean", + "Simplest", + "-1", + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 1, + 4 ] }, "viewer":{ @@ -2429,24 +2336,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8487", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9397", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_posRaw", + "b_motStdStill", + "local", "Tag" ], "tabs":[ @@ -2460,92 +2369,189 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9403", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs4", - "label":"Abs4", + "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":[ - "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: Same as input", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Floor", + "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", + "on", + "off", + "" ], "tabs":[ - "Signal Attributes", + "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: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":"Abs", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8482", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8514", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", + "name":"Sum", + "label":"Sum", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", "RndMeth", "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", "SampleTime" ], "values":[ + "rectangular", + "+++", + "off", + "Inherit: Same as first input", "[]", "[]", - "uint8", + "Inherit: Same as first input", "off", - "Real World Value (RWV)", - "Floor", + "Simplest", "off", + "1", + "All dimensions", "-1" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 7 + 2, + 10 ] }, "viewer":{ @@ -2554,47 +2560,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8480", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9403", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", + "name":"Abs4", + "label":"Abs4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" ], "values":[ - "0", - "on", - "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: Same as input", "off", - "inf" + "Floor", + "off", + "-1", + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 6 ] }, "viewer":{ @@ -2603,7 +2607,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Abs", "masktype":"" } }, 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 095256b..fc6e556 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 b96c86f..bcfb02c 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 @@ -472,92 +472,59 @@ - - - + + + - - + + - + - - t_errDequal + + r_errInpTgtThres - - + + - - - + + + - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - + - - 4 - - - - - - - + + r_errInpTgtThres - + - - + + - - uint8 + + int16 @@ -578,11 +545,11 @@ - + - + 2 @@ -600,11 +567,11 @@ - + - + uint8 @@ -614,163 +581,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -778,155 +593,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -944,11 +759,11 @@ - + - + uint8 @@ -960,117 +775,29 @@ - - - + + + - - + + - + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -1096,11 +823,11 @@ - + - + boolean @@ -1114,7 +841,7 @@ - + @@ -1122,27 +849,27 @@ - + - + - + - + - + - + @@ -1168,11 +895,11 @@ - + - + boolean @@ -1186,7 +913,7 @@ - + @@ -1194,27 +921,27 @@ - + - + - + - + - + - + @@ -1240,11 +967,11 @@ - + - + boolean @@ -1256,29 +983,44 @@ - - - + + + - - + + - - + + - - [z_errCodePrev] + + t_errQual - - + + + + + + + + + + + + + + + + + uint16 @@ -1289,28 +1031,28 @@ - - + + - + - - + + - - [b_errFlag] + + [VqFinPrev] - + @@ -1322,28 +1064,28 @@ - - + + - + - - + + - - [b_motStdStill] + + [z_errCode] - + @@ -1355,44 +1097,91 @@ - - - + + + - - + + - + - - + + - - [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - boolean + + uint8 + + + + + + + + + + + + + + + Ini=0 @@ -1403,43 +1192,43 @@ - - - + + + - - + + - - + + - - [z_errCodeRaw] + + 4 - - + + - + - - + + - + uint8 @@ -1451,44 +1240,44 @@ - - + + - + - - + + - - [b_motStdStill] + + [z_errCodeRaw] - + - - + + - - + + - - boolean + + uint8 @@ -1499,29 +1288,44 @@ - - - + + + - - + + - - + + - - [z_errCode] + + [b_errFlag] - - + + + + + + + + + + + + + + + + + boolean @@ -1532,180 +1336,92 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [z_errCodeRaw] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + uint8 + + + + + + + + + + + + + + + + + + - - + + - - ~= 0 + + [VqFinPrev] - - + + - - + + - - + + - - boolean + + int16 @@ -1716,44 +1432,62 @@ - - - + + + - - + + - - + + - - t_errQual + + [z_errCodeRaw] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - uint16 + + [z_errCodePrev] + + + + + + + @@ -1764,43 +1498,43 @@ - - + + - + - + - - [z_errCodePrev] + + [z_posRaw] - + - + - - + + - + uint8 @@ -1812,435 +1546,404 @@ - - - + + + - - + + - + - - + + - - u + + - - + + - - tAcv + + - - - - - - - tDeacv + + + + + + + + + + + + + + - - - - - - - y + + + + + + - - - - - - - - - + - - + + uint8 + + + + + + + + + + + + + + + + + + - + - - + + [b_errFlag] - - - - - - - + + + + + + + + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + uint8 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + ~= 0 - - - - - - - - - - - - - - - - - Debounce_Filter + + - + - - + + - + boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - - - - - [z_errCodeRaw] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + 1 - - - - - - - - - - + + - - + + - - + + - - uint8 + + boolean @@ -2261,19 +1964,19 @@ - + - + - + - + @@ -2299,11 +2002,11 @@ - + - + uint8 @@ -2315,44 +2018,44 @@ - - + + - + - + - - 1 + + 0 - + - - + + - - + + - - boolean + + uint8 @@ -2363,44 +2066,44 @@ - - + + - + - - + + - - [VqFinPrev] + + [z_errCodePrev] - + - + - - + + - - int16 + + uint8 @@ -2411,60 +2114,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 7 - - - - - - - - - - + + - - + + - - + + - - boolean + + uint8 @@ -2475,43 +2162,43 @@ - - + + - + - + - - 7 + + 0 - + - + - - + + - + uint8 @@ -2523,44 +2210,148 @@ - - - + + + - - + + - - + + - - [z_errCodePrev] + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint8 + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2571,44 +2362,44 @@ - - - + + + - - + + - - + + - - 0 + + [b_motStdStill] - - + + - - + + - - + + - - uint8 + + boolean @@ -2619,60 +2410,44 @@ - - - + + + - - + + - - - - - - Bitwise - - - - - - - - AND - - - - + + - - 0x4 + + if { } - - + + - - - + + + - - + + - - uint8 + + Action Port @@ -2683,44 +2458,44 @@ - - + + - + - - + + - - [b_errFlag] + + [z_errCodePrev] - + - - + + - - + + - - boolean + + uint8 @@ -2731,91 +2506,59 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + 3 - - - - - - - - - - + + - - - + + + - - + + - - Ini=0 + + VqFinPrev - + - - + + - - uint8 + + int16 @@ -2826,29 +2569,44 @@ - - - + + + - - + + - - + + - - [VqFinPrev] + + t_errDequal - - + + + + + + + + + + + + + + + + + uint16 @@ -2859,29 +2617,60 @@ - - - + + + - - + + - - + + - - [z_errCodeRaw] + + Bitwise + + + + + + + + AND + + + + + + + + 0x4 - - + + + + + + + + + + + + + + + + + uint8 @@ -2892,44 +2681,59 @@ - - - + + + - - + + - - + + - - if { } + + 2 - - + + - - + + - - + + - - Action Port + + b_motStdStill + + + + + + + + + + + + + + + boolean @@ -2940,59 +2744,60 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + - - - - + - - - - - - - - - - - VqFinPrev + + + + + + + - - + + - - + + - - int16 + + boolean @@ -3003,122 +2808,356 @@ - - - + + + - - + + - - + + - - 2 + + [b_motStdStill] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + tAcv + + + + + + + + tDeacv + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - b_motStdStill + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - r_errInpTgtThres + + - - + + - - + + - - + + - - r_errInpTgtThres + + Debounce_Filter - - + + - - + + - - int16 + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3129,44 +3168,29 @@ - - - + + + - - + + - - + + - - [z_posRaw] + + [b_errFlag] - - - - - - - - - - - - - - - - - uint8 + + @@ -3177,76 +3201,84 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - + - - + + - - int16 + + uint8 @@ -3257,108 +3289,76 @@ - - - + + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - + + - - - - - - + + + + + + + - - + + - - uint8 + + - - - - - - - - - - - - + + - - - - - - - 0 - - - + + - + - + - - uint8 + + int16 @@ -3371,7 +3371,7 @@ - + @@ -4005,5 +4005,5 @@ - + 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 6d5875c..7ca8d9b 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 @@ -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 d4700ec..d564903 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,61 +1,4 @@ [ - { - "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:2447", "className":"Simulink.Outport", @@ -137,25 +80,39 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2445", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "yDeacv", - "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" @@ -163,24 +120,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2436", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2443", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "yPrev", + "local", "Tag" ], "tabs":[ @@ -194,16 +153,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2443", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2442", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -212,7 +171,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "yDeacv", "local", "Tag" ], @@ -232,11 +191,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2437", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2439", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -263,72 +222,84 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", + "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":[ - "z_cntInit" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "0" + "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/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2434", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2441", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Constant6", - "label":"Constant6", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "on", - "inf", - "[]", - "[]", - "uint16", - "off", - "inf" + "tDeacv", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -336,16 +307,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2439", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2440", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -353,7 +324,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "b_cntRst", "Tag" ], "tabs":[ @@ -372,38 +343,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2445", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2432", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", + "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", + "icon":"WebViewIcon3", + "name":"Constant6", + "label":"Constant6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" + "1", + "on", + "inf", + "[]", + "[]", + "uint16", + "off", + "inf" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 3, + 7 ] }, "viewer":{ @@ -412,32 +418,66 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2441", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2430", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"b_cntRst", + "label":"b_cntRst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "tDeacv", - "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" @@ -445,47 +485,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2432", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "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":[ - "InitializeStates", - "PropagateVarSize" + "z_cntInit" ], "values":[ - "held", - "Only when execution is resumed" + "0" ], "tabs":[ - "Parameter Attributes" ], - "tabs_idx":0 + "tabs_idx":[ + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2440", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -493,7 +531,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "yDeacv", "Tag" ], "tabs":[ @@ -612,50 +650,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2430", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2433", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"b_cntRst", - "label":"b_cntRst", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "2", - "Port number", + "0", + "on", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "Inherit: Inherit via back propagation", "off", - "off" + "inf" ], "tabs":[ "Main", @@ -664,8 +684,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -674,40 +694,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "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", + "blocktype":"Constant", "masktype":"" } }, @@ -779,43 +766,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2433", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2436", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "yPrev", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -823,7 +792,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2437", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "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":"" } }, 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 e0806c9..6d715c5 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 1de4efb..a586c53 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,198 +10,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - @@ -215,11 +23,11 @@ - + - + 1 @@ -237,11 +45,11 @@ - + - + yDeacv @@ -253,43 +61,59 @@ - - - + + + - - + + - + - - + + - - [yDeacv] + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + boolean @@ -301,44 +125,29 @@ - - - + + + - - + + - - + + - + [yPrev] - - - - - - - - - - - - - - - - - boolean + + @@ -349,28 +158,28 @@ - - + + - + - + - - [yPrev] + + [yDeacv] - + @@ -382,43 +191,43 @@ - - + + - + - + - + [tDeacv] - + - + - - + + - + uint16 @@ -430,235 +239,317 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - inc + + - + - - max + + - + - - rst + + - + - - cnt + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + T - + - - + + F - - - - - - - + + + + + + + + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - + - - + + [tDeacv] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - Counter + + [b_cntRst] + + + + + + + - - + + - - + + - - uint16 + + boolean - + + + + + + + + + + + + + + + - - + + - - + + elseif { } - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + Action Port @@ -679,11 +570,11 @@ - + - + 1 @@ -701,11 +592,11 @@ - + - + uint16 @@ -717,44 +608,59 @@ - - - + + + - - + + - - + + - - [tDeacv] + + 2 - - + + + + + + + + + + + + + + + + + b_cntRst - - + + - + - - uint16 + + boolean @@ -765,141 +671,235 @@ - - - + + + - - + + - + - + - - + + inc + + + + + + + + max + + + + + + + + rst + + + + + + + + cnt + + + + + + + + + + + + + + + + - + - - + + - - - - - - - - - - - - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [tDeacv] + + - - + + - - - - - - - - - - - - - - - + + + + - - + + - - elseif { } + + Counter - - - + + + + + + + + + + + uint16 - - - - + - - + + - - Action Port + + + + + + + + + + + + + + + + + + + + + + @@ -910,11 +910,11 @@ - - + + - + @@ -924,29 +924,29 @@ - - [b_cntRst] + + [yDeacv] - + - + - + - + boolean @@ -1054,58 +1054,43 @@ - - - + + + - - + + - + - - 2 + + 0 - - - - - - - - - - - - - - - - - b_cntRst + + - + - - + + - + boolean @@ -1115,39 +1100,6 @@ - - - - - - - - - - - - - - - - - - [yDeacv] - - - - - - - - - - - - - - - @@ -1160,11 +1112,11 @@ - + - + 1 @@ -1182,11 +1134,11 @@ - + - + tDeacv @@ -1197,11 +1149,11 @@ - + - + uint16 @@ -1213,43 +1165,43 @@ - - - + + + - - + + - - + + - - 0 + + [yPrev] - - + + - + - - + + - + boolean @@ -1259,6 +1211,54 @@ + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + @@ -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 283b6b3..20af827 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 444311e..457c5b5 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,35 +79,6 @@ "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", @@ -167,59 +138,6 @@ "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", @@ -354,6 +272,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:2412", "className":"Simulink.Inport", @@ -421,6 +368,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:2515#out:1", "className":"Simulink.Line", 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 ff51857..dac3243 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 @@ - - - - - - - - - - - - - - - - - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=z_cntInit - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -206,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -252,11 +117,11 @@ - + - + uint16 @@ -268,60 +133,59 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 3 - - - - - + + + + - - - + + + + + + + + + + + rst - - + + - - + + - - uint16 + + boolean @@ -332,59 +196,59 @@ - - + + - + - + - - 3 + + 2 - + - - + + - - + + - - rst + + max - - + + - - + + - - boolean + + uint16 @@ -395,63 +259,135 @@ - - - + + + - - + + - - + + - - 2 + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + - - + + - - - + + + - - + + - - max + + Ini=z_cntInit - - + + - - + + - + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -468,11 +404,11 @@ - + - + 1 @@ -490,11 +426,11 @@ - + - + inc @@ -505,11 +441,75 @@ - + - + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 d638710..10a939c 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,49 +1,37 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2491", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2490", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Criteria", + "Operator", "InputSameDT", - "OutMin", - "OutMax", "OutDataTypeStr", - "LockScale", "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", "SampleTime", - "Threshold", "ZeroCross" ], "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", + ">", "off", + "boolean", + "Simplest", "-1", - "0", "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, 1, - 9 + 4 ] }, "viewer":{ @@ -52,24 +40,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2484", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2489", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "tAcv", + "b_cntRst", + "local", "Tag" ], "tabs":[ @@ -83,16 +73,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2483", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2488", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "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:2484", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -100,7 +123,7 @@ "IconDisplay" ], "values":[ - "yAcv", + "tAcv", "Tag" ], "tabs":[ @@ -119,63 +142,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2492", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2491", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"yAcv", - "label":"yAcv", + "name":"Switch2", + "label":"Switch2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "Threshold", + "ZeroCross" ], "values":[ - "1", - "Port number", + "u2 ~= 0", + "off", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "Inherit: Inherit via back propagation", "off", - "[]", + "Zero", "off", - "held", "off", + "-1", "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", @@ -184,8 +184,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 1, + 9 ] }, "viewer":{ @@ -194,16 +194,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2481", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2483", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -211,7 +211,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "yAcv", "Tag" ], "tabs":[ @@ -230,11 +230,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2488", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2486", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -243,7 +243,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "tAcv", "local", "Tag" ], @@ -263,21 +263,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2486", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2482", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "tAcv", - "local", "Tag" ], "tabs":[ @@ -291,25 +289,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2477", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2481", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "held", - "Only when execution is resumed" + "yPrev", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -322,24 +320,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2482", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2487", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "tAcv", + "yAcv", + "local", "Tag" ], "tabs":[ @@ -353,7 +353,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -387,58 +387,43 @@ } }, { - "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:2487", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2478", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "yAcv", - "local", - "Tag" + "1", + "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" @@ -446,16 +431,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2476", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2492", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_errPrev", - "label":"b_errPrev", + "name":"yAcv", + "label":"yAcv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -471,14 +456,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "1", "Port number", "[]", "[]", @@ -490,10 +481,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -513,16 +511,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2478", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2477", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "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:2479", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"Constant6", + "label":"Constant6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -541,7 +570,7 @@ "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "uint16", "off", "inf" ], @@ -567,11 +596,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2475", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2476", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_cntRst", - "label":"b_cntRst", + "name":"b_errPrev", + "label":"b_errPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -594,7 +623,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -634,39 +663,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2490", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2485", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" + "b_cntRst", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -674,16 +689,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2474", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2475", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"tAcv", - "label":"tAcv", + "name":"b_cntRst", + "label":"b_cntRst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -706,7 +721,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -746,32 +761,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2479", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2474", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Constant6", - "label":"Constant6", + "name":"tAcv", + "label":"tAcv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "1", - "on", - "inf", + "Port number", "[]", "[]", - "uint16", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -780,8 +813,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -790,40 +823,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "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", + "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 5717ff0..ec5ec7e 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 88059ca..50c56e5 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,6 +10,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + @@ -23,155 +201,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -189,11 +367,11 @@ - + - + boolean @@ -205,44 +383,44 @@ - - + + - + - + - - [tAcv] + + [yAcv] - + - - + + - - + + - - uint16 + + boolean @@ -253,44 +431,29 @@ - - - + + + - - + + - - + + - - [yAcv] + + [tAcv] - - - - - - - - - - - - - - - - - boolean + + @@ -301,44 +464,44 @@ - - - + + + - - + + - - + + - - 1 + + [tAcv] - - + + - - - + + + - - + + - - yAcv + + uint16 @@ -359,11 +522,11 @@ - + - + [yPrev] @@ -381,11 +544,11 @@ - + - + boolean @@ -397,61 +560,28 @@ - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - + + - + - + - - [tAcv] + + [yAcv] - + @@ -461,102 +591,6 @@ - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [tAcv] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -569,155 +603,155 @@ - + - + inc - + - + max - + - + rst - + - + cnt - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -735,11 +769,11 @@ - + - + Counter @@ -750,11 +784,11 @@ - + - + uint16 @@ -762,29 +796,29 @@ - + - + - + - + - + - + @@ -798,43 +832,43 @@ - - - + + + - - + + - - + + - - [b_cntRst] + + 1 - - + + - + - - + + - + boolean @@ -846,29 +880,44 @@ - - - + + + - - + + - - + + - - [yAcv] + + 1 - - + + + + + + + + + + + + + + + + + yAcv @@ -879,59 +928,44 @@ - - - + + + - - + + - - + + - - 3 + + if { } - - + + - - - - - - - - - - b_errPrev - - - - - - - + + - - + + - - boolean + + Action Port @@ -942,44 +976,44 @@ - - + + - + - + - + 1 - + - - + + - - + + - - boolean + + uint16 @@ -990,58 +1024,58 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - b_cntRst + + b_errPrev - + - - + + - + boolean @@ -1053,59 +1087,43 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [b_cntRst] - - - - - - - - - - + + - + - - + + - + boolean @@ -1117,59 +1135,59 @@ - - + + - + - + - - 1 + + 2 - + - - + + - - + + - - tAcv + + b_cntRst - - + + - - + + - - uint16 + + boolean @@ -1180,77 +1198,59 @@ - - - + + + - - + + - - + + - + 1 - - + + - - - + + + - - + + - - uint16 + + tAcv - - - - - - - - - - - - - - - + + + + - + - - [b_cntRst] - - - - - - - + + uint16 @@ -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 b0d0e8d..9dcdf26 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 a4f3c99..22b08f2 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 @@ -1,62 +1,41 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2418", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2416", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"cnt", - "label":"cnt", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "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":[ - "1", - "Port number", + "round", + "|++", + "on", + "Inherit: Same as first input", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", + "Inherit: Same as first input", "off", - "held", + "Simplest", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -66,7 +45,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -75,36 +54,60 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2515", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2415", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax", + "label":"MinMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "inspector":{ "params":[ - "initVal" + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" ], "values":[ - "z_cntInit" + "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/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"MinMax", "masktype":"" } }, @@ -176,46 +179,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2415", - "className":"Simulink.MinMax", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2418", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"MinMax", - "label":"MinMax", + "name":"cnt", + "label":"cnt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "inspector":{ "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", "LockScale", - "OutMax", - "OutMin", - "RndMeth", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", + "1", + "Port number", "[]", "[]", - "Floor", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", "-1", + "auto", "off", - "on" + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ + "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1 + 2, + 11 ] }, "viewer":{ @@ -224,7 +254,36 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"MinMax", + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "z_cntInit" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", "masktype":"" } }, @@ -362,65 +421,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2416", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "on", - "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:8486:2480:2515#out:1", "className":"Simulink.Line", 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 aff5487..a9a8b5d 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 @@ -13,44 +13,68 @@ - - - + + + - - + + - + - - 1 + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - cnt + + uint16 @@ -61,135 +85,64 @@ - - - + + + - - + + - - - - - - - - u - - - - - - - - rst - - - - - - - - y - + - - - - - 1 - - - - + - - z + + - - + + - - + + - - - - + - - - - - - - - - - Ini=z_cntInit + + + + + + - + - - + + - + uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -206,11 +159,11 @@ - + - + 3 @@ -228,11 +181,11 @@ - + - + rst @@ -243,11 +196,11 @@ - + - + boolean @@ -259,64 +212,183 @@ - - - + + + - - + + - + - - + + - - + + 1 + + + + + + + + + + + + + + - - + + - - + + cnt - - + + + + + + + + + + + + + + + + + + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + - - + + + + + + + + + + + + + + + + + Ini=z_cntInit - + - - + + - + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -333,11 +405,11 @@ - + - + 2 @@ -355,11 +427,11 @@ - + - + max @@ -370,11 +442,11 @@ - + - + uint16 @@ -396,11 +468,11 @@ - + - + 1 @@ -418,11 +490,11 @@ - + - + inc @@ -432,84 +504,12 @@ - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + 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 b114a9f..33aed37 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,32 +120,32 @@ - - - + + + - + - - boolean + + Ini=0 - - - + + + - + - - 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 4be4c1f..251cb3e 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 @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2496", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "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:2509", "className":"Simulink.UnitDelay", @@ -142,8 +62,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -155,7 +75,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -166,9 +85,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -178,7 +98,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -191,7 +111,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -201,18 +120,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 ] }, @@ -227,33 +149,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2472", - "className":"Simulink.Merge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2466", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "3", - "[]", - "off", - "[]" + "tDeacv", + "local", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -261,7 +177,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"Goto", "masktype":"" } }, @@ -299,11 +215,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2462", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2464", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -312,7 +228,7 @@ "IconDisplay" ], "values":[ - "y", + "yPrev", "local", "Tag" ], @@ -332,52 +248,120 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2461", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2507", + "className":"Either edge detection", + "icon":"WebViewIcon4", + "name":"either_edge", + "label":"either_edge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "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":[ - "b_cntRst", - "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":"" + "blocktype":"SubSystem", + "masktype":"Either edge detection" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2460", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2461", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "yPrev", + "b_cntRst", + "local", "Tag" ], "tabs":[ @@ -391,7 +375,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -427,27 +411,33 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2464", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2472", + "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" ], "values":[ - "yPrev", - "local", - "Tag" + "3", + "[]", + "off", + "[]" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -455,16 +445,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Merge", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2457", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2458", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -472,7 +462,7 @@ "IconDisplay" ], "values":[ - "y", + "yPrev", "Tag" ], "tabs":[ @@ -491,44 +481,11 @@ } }, { - "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:2458", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2456", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -536,7 +493,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "u", "Tag" ], "tabs":[ @@ -555,54 +512,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2467", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "2", - "u1 ~= 0", - "u2 ~=0", - "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:8486:2452", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2454", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -610,7 +524,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "u", "Tag" ], "tabs":[ @@ -629,11 +543,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2449", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2453", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -641,7 +555,7 @@ "IconDisplay" ], "values":[ - "tAcv", + "u", "Tag" ], "tabs":[ @@ -660,11 +574,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2453", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2451", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -672,7 +586,7 @@ "IconDisplay" ], "values":[ - "u", + "yPrev", "Tag" ], "tabs":[ @@ -691,11 +605,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2448", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2449", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -703,7 +617,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "tAcv", "Tag" ], "tabs":[ @@ -722,19 +636,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2455", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2463", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "yPrev", + "u", + "local", "Tag" ], "tabs":[ @@ -748,30 +664,42 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2451", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2467", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "yPrev", - "Tag" + "2", + "u1 ~= 0", + "u2 ~=0", + "on", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -779,16 +707,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2507", - "className":"Either edge detection", - "icon":"WebViewIcon4", - "name":"either_edge", - "label":"either_edge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Dequalification", + "label":"Dequalification", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -796,8 +724,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -809,7 +737,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -820,9 +747,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -831,8 +759,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -845,7 +773,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -855,18 +782,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 ] }, @@ -877,103 +807,132 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Either edge detection" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Dequalification", - "label":"Dequalification", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2450", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", "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" + "GotoTag", + "IconDisplay" ], "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", - "" + "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: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: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:2452", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "tDeacv", + "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":"" } }, @@ -990,8 +949,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1003,7 +962,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1014,9 +972,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1026,7 +985,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1039,7 +998,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1049,18 +1007,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 ] }, @@ -1075,42 +1036,11 @@ } }, { - "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:2450", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2457", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1118,7 +1048,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "y", "Tag" ], "tabs":[ @@ -1204,58 +1134,74 @@ } }, { - "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:2456", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2496", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"y", + "label":"y", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "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":[ - "u", - "Tag" + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "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" @@ -1263,7 +1209,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, @@ -1334,6 +1280,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2455", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "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: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", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2420", "className":"Simulink.Inport", @@ -1447,11 +1455,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2470", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2469", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator3", - "label":"Logical Operator3", + "name":"Logical Operator2", + "label":"Logical Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1492,11 +1500,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2469", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2470", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", + "name":"Logical Operator3", + "label":"Logical Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ 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 c957682..2accc0b 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 d783ead..ef2a71f 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 @@ -10,60 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - + @@ -71,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -120,32 +72,32 @@ - - - + + + - - + + - - boolean + + Ini=0 - - - + + + - - + + - - Ini=0 + + boolean @@ -172,43 +124,43 @@ - + - + tAcv - + - + b_cntRst - + - + b_errPrev - + - + yAcv - + - + if { } @@ -238,11 +190,11 @@ - + - + Qualification @@ -255,16 +207,16 @@ - - + + - - + + - - boolean + + action @@ -276,16 +228,16 @@ - - + + - - + + - - action + + boolean @@ -296,66 +248,35 @@ - + - - + + - - + + - - - - - - - - - + - - + + - - + + [tDeacv] - - - - - - - - - - - - - - - - - - - - - - - - - boolean + + @@ -376,11 +297,11 @@ - + - + [tAcv] @@ -399,28 +320,28 @@ - - + + - + - + - - [y] + + [yPrev] - + @@ -432,125 +353,148 @@ - - - + + + - - + + - - + + - - [b_cntRst] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - [yPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + boolean - - - - - - - - - - - - - - - + - - + + - - [b_cntRst] - - - - - - - + + - - - - - - - - - - - - - boolean + + + + + + + + + + + + + + + + + + @@ -561,28 +505,28 @@ - - + + - + - + - - [yPrev] + + [b_cntRst] - + @@ -594,43 +538,43 @@ - - + + - + - + - - [y] + + [b_cntRst] - + - + - - + + - + boolean @@ -642,29 +586,60 @@ - - - + + + - - + + - + - - + + - - [u] + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + boolean @@ -685,11 +660,11 @@ - + - + [yPrev] @@ -707,11 +682,11 @@ - + - + boolean @@ -723,106 +698,44 @@ - - - + + + - - + + - - - - - - u1 - - - - - - - - u2 - - - - - - - - if(u1 ~= 0) - - - - - - - - elseif(u2 ~=0) - - - - + + - - else + + [u] - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action + + - - + + - + - - action + + boolean @@ -833,11 +746,11 @@ - - + + - + @@ -847,30 +760,30 @@ - - [tDeacv] + + [u] - + - - + + - + - - uint16 + + boolean @@ -881,11 +794,11 @@ - - + + - + @@ -895,30 +808,30 @@ - - [tAcv] + + [u] - + - - + + - + - - uint16 + + boolean @@ -929,11 +842,11 @@ - - + + - + @@ -943,29 +856,29 @@ - - [u] + + [yPrev] - + - + - + - + boolean @@ -977,11 +890,11 @@ - - + + - + @@ -991,30 +904,30 @@ - - [yPrev] + + [tAcv] - + - - + + - + - - boolean + + uint16 @@ -1025,92 +938,29 @@ - - - + + + - - + + - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - + - - [yPrev] + + [u] - - - - - - - - - - - - - - - - - boolean + + @@ -1121,148 +971,106 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + u1 - - + + - - + + u2 - - + + - - + + if(u1 ~= 0) - - + + - - + + elseif(u2 ~=0) - - + + - - + + else - - + + - - + + - - + + - - boolean + + action - + + + + - - + + - - + + action - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + action @@ -1289,43 +1097,43 @@ - + - + tDeacv - + - + b_cntRst - + - + yPrev - + - + yDeacv - + - + elseif { } @@ -1355,11 +1163,11 @@ - + - + Dequalification @@ -1376,11 +1184,11 @@ - + - + boolean @@ -1397,12 +1205,195 @@ - - + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [y] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + - - action + + uint16 @@ -1414,14 +1405,8 @@ - - - - - - - + @@ -1435,27 +1420,27 @@ - + - + yPrev - + - + yDefault - + - + else { } @@ -1485,11 +1470,11 @@ - + - + Default @@ -1502,16 +1487,16 @@ - - + + - - + + - - boolean + + action @@ -1523,16 +1508,16 @@ - - + + - - + + - - action + + boolean @@ -1543,49 +1528,49 @@ - + - + - + - + - - [u] + + [y] - + - + - - + + - + boolean @@ -1597,44 +1582,59 @@ - - - + + + - - + + - - + + - - [b_cntRst] + + 2 - - + + + + + + + + + + + + + + + + + tAcv - - + + - + - - boolean + + uint16 @@ -1645,11 +1645,11 @@ - - + + - + @@ -1659,45 +1659,30 @@ - - 2 + + 1 - + - - + + - - - - - tAcv - - - - - - - - - - - + - - uint16 + + y @@ -1708,29 +1693,59 @@ - - - + + + - - + + - - + + - - [tDeacv] + + 3 - - + + + + + + + + + + + + + + + + + tDeacv + + + + + + + + + + + + + + + uint16 @@ -1741,43 +1756,43 @@ - - + + - + - + - - [u] + + [yPrev] - + - + - - + + - + boolean @@ -1789,59 +1804,44 @@ - - - + + + - - + + - - + + - - 3 + + [yPrev] - - - - - - - - - - - - - - - - - tDeacv + + - - + + - + - - uint16 + + boolean @@ -1979,11 +1979,11 @@ - - + + - + @@ -1993,7 +1993,7 @@ - + @@ -2001,7 +2001,7 @@ - + @@ -2012,22 +2012,22 @@ - + - + - + boolean - + @@ -2043,11 +2043,11 @@ - - + + - + @@ -2057,7 +2057,7 @@ - + @@ -2065,7 +2065,7 @@ - + @@ -2076,22 +2076,22 @@ - + - + - + 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 f0cbe28..482ccb4 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,32 +120,32 @@ - - - + + + - + - - Ini=0 + + boolean - - - + + + - + - - boolean + + Ini=0 @@ -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 211da68..87ed2d0 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 @@ -111,73 +111,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9391", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8654", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"z_ctrlModPrev", - "label":"z_ctrlModPrev", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "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":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", "0", + "Elements as channels (sample based)", + "-1", + "", "", + "off", [ ], - "Dialog", - "Auto", - "off" + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 4 ] }, "viewer":{ @@ -186,16 +156,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8650", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8651", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -204,7 +174,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "b_motEna", "local", "Tag" ], @@ -224,11 +194,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9423", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8647", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -237,7 +207,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "b_toTrqMod", "local", "Tag" ], @@ -257,11 +227,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8643", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8645", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -270,7 +240,7 @@ "IconDisplay" ], "values":[ - "b_toActive", + "z_ctrlModReq", "local", "Tag" ], @@ -290,11 +260,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8640", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8643", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -303,7 +273,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "b_toActive", "local", "Tag" ], @@ -323,19 +293,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9390", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8642", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "z_ctrlModPrev", + "local", "Tag" ], "tabs":[ @@ -349,16 +321,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8646", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8639", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -367,7 +339,7 @@ "IconDisplay" ], "values":[ - "b_toSpdMod", + "z_ctrlMod", "local", "Tag" ], @@ -387,11 +359,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8635", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -399,7 +371,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_motEna", "Tag" ], "tabs":[ @@ -418,11 +390,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8628", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -430,7 +402,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "z_ctrlModPrev", "Tag" ], "tabs":[ @@ -449,11 +421,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8636", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8630", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -461,7 +433,38 @@ "IconDisplay" ], "values":[ - "b_toTrqMod", + "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: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":[ @@ -479,6 +482,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8646", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:8625", "className":"Simulink.From", @@ -510,12 +546,45 @@ "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:8603", "className":"Simulink.SubSystem", "icon":"WebViewIcon6", - "name":"F02_02_Control_Mode_Manager", - "label":"F02_02_Control_Mode_Manager", + "name":"F03_02_Control_Mode_Manager", + "label":"F03_02_Control_Mode_Manager", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -523,8 +592,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -536,7 +605,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -547,9 +615,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -558,8 +627,8 @@ "ReadWrite", "Stateflow.Translate.translate", "ExplicitOnly", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -572,7 +641,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -582,18 +650,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 ] }, @@ -608,199 +679,11 @@ } }, { - "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":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "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", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "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:8624", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "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: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:8645", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8650", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -809,7 +692,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_errFlag", "local", "Tag" ], @@ -828,79 +711,12 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8539", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "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:8546", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F02_01_Mode_Transition_Calculation", - "label":"F02_01_Mode_Transition_Calculation", + "name":"F03_01_Mode_Transition_Calculation", + "label":"F03_01_Mode_Transition_Calculation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -908,8 +724,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -921,7 +737,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -932,9 +747,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -944,7 +760,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -957,107 +773,57 @@ "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: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", "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "-1", "", "off", - [ - ], - "Auto" + "on", + "off", + "" ], "tabs":[ "Main", - "State Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 5, + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8639", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8624", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlMod", - "local", + "b_toActive", "Tag" ], "tabs":[ @@ -1071,16 +837,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8539", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -1103,7 +869,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -1143,27 +909,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8647", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"b_motEna", + "label":"b_motEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "b_toTrqMod", - "local", - "Tag" + "3", + "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" @@ -1171,7 +971,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, @@ -1243,11 +1043,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8651", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9423", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -1256,7 +1056,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "b_motStdStill", "local", "Tag" ], @@ -1275,6 +1075,68 @@ "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":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "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:8536", "className":"Simulink.Inport", @@ -1342,6 +1204,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8628", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:8634#out:1", "className":"Simulink.Line", @@ -2260,57 +2153,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9390#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "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:9422#out:1", "className":"Simulink.Line", 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 e84f51b..1eb3478 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 40dc059..e5b0300 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 @@ -1,10 +1,10 @@ - + - + @@ -46,7 +46,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -109,44 +109,76 @@ - - - + + + - - + + - + - + - - 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - z_ctrlModPrev + + uint8 @@ -157,28 +189,28 @@ - - + + - + - + - - [b_errFlag] + + [b_motEna] - + @@ -190,28 +222,28 @@ - - + + - + - + - - [b_motStdStill] + + [b_toTrqMod] - + @@ -223,28 +255,28 @@ - - + + - + - + - - [b_toActive] + + [z_ctrlModReq] - + @@ -256,28 +288,28 @@ - - + + - + - + - - [b_toOpen] + + [b_toActive] - + @@ -289,44 +321,29 @@ - - - + + + - - + + - - + + - + [z_ctrlModPrev] - - - - - - - - - - - - - - - - - uint8 + + @@ -337,28 +354,28 @@ - - + + - + - + - - [b_toSpdMod] + + [z_ctrlMod] - + @@ -370,44 +387,44 @@ - - + + - + - + - - [z_ctrlModReq] + + [b_motEna] - + - - + + - - + + - - uint8 + + boolean @@ -418,44 +435,44 @@ - - + + - + - + - - [b_errFlag] + + [z_ctrlModPrev] - + - - + + - - + + - - boolean + + uint8 @@ -466,43 +483,43 @@ - - + + - + - + - - [b_toTrqMod] + + [b_toSpdMod] - + - + - - + + - + boolean @@ -514,43 +531,43 @@ - - + + - + - + - - [b_toOpen] + + [b_motStdStill] - + - + - - + + - + boolean @@ -562,128 +579,29 @@ - - - + + + - - - - - - - - + + - - - - - - b_toOpen - - - - - - - - b_toActive - - - - - - - - b_toSpdMod - - - - - - - - b_toTrqMod - - - - + + - - z_ctrlMod + + [b_toSpdMod] - - - - - - - - - - - - - - - - - F02_02_Control_Mode_Manager - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -694,49 +612,43 @@ - - - - - - - - + + - + - + - - [b_motStdStill] + + [b_toOpen] - + - + - - + + - + boolean @@ -748,28 +660,28 @@ - - + + - + - + - - [z_ctrlModPrev] + + [b_toOpen] - + @@ -781,221 +693,128 @@ - - - + + + - - + + + + + + + + - - + + - - [z_ctrlModPrev] - - - - - - - - - - - - - - + + b_toOpen - - + + - - uint8 + + b_toActive - - - - - - - - - - - - - - - - - - - - + + - - [b_motEna] - - - - - - - - - - - - - - + + b_toSpdMod - - + + - - boolean + + b_toTrqMod - - - - - - - - - - - - - - - - - - - - + + - - [b_toActive] - - - - - - - + + z_ctrlMod - - - - + - - - + + + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [b_toSpdMod] - - - - - - - + + F03_02_Control_Mode_Manager - - + + + + + + + + - - + + - - boolean + + uint8 - - - - - - - - - - - - - - - - - + + + + - - [z_ctrlModReq] + + - - + + + + + + + + @@ -1006,59 +825,35 @@ - - - + + + + + + + + + - - + + - - + + - - 4 + + [b_errFlag] - - - - - - - - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 + + @@ -1071,7 +866,7 @@ - + @@ -1085,75 +880,75 @@ - + - + b_motEna - + - + b_motStdStill - + - + b_errFlag - + - + z_ctrlModReq - + - + z_ctrlModPrev - + - + b_toOpen - + - + b_toActive - + - + b_toSpdMod - + - + b_toTrqMod @@ -1183,12 +978,12 @@ - - + + - - F02_01_Mode_Transition_Calculation + + F03_01_Mode_Transition_Calculation @@ -1200,15 +995,15 @@ - + - - + + - + boolean @@ -1225,11 +1020,11 @@ - - + + - + boolean @@ -1246,11 +1041,11 @@ - - + + - + boolean @@ -1263,15 +1058,15 @@ - + - - + + - + boolean @@ -1283,82 +1078,50 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - + + + + + + + + + [b_toActive] + - - + + - - + + - - + + - - uint8 + + boolean @@ -1369,29 +1132,59 @@ - - - + + + - - + + - - + + - - [z_ctrlMod] + + 4 - - + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 @@ -1412,11 +1205,11 @@ - + - + 3 @@ -1434,11 +1227,11 @@ - - + + - + b_motEna @@ -1449,11 +1242,11 @@ - - + + - + boolean @@ -1465,29 +1258,59 @@ - - - + + + - - + + - - + + - - [b_toTrqMod] + + 2 - - + + + + + + + + + + + + + + + + + b_motStdStill + + + + + + + + + + + + + + + boolean @@ -1498,58 +1321,76 @@ - - - + + + - - + + - - + + - - 2 + + [b_motStdStill] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - b_motStdStill + + [b_toTrqMod] + + + + + + + - + - - + + - + boolean @@ -1561,29 +1402,44 @@ - - - + + + - - + + - - + + - - [b_motEna] + + [z_ctrlModReq] - - + + + + + + + + + + + + + + + + + uint8 @@ -1604,11 +1460,11 @@ - + - + 1 @@ -1626,11 +1482,11 @@ - - + + - + b_errFlag @@ -1641,11 +1497,59 @@ - - + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + - + boolean @@ -1927,20 +1831,6 @@ - - - - - - - - - - - - - - @@ -1971,5 +1861,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 a5c3f20..16796ef 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 @@ -178,11 +178,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8599", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8598", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_toSpdMod", - "label":"b_toSpdMod", + "name":"b_toActive", + "label":"b_toActive", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -211,7 +211,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -307,11 +307,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8591", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8593", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant2", - "label":"constant2", + "name":"constant6", + "label":"constant6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -325,7 +325,7 @@ "FramePeriod" ], "values":[ - "OPEN_MODE", + "SPD_MODE", "on", "inf", "[]", @@ -356,11 +356,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8590", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8592", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", + "name":"constant5", + "label":"constant5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -374,7 +374,7 @@ "FramePeriod" ], "values":[ - "SPD_MODE", + "VLT_MODE", "on", "inf", "[]", @@ -405,38 +405,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8586", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8595", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Relational Operator5", - "label":"Relational Operator5", + "name":"constant8", + "label":"constant8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", "OutDataTypeStr", - "RndMeth", + "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:8590", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant1", + "label":"constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "==", + "SPD_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "boolean", - "Simplest", - "-1", - "on" + "inf" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 3, + 7 ] }, "viewer":{ @@ -445,16 +498,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8584", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8586", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", + "name":"Relational Operator5", + "label":"Relational Operator5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -544,38 +597,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8582", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8597", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Relational Operator11", - "label":"Relational Operator11", + "name":"b_toOpen", + "label":"b_toOpen", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "Port", + "IconDisplay", + "OutMin", + "OutMax", "OutDataTypeStr", - "RndMeth", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "~=", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "boolean", - "Simplest", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 2, + 11 ] }, "viewer":{ @@ -584,16 +672,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8585", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8581", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"Relational Operator10", + "label":"Relational Operator10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -634,42 +722,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8592", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"constant5", - "label":"constant5", + "name":"Relational Operator6", + "label":"Relational Operator6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "FramePeriod" + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "VLT_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "==", "off", - "inf" + "boolean", + "Simplest", + "-1", + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 1, + 4 ] }, "viewer":{ @@ -678,16 +762,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8570", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8573", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -696,7 +780,7 @@ "IconDisplay" ], "values":[ - "b_toSpdMod", + "b_motEna", "local", "Tag" ], @@ -716,11 +800,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8585", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator6", - "label":"Relational Operator6", + "name":"Relational Operator4", + "label":"Relational Operator4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -761,11 +845,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8569", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9421", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -774,7 +858,7 @@ "IconDisplay" ], "values":[ - "b_toActive", + "b_motStdStill", "local", "Tag" ], @@ -794,11 +878,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8581", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8580", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator10", - "label":"Relational Operator10", + "name":"Relational Operator1", + "label":"Relational Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -839,11 +923,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8565", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8570", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -852,7 +936,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "b_toSpdMod", "local", "Tag" ], @@ -872,11 +956,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8571", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8569", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -885,7 +969,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "b_toActive", "local", "Tag" ], @@ -905,19 +989,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8563", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8568", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_toOpen", + "z_ctrlModReq", + "local", "Tag" ], "tabs":[ @@ -931,61 +1017,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8583", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "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", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8572", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8566", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -994,7 +1035,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "b_toTrqMod", "local", "Tag" ], @@ -1014,11 +1055,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9419", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8564", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1026,7 +1067,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -1045,43 +1086,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8593", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9419", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"constant6", - "label":"constant6", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "SPD_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "b_motStdStill", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1089,16 +1112,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8561", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8562", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1106,7 +1129,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "b_toSpdMod", "Tag" ], "tabs":[ @@ -1156,19 +1179,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8559", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8572", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_errFlag", + "local", "Tag" ], "tabs":[ @@ -1182,30 +1207,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8558", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8584", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Relational Operator3", + "label":"Relational Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "b_toTrqMod", - "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" @@ -1213,16 +1252,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8556", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8558", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1230,7 +1269,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_toTrqMod", "Tag" ], "tabs":[ @@ -1280,44 +1319,11 @@ } }, { - "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:8564", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8563", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1325,7 +1331,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_toOpen", "Tag" ], "tabs":[ @@ -1344,11 +1350,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8554", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8552", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1356,7 +1362,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "b_errFlag", "Tag" ], "tabs":[ @@ -1375,73 +1381,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8562", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8551", + "className":"Simulink.Inport", "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: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", + "name":"z_ctrlModPrev", + "label":"z_ctrlModPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1504,78 +1448,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:8595", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8591", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant8", - "label":"constant8", + "name":"constant2", + "label":"constant2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1620,11 +1497,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8548", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8549", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_errFlag", - "label":"b_errFlag", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1647,7 +1524,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -1687,21 +1564,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8566", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8554", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_toTrqMod", - "local", + "b_motEna", "Tag" ], "tabs":[ @@ -1715,78 +1590,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8598", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8582", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"b_toActive", - "label":"b_toActive", + "name":"Relational Operator11", + "label":"Relational Operator11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", + "~=", "off", - "inherit", - "-1", - "Inherit", + "boolean", + "Simplest", "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 1, + 4 ] }, "viewer":{ @@ -1795,16 +1635,78 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8580", + "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: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:8583", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1816,7 +1718,7 @@ "ZeroCross" ], "values":[ - "==", + "~=", "off", "boolean", "Simplest", @@ -1840,16 +1742,80 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "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: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:8597", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8599", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_toOpen", - "label":"b_toOpen", + "name":"b_toSpdMod", + "label":"b_toSpdMod", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1878,7 +1844,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -1925,25 +1891,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8552", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9420", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"b_motStdStill", + "label":"b_motStdStill", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "b_errFlag", - "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" @@ -1951,32 +1953,66 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9421", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8548", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"b_errFlag", + "label":"b_errFlag", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "b_motStdStill", - "local", - "Tag" + "3", + "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" @@ -1984,26 +2020,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8573", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8556", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_motEna", - "local", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -2017,7 +2051,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2089,61 +2123,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9420", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8571", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", + "name":"Goto6", + "label":"Goto6", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "b_toOpen", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2151,16 +2151,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8578", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8575", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator7", - "label":"Logical Operator7", + "name":"Logical Operator3", + "label":"Logical Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2172,8 +2172,8 @@ "SampleTime" ], "values":[ - "NOT", - "2", + "AND", + "3", "rectangular", "off", "boolean", @@ -2201,11 +2201,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8579", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8578", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator9", - "label":"Logical Operator9", + "name":"Logical Operator7", + "label":"Logical Operator7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2246,11 +2246,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8576", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8574", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator4", - "label":"Logical Operator4", + "name":"Logical Operator1", + "label":"Logical Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2262,8 +2262,8 @@ "SampleTime" ], "values":[ - "OR", - "4", + "AND", + "2", "rectangular", "off", "boolean", @@ -2291,11 +2291,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8574", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8577", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", + "name":"Logical Operator6", + "label":"Logical Operator6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2307,8 +2307,8 @@ "SampleTime" ], "values":[ - "AND", - "2", + "OR", + "3", "rectangular", "off", "boolean", @@ -2336,11 +2336,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8577", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8576", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator6", - "label":"Logical Operator6", + "name":"Logical Operator4", + "label":"Logical Operator4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2353,7 +2353,7 @@ ], "values":[ "OR", - "3", + "4", "rectangular", "off", "boolean", @@ -2381,11 +2381,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8575", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8579", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator3", - "label":"Logical Operator3", + "name":"Logical Operator9", + "label":"Logical Operator9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2397,8 +2397,8 @@ "SampleTime" ], "values":[ - "AND", - "3", + "NOT", + "2", "rectangular", "off", "boolean", 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 d4ad37a..3728922 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 @@ -131,11 +131,11 @@ - - + + - + @@ -145,30 +145,30 @@ - - 3 + + 2 - + - - + + - + - - b_toSpdMod + + b_toActive @@ -227,11 +227,11 @@ - - + + - + @@ -241,29 +241,29 @@ - - OPEN_MODE + + SPD_MODE - + - + - + - + uint8 @@ -275,11 +275,11 @@ - - + + - + @@ -289,29 +289,29 @@ - - SPD_MODE + + VLT_MODE - + - + - + - + uint8 @@ -323,68 +323,92 @@ - - - + + + - - + + - + - + - - + + OPEN_MODE - - - - - - - + + + + + + + + + + + + + - - + + - - + + uint8 - - + + + + + + + + + + + + + + + + + + + SPD_MODE + - - + + - - + + - - + + - - boolean + + uint8 @@ -395,37 +419,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -440,22 +464,22 @@ - + - + - - + + - + boolean @@ -477,11 +501,11 @@ - + - + TRQ_MODE @@ -499,11 +523,11 @@ - + - + uint8 @@ -515,60 +539,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 1 - - - - - - - - - - + + - - - + + + - - + + - - boolean + + b_toOpen @@ -579,37 +587,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -624,22 +632,22 @@ - + - + - - + + - + boolean @@ -651,44 +659,68 @@ - - - + + + - - + + - + - - + + - - VLT_MODE + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint8 + + boolean @@ -699,28 +731,28 @@ - - + + - + - + - - [b_toSpdMod] + + [b_motEna] - + @@ -732,37 +764,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -777,22 +809,22 @@ - + - + - - + + - + boolean @@ -804,28 +836,28 @@ - - + + - + - + - - [b_toActive] + + [b_motStdStill] - + @@ -837,37 +869,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -882,22 +914,22 @@ - + - + - - + + - + boolean @@ -909,28 +941,28 @@ - - + + - + - + - - [z_ctrlModPrev] + + [b_toSpdMod] - + @@ -942,28 +974,28 @@ - - + + - + - + - - [b_toOpen] + + [b_toActive] - + @@ -975,108 +1007,29 @@ - - - + + + - - + + - - - - - - [b_toOpen] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - - - - boolean + + @@ -1087,28 +1040,28 @@ - - + + - + - + - - [b_errFlag] + + [b_toTrqMod] - + @@ -1120,44 +1073,44 @@ - - + + - + - + - - [b_motStdStill] + + [z_ctrlModReq] - + - - + + - - + + - - boolean + + uint8 @@ -1168,44 +1121,44 @@ - - - + + + - - + + - - + + - - SPD_MODE + + [b_motStdStill] - - + + - - + + - - + + - - uint8 + + boolean @@ -1216,43 +1169,43 @@ - - + + - + - + - - [b_toOpen] + + [b_toSpdMod] - + - + - - + + - + boolean @@ -1274,11 +1227,11 @@ - + - + [z_ctrlModReq] @@ -1296,11 +1249,11 @@ - + - + uint8 @@ -1312,44 +1265,29 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + [b_errFlag] - - - - - - - - - - - - - - - - - uint8 + + @@ -1360,43 +1298,67 @@ - - - - - - + + + + + + - + - - + + - - [b_toTrqMod] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + boolean @@ -1408,44 +1370,44 @@ - - + + - + - + - - [z_ctrlModReq] + + [b_toTrqMod] - + - - + + - - + + - - uint8 + + boolean @@ -1466,11 +1428,11 @@ - + - + [z_ctrlModPrev] @@ -1488,11 +1450,11 @@ - + - + uint8 @@ -1504,77 +1466,44 @@ - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - + + - + - + - - [z_ctrlModReq] + + [b_toOpen] - + - - + + - - + + - - uint8 + + boolean @@ -1585,43 +1514,43 @@ - - + + - + - + - - [b_motEna] + + [b_errFlag] - + - + - - + + - + boolean @@ -1633,92 +1562,59 @@ - - - + + + - - + + - - + + - - [b_toSpdMod] + + 5 - - + + - - - - - - - - - - - boolean + + + - - - - - - - - - - - - - - - - - - - - + + - - [b_toActive] - - - - - - - + + z_ctrlModPrev - - + + - - + + - - boolean + + uint8 @@ -1729,58 +1625,43 @@ - - - + + + - - + + - - + + - - 5 + + OPEN_MODE - - - - - - - - - - - - - - - - - z_ctrlModPrev + + - + - - + + - + uint8 @@ -1802,11 +1683,11 @@ - + - + 4 @@ -1824,11 +1705,11 @@ - + - + z_ctrlModReq @@ -1839,11 +1720,11 @@ - + - + uint8 @@ -1855,44 +1736,44 @@ - - - + + + - - + + - - + + - - OPEN_MODE + + [b_motEna] - - + + - - + + - - + + - - uint8 + + boolean @@ -1903,58 +1784,59 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + - - - - + - - - - - - - - - - - b_errFlag + + + + + + + - + - - + + - + boolean @@ -1966,29 +1848,44 @@ - - - + + + - - + + - - + + - - [b_toTrqMod] + + [z_ctrlModReq] - - + + + + + + + + + + + + + + + + + uint8 @@ -1999,44 +1896,44 @@ - - - + + + - - + + - - + + - - 2 + + [b_toActive] - - + + - - - + + + - - + + - - b_toActive + + boolean @@ -2047,67 +1944,140 @@ - - - + + + - + - + - + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + boolean - + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toOpen] + - - + + - + - - + + - + boolean @@ -2119,44 +2089,107 @@ - - + + - + - + - - 1 + + 3 - + - - + + + + + + + + + b_toSpdMod + + + + + + + + + + + + + + + + + + + - + - - b_toOpen + + 2 + + + + + + + + + + + + + + + + + + + + + + b_motStdStill + + + + + + + + + + + + + + + boolean @@ -2167,43 +2200,58 @@ - - - + + + - - + + - - + + - - [b_errFlag] + + 3 - - + + + + + + + + + + + + + + + + + b_errFlag - + - - + + - + boolean @@ -2215,62 +2263,44 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [z_ctrlModReq] - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [b_motEna] - - - - - - - + + uint8 @@ -2291,11 +2321,11 @@ - + - + 1 @@ -2313,11 +2343,11 @@ - + - + b_motEna @@ -2328,11 +2358,11 @@ - + - + boolean @@ -2344,59 +2374,29 @@ - - - + + + - - + + - - + + - - 2 + + [b_toOpen] - - - - - - - - - - - - - - - - - b_motStdStill - - - - - - - - - - - - - - - boolean + + @@ -2407,30 +2407,30 @@ - - - + + + - - + + - + - - + + - - + + @@ -2440,23 +2440,23 @@ - + - + - + boolean - - + + @@ -2471,11 +2471,11 @@ - - + + - + @@ -2485,7 +2485,7 @@ - + @@ -2493,7 +2493,7 @@ - + @@ -2504,22 +2504,22 @@ - + - + - + boolean - + @@ -2535,30 +2535,30 @@ - - - + + + - - + + - + - - + + - + - - + + @@ -2568,23 +2568,23 @@ - + - + - + boolean - - + + @@ -2599,30 +2599,30 @@ - - - + + + - - + + - + - - + + - + - - + + @@ -2632,23 +2632,23 @@ - + - + - + boolean - - + + @@ -2663,29 +2663,29 @@ - - - + + + - - + + - + - - + + - + @@ -2696,23 +2696,23 @@ - + - + - + boolean - - + + @@ -2727,30 +2727,30 @@ - - - + + + - - + + - + - - + + - - + + @@ -2760,23 +2760,23 @@ - + - + - + boolean - - + + @@ -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 a422452..567d665 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 @@ -180,7 +180,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:12", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:33", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", @@ -194,7 +194,7 @@ "Document" ], "values":[ - 2, + 1, "", "", "" @@ -279,7 +279,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:30", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", @@ -293,7 +293,7 @@ "Document" ], "values":[ - 1, + 2, "", "", "" @@ -312,7 +312,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:33", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:12", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", @@ -326,7 +326,7 @@ "Document" ], "values":[ - 1, + 2, "", "", "" @@ -345,7 +345,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:30", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:9", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", @@ -359,7 +359,7 @@ "Document" ], "values":[ - 2, + 1, "", "", "" @@ -456,11 +456,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:13", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:2", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", - "label":"[b_toActive]", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -471,7 +471,7 @@ ], "values":[ 1, - "[b_toActive]", + "", "", "" ], @@ -489,11 +489,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:13", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", - "label":"", + "label":"[b_toActive]", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -504,7 +504,7 @@ ], "values":[ 1, - "", + "[b_toActive]", "", "" ], diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.png index 917d9cd..73a2a45 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.png differ 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 a040876..155f3af 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 @@ -67,6 +67,18 @@ + + + + + + + + + + + + @@ -76,25 +88,25 @@ - + - + - + - + - + @@ -153,7 +165,7 @@ - + @@ -168,25 +180,25 @@ - + - + - + - + - + @@ -245,7 +257,7 @@ - + @@ -260,25 +272,25 @@ - + - + - + - + - + @@ -337,7 +349,7 @@ - + @@ -349,22 +361,10 @@ - - - - - - - - - - - - - + @@ -372,26 +372,12 @@ - + - + - - - - - - - - - - - - - 2 - - + @@ -418,19 +404,19 @@ - + - + - + - + [b_toSpdMod] @@ -440,11 +426,11 @@ - + - + 1 @@ -474,19 +460,19 @@ - + - + - + - + [b_toTrqMod] @@ -496,11 +482,11 @@ - + - + 1 @@ -513,7 +499,7 @@ - + @@ -521,12 +507,26 @@ - + - + - + + + + + + + + + + + + + 2 + + @@ -536,7 +536,7 @@ - + @@ -544,12 +544,26 @@ - + - + - + + + + + + + + + + + + + 2 + + @@ -559,7 +573,7 @@ - + @@ -567,26 +581,12 @@ - + - + - - - - - - - - - - - - - 2 - - + @@ -743,6 +743,23 @@ + + + + + + + + + + + + + + + + + @@ -752,23 +769,23 @@ - + - + - + - + - + [b_toActive] @@ -779,24 +796,7 @@ - - - - - - - - - - - - - - - - - - + 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 1e67a4b..9334471 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 @@ -1,4 +1,53 @@ [ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9719", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Start filtering only when motor is enabled (circuit closed).

", + "label":"

Start filtering only when motor is enabled (circuit closed).

", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Text", + "DropShadow", + "Interpreter", + "FontName", + "FontWeight", + "FontSize", + "FontAngle", + "ForegroundColor", + "BackgroundColor", + "HorizontalAlignment", + "UseDisplayTextAsClickCallback", + "ClickFcn" + ], + "values":[ + "\n\n

Start filtering only when motor is enabled (circuit closed).

", + "off", + "rich", + "auto", + "auto", + -1, + "auto", + "black", + "white", + "left", + "off", + "" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9194", "className":"Simulink.Outport", @@ -506,8 +555,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -519,7 +568,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -530,9 +578,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -542,7 +591,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -555,7 +604,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -565,18 +613,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 ] }, @@ -603,8 +654,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -616,7 +667,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -627,9 +677,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -639,7 +690,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -652,7 +703,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -662,18 +712,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 ] }, @@ -969,11 +1022,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9195", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9197", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Vq", - "label":"Vq", + "name":"r_devSignal2", + "label":"r_devSignal2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1002,7 +1055,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "6", "Port number", "[]", "[]", @@ -1049,11 +1102,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Torque_Mode", - "label":"Torque_Mode", + "name":"Voltage_Mode", + "label":"Voltage_Mode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1061,8 +1114,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1074,7 +1127,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1085,9 +1137,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1097,7 +1150,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1110,7 +1163,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1120,18 +1172,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 ] }, @@ -1146,50 +1201,148 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108", - "className":"Simulink.SwitchCase", - "icon":"WebViewIcon3", - "name":"Switch Case", - "label":"Switch Case", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Torque_Mode", + "label":"Torque_Mode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "CaseConditions", - "ShowDefaultCase", - "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":[ - "{VLT_MODE, SPD_MODE, TRQ_MODE}", - "on", + "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" + "", + "off", + "on", + "off", + "" ], "tabs":[ - "Parameter Attributes", + "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 2 + 5, + 6 ] }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "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: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":"SwitchCase", + "blocktype":"Scope", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Park_Transform", - "label":"Park_Transform", + "name":"Open_Mode", + "label":"Open_Mode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1197,8 +1350,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1210,7 +1363,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1221,9 +1373,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1233,7 +1386,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1241,11 +1394,10 @@ "void_void", "off", "off", - "on", - "", "off", "", "off", + "", "off", "", "Auto", @@ -1256,18 +1408,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 ] }, @@ -1344,74 +1499,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9196", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"r_devSignal1", - "label":"r_devSignal1", + "name":"Mux2", + "label":"Mux2", "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" + "Inputs", + "DisplayOption" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "2", + "bar" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1419,7 +1525,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Mux", "masktype":"" } }, @@ -1467,8 +1573,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1480,7 +1586,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1491,9 +1596,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1503,7 +1609,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1516,7 +1622,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1526,18 +1631,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 ] }, @@ -1591,27 +1699,37 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8864", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "n_mot", - "local", - "Tag" + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1619,47 +1737,40 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9142", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", + "name":"If1", + "label":"If1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "ZeroCross" ], "values":[ - "0", - "Inherited", - "-1", - "", + "1", + "u1 ~= 0", "", "off", - [ - ], - "Auto" + "-1", + "on" ], "tabs":[ - "Main", - "State Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, 4 ] }, @@ -1669,16 +1780,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8863", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8862", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1687,7 +1798,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "Vq_min", "local", "Tag" ], @@ -1707,11 +1818,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8861", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8860", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto40", + "label":"Goto40", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1720,7 +1831,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "id_TgtAbs", "local", "Tag" ], @@ -1740,108 +1851,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Open_Mode", - "label":"Open_Mode", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8858", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto36", + "label":"Goto36", "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", + "TagVisibility", + "IconDisplay" ], "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", - "" + "r_cos", + "local", + "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":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9673", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9717", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto32", + "label":"Goto32", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1850,7 +1897,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "b_motEna", "local", "Tag" ], @@ -1870,11 +1917,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8858", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8852", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto36", - "label":"Goto36", + "name":"Goto30", + "label":"Goto30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1883,7 +1930,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "Vq", "local", "Tag" ], @@ -1903,11 +1950,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8857", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8846", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto35", - "label":"Goto35", + "name":"Goto25", + "label":"Goto25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1916,7 +1963,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "iq_max", "local", "Tag" ], @@ -1936,108 +1983,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Voltage_Mode", - "label":"Voltage_Mode", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8864", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", "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", + "TagVisibility", + "IconDisplay" ], "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", - "" + "n_mot", + "local", + "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":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8855", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8843", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto33", - "label":"Goto33", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2046,7 +2029,7 @@ "IconDisplay" ], "values":[ - "n_min", + "n_motAbs", "local", "Tag" ], @@ -2066,11 +2049,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8852", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8842", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto30", - "label":"Goto30", + "name":"Goto21", + "label":"Goto21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2079,7 +2062,7 @@ "IconDisplay" ], "values":[ - "Vq", + "a_elecAngle", "local", "Tag" ], @@ -2099,11 +2082,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8841", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto20", + "label":"Goto20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2112,7 +2095,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vd", "local", "Tag" ], @@ -2132,108 +2115,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Speed_Mode", - "label":"Speed_Mode", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108", + "className":"Simulink.SwitchCase", + "icon":"WebViewIcon3", + "name":"Switch Case", + "label":"Switch Case", "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" + "CaseConditions", + "ShowDefaultCase", + "SampleTime", + "ZeroCross" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", + "{VLT_MODE, SPD_MODE, TRQ_MODE}", "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", - "" + "on" ], "tabs":[ - "Main", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 2 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"SwitchCase", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8844", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8836", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2242,7 +2167,7 @@ "IconDisplay" ], "values":[ - "iq", + "Vq_prev", "local", "Tag" ], @@ -2262,11 +2187,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8842", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8830", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2275,7 +2200,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "Vq_Open", "local", "Tag" ], @@ -2295,11 +2220,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8838", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8831", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2308,7 +2233,7 @@ "IconDisplay" ], "values":[ - "Vd_min", + "Vq_Trq", "local", "Tag" ], @@ -2328,21 +2253,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8837", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9655", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vd_max", - "local", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -2356,26 +2279,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8847", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", + "name":"From68", + "label":"From68", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id_Tgt", - "local", + "iq_limPrott", "Tag" ], "tabs":[ @@ -2389,7 +2310,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2427,11 +2348,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8836", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8847", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2440,7 +2361,7 @@ "IconDisplay" ], "values":[ - "Vq_prev", + "id_Tgt", "local", "Tag" ], @@ -2460,21 +2381,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8832", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8819", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From63", + "label":"From63", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vq_Spd", - "local", + "n_mot", "Tag" ], "tabs":[ @@ -2488,16 +2407,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8831", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8848", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2506,7 +2425,7 @@ "IconDisplay" ], "values":[ - "Vq_Trq", + "r_inpTgtSca", "local", "Tag" ], @@ -2526,11 +2445,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From71", - "label":"From71", + "name":"From60", + "label":"From60", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2538,7 +2457,7 @@ "IconDisplay" ], "values":[ - "id", + "iq_min", "Tag" ], "tabs":[ @@ -2557,19 +2476,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9655", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8837", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgt", + "Vd_max", + "local", "Tag" ], "tabs":[ @@ -2583,16 +2504,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From68", - "label":"From68", + "name":"From56", + "label":"From56", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2600,7 +2521,7 @@ "IconDisplay" ], "values":[ - "iq_limPrott", + "Vd_min", "Tag" ], "tabs":[ @@ -2619,11 +2540,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8822", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From66", - "label":"From66", + "name":"From54", + "label":"From54", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2631,7 +2552,7 @@ "IconDisplay" ], "values":[ - "n_min", + "Vd_min", "Tag" ], "tabs":[ @@ -2650,21 +2571,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8862", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"From53", + "label":"From53", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vq_min", - "local", + "Vd_max", "Tag" ], "tabs":[ @@ -2678,35 +2597,16 @@ "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", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8821", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From65", - "label":"From65", + "name":"From71", + "label":"From71", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2714,7 +2614,7 @@ "IconDisplay" ], "values":[ - "n_max", + "id", "Tag" ], "tabs":[ @@ -2733,21 +2633,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8853", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", + "name":"From52", + "label":"From52", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_limPrott", - "local", + "id_TgtAbs", "Tag" ], "tabs":[ @@ -2761,26 +2659,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8839", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8803", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"From48", + "label":"From48", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id_max", - "local", + "Vq_Trq", "Tag" ], "tabs":[ @@ -2794,26 +2690,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8845", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto24", - "label":"Goto24", + "name":"From47", + "label":"From47", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id", - "local", + "Vq_Spd", "Tag" ], "tabs":[ @@ -2827,35 +2721,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "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", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From60", - "label":"From60", + "name":"From57", + "label":"From57", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2863,7 +2738,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "id_max", "Tag" ], "tabs":[ @@ -2882,21 +2757,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8846", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", + "name":"From45", + "label":"From45", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_max", - "local", + "iq", "Tag" ], "tabs":[ @@ -2910,16 +2783,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8818", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From62", + "label":"From62", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2927,7 +2800,7 @@ "IconDisplay" ], "values":[ - "Vq", + "iq_limPrott", "Tag" ], "tabs":[ @@ -2946,11 +2819,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8799", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From59", - "label":"From59", + "name":"From44", + "label":"From44", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2958,7 +2831,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "Vq_min", "Tag" ], "tabs":[ @@ -2977,19 +2850,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8857", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From54", - "label":"From54", + "name":"Goto35", + "label":"Goto35", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", + "r_sin", + "local", "Tag" ], "tabs":[ @@ -3003,24 +2878,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8863", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From52", - "label":"From52", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id_TgtAbs", + "b_enaFOC", + "local", "Tag" ], "tabs":[ @@ -3034,16 +2911,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8803", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From48", - "label":"From48", + "name":"From41", + "label":"From41", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3051,7 +2928,7 @@ "IconDisplay" ], "values":[ - "Vq_Trq", + "Vq_max", "Tag" ], "tabs":[ @@ -3070,11 +2947,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", + "name":"From40", + "label":"From40", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3082,7 +2959,7 @@ "IconDisplay" ], "values":[ - "Vq_Spd", + "Vq", "Tag" ], "tabs":[ @@ -3101,42 +2978,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794", "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:8801", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3144,7 +2990,7 @@ "IconDisplay" ], "values":[ - "Vq_Vlt", + "Vd", "Tag" ], "tabs":[ @@ -3163,11 +3009,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8841", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8834", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto20", - "label":"Goto20", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3176,7 +3022,7 @@ "IconDisplay" ], "values":[ - "Vd", + "Vq_Vlt", "local", "Tag" ], @@ -3196,11 +3042,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8792", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From53", - "label":"From53", + "name":"From37", + "label":"From37", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3208,7 +3054,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -3227,11 +3073,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8799", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From44", - "label":"From44", + "name":"From58", + "label":"From58", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3239,7 +3085,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "id_min", "Tag" ], "tabs":[ @@ -3258,11 +3104,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8798", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From43", - "label":"From43", + "name":"From34", + "label":"From34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3270,7 +3116,7 @@ "IconDisplay" ], "values":[ - "Vd", + "Vq_min", "Tag" ], "tabs":[ @@ -3289,11 +3135,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From40", - "label":"From40", + "name":"From42", + "label":"From42", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3301,7 +3147,7 @@ "IconDisplay" ], "values":[ - "Vq", + "Vq_min", "Tag" ], "tabs":[ @@ -3320,11 +3166,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From33", + "label":"From33", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3332,7 +3178,7 @@ "IconDisplay" ], "values":[ - "Vd", + "id_Tgt", "Tag" ], "tabs":[ @@ -3351,19 +3197,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8832", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From56", - "label":"From56", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", + "Vq_Spd", + "local", "Tag" ], "tabs":[ @@ -3377,16 +3225,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", + "name":"From32", + "label":"From32", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3394,7 +3242,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "id", "Tag" ], "tabs":[ @@ -3413,11 +3261,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From35", - "label":"From35", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3425,7 +3273,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "iq", "Tag" ], "tabs":[ @@ -3444,11 +3292,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3456,7 +3304,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_sin", "Tag" ], "tabs":[ @@ -3475,19 +3323,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8856", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", + "name":"Goto34", + "label":"Goto34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id_Tgt", + "n_limProt", + "local", "Tag" ], "tabs":[ @@ -3501,16 +3351,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", + "name":"From27", + "label":"From27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3518,7 +3368,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_cos", "Tag" ], "tabs":[ @@ -3537,11 +3387,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"From25", + "label":"From25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3549,7 +3399,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "Vq_max", "Tag" ], "tabs":[ @@ -3568,11 +3418,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3580,7 +3430,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -3599,11 +3449,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8818", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From62", - "label":"From62", + "name":"From35", + "label":"From35", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3611,7 +3461,7 @@ "IconDisplay" ], "values":[ - "iq_limPrott", + "b_enaFOC", "Tag" ], "tabs":[ @@ -3630,19 +3480,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8861", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "Vq_max", + "local", "Tag" ], "tabs":[ @@ -3656,16 +3508,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8820", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From64", - "label":"From64", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3673,7 +3525,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "b_motEna", "Tag" ], "tabs":[ @@ -3692,11 +3544,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8801", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"From46", + "label":"From46", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3704,7 +3556,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq_Vlt", "Tag" ], "tabs":[ @@ -3723,42 +3575,110 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Speed_Mode", + "label":"Speed_Mode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "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":[ - "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", + "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:8777", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From41", - "label":"From41", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3766,7 +3686,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "Vq_min", "Tag" ], "tabs":[ @@ -3785,11 +3705,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8793", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From38", + "label":"From38", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3797,7 +3717,7 @@ "IconDisplay" ], "values":[ - "Vd", + "Vq_max", "Tag" ], "tabs":[ @@ -3816,11 +3736,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8777", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8805", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3828,7 +3748,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "Vq_prev", "Tag" ], "tabs":[ @@ -3847,11 +3767,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8773", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3859,7 +3779,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "a_elecAngle", "Tag" ], "tabs":[ @@ -3878,19 +3798,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8845", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"Goto24", + "label":"Goto24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_sin", + "id", + "local", "Tag" ], "tabs":[ @@ -3904,16 +3826,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From26", + "label":"From26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3921,7 +3843,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "r_sin", "Tag" ], "tabs":[ @@ -3971,54 +3893,118 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8860", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto40", - "label":"Goto40", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Vd_Calculation", + "label":"Vd_Calculation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "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":[ - "id_TgtAbs", - "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:8854", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8773", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto32", - "label":"Goto32", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_max", - "local", + "Vq_max", "Tag" ], "tabs":[ @@ -4032,16 +4018,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From59", + "label":"From59", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4049,7 +4035,7 @@ "IconDisplay" ], "values":[ - "iq", + "iq_max", "Tag" ], "tabs":[ @@ -4068,11 +4054,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From55", - "label":"From55", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4080,7 +4066,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -4099,11 +4085,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From32", - "label":"From32", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4111,7 +4097,7 @@ "IconDisplay" ], "values":[ - "id", + "iq", "Tag" ], "tabs":[ @@ -4130,11 +4116,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8785", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From50", + "label":"From50", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4142,7 +4128,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "Vq", "Tag" ], "tabs":[ @@ -4161,11 +4147,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4173,7 +4159,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "id", "Tag" ], "tabs":[ @@ -4192,11 +4178,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8793", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", + "name":"From61", + "label":"From61", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4204,7 +4190,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "iq", "Tag" ], "tabs":[ @@ -4223,74 +4209,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9197", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"r_devSignal2", - "label":"r_devSignal2", + "name":"From6", + "label":"From6", "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" + "GotoTag", + "IconDisplay" ], "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "Vq", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4298,24 +4235,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8853", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From57", - "label":"From57", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id_max", + "iq_limPrott", + "local", "Tag" ], "tabs":[ @@ -4329,16 +4268,66 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9142", + "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:8804", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From67", - "label":"From67", + "name":"From49", + "label":"From49", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4346,7 +4335,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "Vq_Open", "Tag" ], "tabs":[ @@ -4377,8 +4366,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4390,7 +4379,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4401,9 +4389,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4413,7 +4402,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4421,11 +4410,10 @@ "void_void", "off", "off", - "on", - "", "off", "", "off", + "", "off", "", "Auto", @@ -4436,18 +4424,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 ] }, @@ -4462,25 +4453,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9196", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"r_devSignal1", + "label":"r_devSignal1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "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":[ - "iq", - "Tag" + "5", + "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" @@ -4488,26 +4528,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8850", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", + "name":"From55", + "label":"From55", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id_min", - "local", + "Vd_max", "Tag" ], "tabs":[ @@ -4521,123 +4559,57 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Field_Weakening", - "label":"Field_Weakening", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8844", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto23", + "label":"Goto23", "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", + "TagVisibility", + "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", - "" + "iq", + "local", + "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":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8834", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vq_Vlt", - "local", + "id_Tgt", "Tag" ], "tabs":[ @@ -4651,25 +4623,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8667", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "2", - "bar" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -4682,42 +4654,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8865", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"From69", + "label":"From69", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" + "z_ctrlMod", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4725,16 +4685,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From50", - "label":"From50", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4742,7 +4702,7 @@ "IconDisplay" ], "values":[ - "Vq", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -4761,11 +4721,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "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:8668", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Vd_Calculation", - "label":"Vd_Calculation", + "name":"Clarke_Transform", + "label":"Clarke_Transform", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4773,8 +4764,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4786,7 +4777,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4797,9 +4787,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4809,7 +4800,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4817,12 +4808,11 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", "off", - "off", "", "Auto", "", @@ -4832,18 +4822,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 ] }, @@ -4858,21 +4851,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8851", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8820", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From64", + "label":"From64", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlMod", - "local", + "n_limProt", "Tag" ], "tabs":[ @@ -4886,57 +4877,104 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8667", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9195", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"Vq", + "label":"Vq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, + "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":"ActionPort", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8856", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto34", - "label":"Goto34", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_limProt", - "local", + "Vd", "Tag" ], "tabs":[ @@ -4950,113 +4988,83 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_Transform", - "label":"Clarke_Transform", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", "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" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "on", - "", - "", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "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", - "" + "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":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8785", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5064,7 +5072,7 @@ "IconDisplay" ], "values":[ - "id", + "n_motAbs", "Tag" ], "tabs":[ @@ -5083,11 +5091,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5110,7 +5118,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "5", "Port number", "[]", "[]", @@ -5150,81 +5158,120 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765", - "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:8819", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From63", - "label":"From63", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Field_Weakening", + "label":"Field_Weakening", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "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":[ - "n_mot", - "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:8771", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8850", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"Goto29", + "label":"Goto29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_enaFOC", + "id_min", + "local", "Tag" ], "tabs":[ @@ -5238,47 +5285,115 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From61", - "label":"From61", + "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":[ - "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":[ - "iq", - "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:8792", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8798", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", + "name":"From43", + "label":"From43", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5286,7 +5401,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vd", "Tag" ], "tabs":[ @@ -5305,86 +5420,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8661", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "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:8775", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8851", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "a_elecAngle", + "z_ctrlMod", + "local", "Tag" ], "tabs":[ @@ -5398,16 +5448,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9672", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5430,7 +5480,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "7", "Port number", "[]", "[]", @@ -5470,11 +5520,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"b_motEna", + "label":"b_motEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5497,7 +5547,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "3", "Port number", "[]", "[]", @@ -5537,11 +5587,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8805", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From67", + "label":"From67", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5549,7 +5599,7 @@ "IconDisplay" ], "values":[ - "Vq_prev", + "n_limProt", "Tag" ], "tabs":[ @@ -5568,78 +5618,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", - "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:8830", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8838", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto18", + "label":"Goto18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5648,7 +5631,7 @@ "IconDisplay" ], "values":[ - "Vq_Open", + "Vd_min", "local", "Tag" ], @@ -5735,50 +5718,21 @@ } }, { - "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:8825", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8839", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From69", - "label":"From69", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlMod", + "id_max", + "local", "Tag" ], "tabs":[ @@ -5792,16 +5746,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8804", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From49", - "label":"From49", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5809,7 +5763,7 @@ "IconDisplay" ], "values":[ - "Vq_Open", + "n_mot", "Tag" ], "tabs":[ @@ -5828,27 +5782,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8843", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", + "name":"b_enaFOC", + "label":"b_enaFOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "n_motAbs", - "local", - "Tag" + "1", + "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" @@ -5856,16 +5844,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8661", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5888,7 +5876,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "4", "Port number", "[]", "[]", @@ -5927,6 +5915,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaFOC", + "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", @@ -8018,108 +8037,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8865#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "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:8771#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "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:8794#out:1", "className":"Simulink.Line", @@ -10722,7 +10639,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:11", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:10", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10773,7 +10690,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8819#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10824,7 +10741,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:12", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8820#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10875,7 +10792,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8819#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10926,7 +10843,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8820#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10977,7 +10894,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8821#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11028,7 +10945,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8822#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11079,7 +10996,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11130,7 +11047,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11181,7 +11098,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11232,7 +11149,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11283,7 +11200,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8785#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11334,7 +11251,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11385,7 +11302,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11436,7 +11353,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11487,7 +11404,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8785#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11538,7 +11455,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11589,7 +11506,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9655#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11640,7 +11557,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11691,7 +11608,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11742,7 +11659,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11793,7 +11710,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9655#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11844,7 +11761,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11895,7 +11812,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11946,7 +11863,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9672#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", 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 de94db2..6d0e5ca 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 4e5310b..4a343a8 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 @@ -1,15 +1,34 @@ - + - + + + + + + + + + + + + + + + Start filtering only when motor is enabled (circuit closed). + + + + + @@ -23,11 +42,11 @@ - + - + 3 @@ -45,11 +64,11 @@ - - + + - + r_phaC @@ -71,11 +90,11 @@ - + - + 2 @@ -93,11 +112,11 @@ - - + + - + r_phaB @@ -119,11 +138,11 @@ - + - + 1 @@ -141,11 +160,11 @@ - - + + - + r_phaA @@ -167,11 +186,11 @@ - + - + [r_phaA] @@ -200,11 +219,11 @@ - + - + [r_phaB] @@ -233,11 +252,11 @@ - + - + [r_phaC] @@ -266,11 +285,11 @@ - + - + [r_phaA] @@ -288,11 +307,11 @@ - - + + - + int16 @@ -314,11 +333,11 @@ - + - + [r_phaB] @@ -336,11 +355,11 @@ - - + + - + int16 @@ -362,11 +381,11 @@ - + - + [r_phaC] @@ -384,11 +403,11 @@ - - + + - + int16 @@ -410,11 +429,11 @@ - + - + [i_phaAB] @@ -432,11 +451,11 @@ - - + + - + sfix16_En4 @@ -458,11 +477,11 @@ - + - + [i_phaBC] @@ -480,11 +499,11 @@ - - + + - + sfix16_En4 @@ -512,51 +531,51 @@ - + - + Vq - + - + Vd - + - + r_sin - + - + r_cos - + - + V_alpha - + - + V_beta @@ -586,11 +605,11 @@ - - + + - + Inv_Park_Transform @@ -607,11 +626,11 @@ - - + + - + sfix16_En4 @@ -628,11 +647,11 @@ - - + + - + sfix16_En4 @@ -666,43 +685,43 @@ - + - + V_alpha - + - + V_beta - + - + V_phaA - + - + V_phaB - + - + V_phaC @@ -732,11 +751,11 @@ - - + + - + Inv_Clarke_Transform @@ -749,15 +768,15 @@
- + - - + + - + int16 @@ -770,15 +789,15 @@
- + - - + + - + int16 @@ -795,11 +814,11 @@ - - + + - + int16 @@ -818,57 +837,57 @@
- + - + - + - + 8 - + - + - - + + - + i_phaAB - + - - + + - + sfix16_En4 @@ -881,27 +900,27 @@ - + - + - + - + [i_phaAB] - + @@ -914,57 +933,57 @@ - + - + - + - + 9 - + - + - - + + - + i_phaBC - + - - + + - + sfix16_En4 @@ -977,27 +996,27 @@ - + - + - + - + [i_phaBC] - + @@ -1019,11 +1038,11 @@ - + - + @@ -1041,11 +1060,11 @@ - - + + - + sfix16_En4 @@ -1067,19 +1086,19 @@ - + - + - + - + @@ -1116,11 +1135,11 @@ - + - + @@ -1138,11 +1157,11 @@ - - + + - + sfix16_En4 @@ -1154,44 +1173,44 @@ - - + + - + - + - - 4 + + 6 - + - - + + - - + + - - Vq + + r_devSignal2 @@ -1202,9 +1221,9 @@ - - - + + + @@ -1212,81 +1231,65 @@ - - + + - - - - - - - r_inpTgtSca - - - - - - - - Vq_max - - + - - Vq_min + + r_inpTgtSca - + - - iq + + Vq_max - + - - iq_max + + Vq_min - + - - iq_min + + iq_limProt - + - + n_limProt - + - - Vq_Trq + + Vq_Vlt - + - + case: { } @@ -1299,8 +1302,8 @@
- - + + @@ -1312,16 +1315,16 @@ - - + + - + - - Torque_Mode + + Voltage_Mode @@ -1333,16 +1336,16 @@ - - + + - + - - sfix16_En4 + + action @@ -1354,16 +1357,16 @@ - - + + - + - - action + + sfix16_En4 @@ -1374,253 +1377,380 @@ - + - - + + - - + + + + + + + + - + - - u1 + + r_inpTgtSca - + - - case [ 1 ]: + + Vq_max - + - - case [ 2 ]: + + Vq_min - + - - case [ 3 ]: + + iq - + - - default: - - - - - - - - - - - - - - + + iq_max - + - - action - - - - - - - + + iq_min - + - - action - - - - - - - + + n_limProt - + - - action - - - - - - - + + Vq_Trq - + - - action + + case: { } - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Torque_Mode + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + - + - - + + + + + - + - - + + - - i_apha + + - - + + - - i_beta + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - r_sin + + - - + + - - r_cos + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Vq_prev - - + + - - iq_Raw + + Vq_Open - - + + - - id_Raw + + default: { } - + - - + + - + - - + + - - + + - - Park_Transform + + Open_Mode - + - + - - + + - + sfix16_En4 @@ -1628,21 +1758,21 @@ - + - - + + - - + + - - sfix16_En4 + + action @@ -1655,7 +1785,7 @@ - + @@ -1669,11 +1799,11 @@ - + - + @@ -1691,11 +1821,11 @@ - - + + - + sfix16_En4 @@ -1717,11 +1847,11 @@ - + - + @@ -1739,11 +1869,11 @@ - - + + - + sfix16_En4 @@ -1755,44 +1885,44 @@ - - - + + + - - + + - - + + - - 5 + + - - + + - - - + + + - - + + - - r_devSignal1 + + sfix16_En4 @@ -1804,42 +1934,42 @@ - + - + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -1852,188 +1982,172 @@ - - + + - + - - + + - - + + - + z_ctrlMod - - + + - + Vd - - + + - + id_TgtAbs - - + + - + iq - - + + - + n_mot - - + + - + Vd_max - - + + - + Vd_min - - + + - + Vq_max - - + + - + Vq_min - - + + - + id_max - - + + - + id_min - - + + - + iq_max - - + + - + iq_min - - + + - + iq_limProt - - + + - - n_max - - - - - - - - n_min - - - - - - - - n_limProt + + n_limProt - + - - + + - + - + - - + + - + Motor_Limitations @@ -2041,62 +2155,20 @@ - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - + - + - - + + - + sfix16_En4 @@ -2104,20 +2176,20 @@ - + - + - - + + - + sfix16_En4 @@ -2125,20 +2197,20 @@ - + - + - - + + - + sfix16_En4 @@ -2146,20 +2218,20 @@ - + - + - - + + - + sfix16_En4 @@ -2167,20 +2239,20 @@ - + - + - - + + - + sfix16_En4 @@ -2188,20 +2260,20 @@ - + - + - - + + - + sfix16_En4 @@ -2209,20 +2281,20 @@ - + - + - - + + - + sfix16_En4 @@ -2230,20 +2302,20 @@ - + - + - - + + - + sfix16_En4 @@ -2251,20 +2323,20 @@ - + - + - - + + - + sfix16_En4 @@ -2272,20 +2344,20 @@ - + - + - - + + - + sfix16_En4 @@ -2299,13 +2371,13 @@ - + - + @@ -2313,19 +2385,19 @@ - + - + - + - + @@ -2351,11 +2423,11 @@ - - + + - + sfix16_En4 @@ -2367,29 +2439,52 @@ - - - + + + - - + + - - + + - - [n_mot] + + u1 + + + + + + + + if(u1 ~= 0) - - + + + + + + + + + + + + + + + + + action @@ -2400,91 +2495,85 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + - - + + u1 - - + + - - + + if(u1 ~= 0) - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + action + + + + + + + + + + + + + + - - - - - + + - - Ini=0 + + [Vq_min] + + + + + + + @@ -2495,28 +2584,28 @@ - - + + - + - + - - [b_enaFOC] + + [id_TgtAbs] - + @@ -2528,28 +2617,28 @@ - - + + - + - + - - [Vq_max] + + [r_cos] - + @@ -2561,120 +2650,95 @@ - - - + + + - - - - - - - - + + - - + + - - Vq_prev + + [b_motEna] - - - - - - - Vq_Open + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - default: { } + + [Vq] - - - - - - - - + + - - - - - - - - - - - - - - - - - Open_Mode - - + + + + + + + + + + + + - - - - - - - - - - + - - + + - - sfix16_En4 + + [iq_max] - - - - - - - - - - - - - - - - - action + + + @@ -2685,34 +2749,28 @@ - - - - - - - - + + - + - + - - [r_inpTgt] + + [n_mot] - + @@ -2724,28 +2782,28 @@ - - + + - + - - + + - - [r_cos] + + [n_motAbs] - + @@ -2757,28 +2815,28 @@ - - + + - + - - + + - - [r_sin] + + [a_elecAngle] - + @@ -2790,152 +2848,154 @@ - - - + + + - - - - - - - - + + - - + + - - r_inpTgtSca + + [Vd] - - - - - - - Vq_max + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - Vq_min + + u1 - - + + - - iq_limProt + + case [ 1 ]: - - + + - - n_limProt + + case [ 2 ]: - - + + - - Vq_Vlt + + case [ 3 ]: - - + + - - case: { } + + default: - - - - - - - - + + - - - - - - - - - + + + - - + + - - Voltage_Mode + + action - - - - - - - - + + - - + + - + action + + + - - - - + + + - - + + action + + + + + + + - - + + - - sfix16_En4 + + action @@ -2946,34 +3006,28 @@ - - - - - - - - + + - + - + - - [n_min] + + [Vq_prev] - + @@ -2985,28 +3039,28 @@ - - + + - + - + - - [Vq] + + [Vq_Open] - + @@ -3018,28 +3072,28 @@ - - + + - + - - + + - - [r_inpTgtSca] + + [Vq_Trq] - + @@ -3051,207 +3105,92 @@ - - - + + + - - - - - - - - + + - - - - - - r_inpTgtSca - - - - - - - - Vq_max - - - - - - - - Vq_min - - - - - - - - n_mot - - - - - - - - n_max - - - - - - - - n_min - - - - - - - - iq_limProt - - - - - - - - Vq_Spd - - - - + + - - case: { } + + [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Speed_Mode + + - - - - - - - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - + + + - - + + - - + + - - [iq] + + [iq_limPrott] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3262,28 +3201,28 @@ - - + + - + - + - - [a_elecAngle] + + [iq_min] - + @@ -3295,28 +3234,28 @@ - - + + - + - + - - [Vd_min] + + [id_Tgt] - + @@ -3328,29 +3267,44 @@ - - - + + + - - + + - - + + - - [Vd_max] + + [n_mot] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3361,28 +3315,28 @@ - - + + - + - + - - [id_Tgt] + + [r_inpTgtSca] - + @@ -3394,29 +3348,44 @@ - - - + + + - - + + - - + + - + [iq_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3427,28 +3396,28 @@ - - + + - + - - + + - - [Vq_prev] + + [Vd_max] - + @@ -3460,29 +3429,44 @@ - - - + + + - - + + - - + + - - [Vq_Spd] + + [Vd_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3493,29 +3477,44 @@ - - - + + + - - + + - - + + - - [Vq_Trq] + + [Vd_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3526,43 +3525,43 @@ - - + + - + - - + + - - [id] + + [Vd_max] - + - + - - + + - + sfix16_En4 @@ -3574,43 +3573,43 @@ - - + + - + - + - - [r_inpTgt] + + [id] - + - + - - + + - + sfix16_En4 @@ -3622,43 +3621,43 @@ - - + + - + - + - - [iq_limPrott] + + [id_TgtAbs] - + - + - - + + - + sfix16_En4 @@ -3670,43 +3669,43 @@ - - + + - + - + - - [n_min] + + [Vq_Trq] - + - + - - + + - + sfix16_En4 @@ -3718,29 +3717,44 @@ - - - + + + - - + + - - + + - - [Vq_min] + + [Vq_Spd] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3751,45 +3765,92 @@ - - - + + + - - + + - + - - + + - - + + [id_max] + + + + + + + + + + + + + + - - + + - - + + sfix16_En4 - - + + + + + + + + + + + + + + + + + + + [iq] + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3800,43 +3861,43 @@ - - + + - + - + - - [n_max] + + [iq_limPrott] - + - + - - + + - + sfix16_En4 @@ -3848,29 +3909,44 @@ - - - + + + - - + + - - + + - - [iq_limPrott] + + [Vq_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3881,28 +3957,28 @@ - - + + - + - - + + - - [id_max] + + [r_sin] - + @@ -3914,28 +3990,28 @@ - - + + - + - + - - [id] + + [b_enaFOC] - + @@ -3947,92 +4023,43 @@ - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - [iq_min] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -4044,76 +4071,43 @@ - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - + + - + - - + + - + [Vq] - + - + - - + + - + sfix16_En4 @@ -4125,43 +4119,43 @@ - - + + - + - + - - [iq_max] + + [Vd] - + - + - - + + - + sfix16_En4 @@ -4173,44 +4167,29 @@ - - - + + + - - + + - - + + - - [Vd_min] + + [Vq_Vlt] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -4221,43 +4200,43 @@ - - + + - + - + - - [id_TgtAbs] + + [r_inpTgtSca] - + - + - - + + - + sfix16_En4 @@ -4269,43 +4248,43 @@ - - + + - + - + - - [Vq_Trq] + + [id_min] - + - + - - + + - + sfix16_En4 @@ -4317,43 +4296,43 @@ - - + + - + - + - - [Vq_Spd] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -4365,43 +4344,43 @@ - - + + - + - + - - [id_min] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -4413,43 +4392,43 @@ - - + + - + - + - - [Vq_Vlt] + + [id_Tgt] - + - + - - + + - + sfix16_En4 @@ -4461,28 +4440,28 @@ - - + + - + - + - - [Vd] + + [Vq_Spd] - + @@ -4494,43 +4473,43 @@ - - + + - + - + - - [Vd_max] + + [id] - + - + - - + + - + sfix16_En4 @@ -4542,43 +4521,43 @@ - - + + - + - + - - [Vq_min] + + [iq] - + - + - - + + - + sfix16_En4 @@ -4590,44 +4569,44 @@ - - + + - + - + - - [Vd] + + [r_sin] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -4638,44 +4617,29 @@ - - - + + + - - + + - - + + - - [Vq] + + [n_limProt] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -4686,44 +4650,44 @@ - - + + - + - - + + - - [Vd] + + [r_cos] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -4734,43 +4698,43 @@ - - + + - + - + - - [Vd_min] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -4782,44 +4746,44 @@ - - + + - + - + - - [n_mot] + + [z_ctrlMod] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -4840,11 +4804,11 @@ - + - + [b_enaFOC] @@ -4862,11 +4826,11 @@ - - + + - + boolean @@ -4878,44 +4842,29 @@ - - - + + + - - + + - - + + - - [Vq_min] + + [Vq_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -4926,44 +4875,44 @@ - - + + - + - - + + - - [id_Tgt] + + [b_motEna] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -4974,43 +4923,43 @@ - - + + - + - + - - [Vq_min] + + [Vq_Vlt] - + - + - - + + - + sfix16_En4 @@ -5022,139 +4971,151 @@ - - - + + + - - + + + + + + + + - - + + - - [r_cos] + + r_inpTgtSca - - - - - - + + + + + + + Vq_max - - - - - - + + + + + + + Vq_min - - + + - - sfix16_En14 + + n_mot - - - - - - - - - - - - - - - - - - - - + + - - [r_cos] + + iq_limProt + + + + + + + + Vq_Spd + + + + + + + + case: { } - - + + + + + + + + - - - + + + + + + + + + - - + + - - sfix16_En14 + + Speed_Mode - - - - - - - - - - - - - - - + - - - + + + + - - [iq_limPrott] + + - - - - - - + + + + + + + action - + + + + + + + - - + + - + sfix16_En4 @@ -5166,43 +5127,49 @@ - - + + + + + + + + - + - + - - [Vq_max] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -5214,43 +5181,43 @@ - - + + - + - + - - [n_limProt] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -5262,44 +5229,44 @@ - - + + - + - + - - [z_ctrlMod] + + [Vq_prev] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -5310,44 +5277,44 @@ - - + + - + - - + + - - [iq] + + [a_elecAngle] - + - - + + - - + + - - sfix16_En4 + + ufix16_En6 @@ -5358,44 +5325,29 @@ - - - + + + - - + + - - + + - - [Vq_max] + + [id] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -5406,44 +5358,44 @@ - - + + - + - - + + - - [Vd] + + [r_sin] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -5454,43 +5406,43 @@ - - + + - + - + - - [Vq_min] + + [r_inpTgtSca] - + - + - - + + - + sfix16_En4 @@ -5502,140 +5454,160 @@ - - - + + + - - + + + + + + + + - - + + - - [Vq_max] - - - - - - - - - - - - - - + + id_Tgt - - + + - - sfix16_En4 + + id - - - - - - - - - - - - - - - - - - - - + + - - [r_sin] - - - - - - - - - - - - - - + + Vd_max - - + + - - sfix16_En14 + + Vd_min + + + + + + + + id_max + + + + + + + + id_min + + + + + + + + Vd + + + + + + + + if { } - - - - - - - - - - - - + + + + + + + + + + + - + - - + + + + + + + + + + + - - [id_Tgt] + + Vd_Calculation - - - + + + + + + + + + + + + + + + + + sfix16_En4 - - + + + + + + + + - - + + - - sfix16_En4 + + action @@ -5646,43 +5618,49 @@ - - + + + + + + + + - + - + - - [r_inpTgtSca] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -5694,62 +5672,44 @@ - - - + + + - - + + - - + + - - [id_TgtAbs] + + [iq_max] - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [n_max] - - - - - - - + + sfix16_En4 @@ -5760,43 +5720,43 @@ - - + + - + - + - - [iq] + + [r_inpTgtSca] - + - + - - + + - + sfix16_En4 @@ -5808,43 +5768,43 @@ - - + + - + - - + + - - [Vd_max] + + [iq] - + - + - - + + - + sfix16_En4 @@ -5856,43 +5816,43 @@ - - + + - + - + - - [id] + + [Vq] - + - + - - + + - + sfix16_En4 @@ -5904,43 +5864,43 @@ - - + + - + - - + + - - [n_motAbs] + + [id] - + - + - - + + - + sfix16_En4 @@ -5952,43 +5912,43 @@ - - + + - + - + - - [r_inpTgtSca] + + [iq] - + - + - - + + - + sfix16_En4 @@ -6000,43 +5960,43 @@ - - + + - + - - + + - - [Vq_max] + + [Vq] - + - + - - + + - + sfix16_En4 @@ -6048,44 +6008,29 @@ - - - + + + - - + + - - + + - - 6 + + [iq_limPrott] - - - - - - - - - - - - - - - - - r_devSignal2 + + @@ -6096,91 +6041,138 @@ - - - + + + - - + + - + - - + + - - [id_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - + - + sfix16_En4 + + + + + + + + + + + Ini=0 + + + + - - + + - + - + - - [n_limProt] + + [Vq_Open] - + - + - - + + - + sfix16_En4 @@ -6194,62 +6186,70 @@ - + - + - + - + - + iq_raw - + - + id_raw - + - + iq - + - + id + + + + + + + if { } + - + - + @@ -6257,7 +6257,7 @@ - + @@ -6266,11 +6266,11 @@ - - + + - + Current_Filtering @@ -6278,20 +6278,41 @@ - + - + + + + + + + + + + action + + + + + + + + + + + + - - + + - + sfix16_En4 @@ -6299,20 +6320,20 @@ - + - + - - + + - + sfix16_En4 @@ -6324,49 +6345,97 @@ - + - + - + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + r_devSignal1 + + + + + + + + + + + + - + - - + + - - [iq] + + [Vd_max] - + - + - - + + - + sfix16_En4 @@ -6378,28 +6447,28 @@ - - + + - + - - + + - - [id_min] + + [iq] - + @@ -6411,233 +6480,92 @@ - - - + + + - - - - - - - - + + - - + + - - a_elecAngle + + [id_Tgt] - - - - - - - r_inpTgt + + + + + + - - - - - - - n_motAbs + + + + + + - - + + - - r_sin - - - - - - - - r_cos - - - - - - - - id_Tgt - - - - - - - - id_TgtAbs - - - - - - - - - - - - - + + sfix16_En4 - - - - - - - - - - - - - - - - - Field_Weakening - - + + + + + + + + + - - - - - - - - - - - - - - - - - - sfix16_En4 - - + + - - - - - - - - - - + - + - - sfix16_En14 + + if { } - - - - - - - - - - - - - - - - - sfix16_En14 + + + - - - - - - - - - - - - - - - - - sfix16_En4 + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - [Vq_Vlt] - - - - - - - + + Action Port @@ -6648,44 +6576,44 @@ - - - + + + - - + + - - + + - - + + [z_ctrlMod] - - + + - - + + - - + + - - sfix16_En4 + + uint8 @@ -6696,52 +6624,44 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + [r_inpTgtSca] - - + + - - + + - - + + - - action + + sfix16_En4 @@ -6752,44 +6672,44 @@ - - + + - + - + - - [Vq] + + [r_cos] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -6800,159 +6720,127 @@ - - - + + + - + - - + + - - + + - - id_Tgt + + i_phaAB - - + + - - id + + i_phaBC - - + + - - Vd_max + + i_alpha - - + + - - Vd_min + + i_beta + + + + - - - - - - id_max - - - - - - - - id_min - - - - - - - - Vd - - - - - - - - if { } - - - - - - - + - - + + - + - - + + - - + + - - Vd_Calculation + + Clarke_Transform - + - - + + - - + + - - action + + sfix16_En4 - + - + - - + + - + sfix16_En4 @@ -6964,35 +6852,50 @@ - + - + - - + + - - + + - - + + - - [z_ctrlMod] + + [n_limProt] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -7003,44 +6906,44 @@ - - - + + + - - + + - - + + - - if { } + + 4 - - + + - - + + - - + + - - Action Port + + Vq @@ -7051,29 +6954,44 @@ - - - + + + - - + + - - + + - - [n_limProt] + + [Vd] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -7084,127 +7002,58 @@ - - - + + + - - - - - - - - + + - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - i_alpha - - - - + + - - i_beta + + 6 - - - - - - - - + + - - - - - - - - - - - - - - - - Clarke_Transform - - - - - - - - - - - - - + + - - + + - - sfix16_En4 + + n_motAbs - - - - - - - + - - + + - + sfix16_En4 @@ -7216,49 +7065,43 @@ - - - - - - - - + + - + - - + + - - [id] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -7270,58 +7113,58 @@ - - + + - + - + - - 6 + + 5 - + - - + + - - + + - - n_motAbs + + n_mot - + - - + + - + sfix16_En4 @@ -7333,91 +7176,193 @@ - - - + + + - - + + + + + + + + - - + + - - [r_inpTgtSca] + + a_elecAngle + + + + + + + + r_inpTgtSca + + + + + + + + n_motAbs + + + + + + + + r_sin + + + + + + + + r_cos + + + + + + + + id_Tgt + + + + + + + + id_TgtAbs - - + + + + + + + + - - - + + + + + + + + + - - + + - - sfix16_En4 + + Field_Weakening - - - - - - - - - - - - + + + + + + + + + + + + + + + + + sfix16_En14 + + - + - - + + + + + + + + + + + - - [n_mot] + + sfix16_En4 - - - + + + + + + + + + + + + + + + + + sfix16_En14 - + + + + + + + - - + + - + sfix16_En4 @@ -7429,44 +7374,35 @@ - - - + + + + + + + + + - - + + - - + + - - [b_enaFOC] + + [id_min] - - - - - - - - - - - - - - - - - boolean + + @@ -7477,91 +7413,143 @@ - - - + + + - - + + + + + + + + + + + + + + + i_apha + + + + + + + + i_beta + + + + + + + + r_sin + + + + + + + + r_cos + - + - - [iq] + + iq_Raw + + + + + + + + id_Raw - - + + + + + + + + - - - + + + + + + + + + - - + + - - sfix16_En4 + + Park_Transform - - - - - - - - - - - - - - - + + + + + + + + + + - + - - [r_inpTgtSca] - - - - - - - + + sfix16_En4 - + + + + + + + - + - + sfix16_En4 @@ -7573,58 +7561,49 @@ - - - + + + + + + + + + - - + + - + - - 4 + + [Vd] - - - - - - - - - - - - - - - - - r_inpTgtSca + + - + - - + + - + sfix16_En4 @@ -7636,44 +7615,29 @@ - - - + + + - - + + - - + + - - [a_elecAngle] + + [z_ctrlMod] - - - - - - - - - - - - - - - - - ufix16_En6 + + @@ -7684,59 +7648,59 @@ - - + + - + - + - - 3 + + 7 - + - - + + - - + + - - r_inpTgt + + a_elecAngle - - + + - - + + - - sfix16_En4 + + ufix16_En6 @@ -7747,59 +7711,59 @@ - - + + - + - + - - 5 + + 3 - + - - + + - - + + - - n_mot + + b_motEna - - + + - - + + - - sfix16_En4 + + boolean @@ -7810,43 +7774,43 @@ - - + + - + - + - - [Vq_prev] + + [n_limProt] - + - + - - + + - + sfix16_En4 @@ -7858,91 +7822,28 @@ - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - - - - - - - - ufix16_En6 - - - - - - - - - - - - + + - + - - + + - - [Vq_Open] + + [Vd_min] - + @@ -7955,57 +7856,57 @@ - + - + - + - + 2 - + - + - - + + - + z_ctrlMod - + - - + + - + uint8 @@ -8017,44 +7918,77 @@ - - + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + - + - - + + - - [r_sin] + + [n_mot] - + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -8065,44 +7999,59 @@ - - - + + + - - + + - - + + - - [z_ctrlMod] + + 1 - - + + + + + + + + + + + + + + + + + b_enaFOC - - + + - - + + - - uint8 + + boolean @@ -8113,77 +8062,59 @@ - - - + + + - - + + - - + + - - [Vq_Open] + + 4 - - + + - - - + + + - - + + - - sfix16_En4 + + r_inpTgtSca - - - - - - - - - - - - - - - + + + + - - + + - - [n_motAbs] - - - - - - - + + sfix16_En4 @@ -8194,58 +8125,43 @@ - - - + + + - - + + - - + + - - 1 + + [b_enaFOC] - - - - - - - - - - - - - - - - - b_enaFOC + + - + - - + + - + boolean @@ -8328,11 +8244,11 @@ - + - + @@ -8342,11 +8258,11 @@ - + - + @@ -8566,11 +8482,11 @@ - + - + @@ -8737,11 +8653,11 @@ - + - + @@ -8771,11 +8687,11 @@ - + - + @@ -8805,11 +8721,11 @@ - + - + @@ -8839,11 +8755,11 @@ - + - + @@ -8898,39 +8814,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -8954,11 +8842,11 @@ - + - + @@ -8968,11 +8856,11 @@ - + - + @@ -9122,11 +9010,11 @@ - + - + @@ -9136,11 +9024,11 @@ - + - + @@ -9150,11 +9038,11 @@ - + - + @@ -9164,11 +9052,11 @@ - + - + @@ -9408,11 +9296,11 @@ - + - + @@ -9422,11 +9310,11 @@ - + - + @@ -9478,11 +9366,11 @@ - + - + @@ -9520,11 +9408,11 @@ - + - + @@ -9534,11 +9422,11 @@ - + - + @@ -9548,11 +9436,11 @@ - + - + @@ -9562,11 +9450,11 @@ - + - + @@ -9646,11 +9534,11 @@ - + - + @@ -9671,42 +9559,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -9741,34 +9601,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -9786,11 +9618,11 @@ - + - + @@ -9814,11 +9646,11 @@ - + - + @@ -9898,11 +9730,11 @@ - + - + @@ -9912,11 +9744,11 @@ - + - + @@ -9926,11 +9758,11 @@ - + - + @@ -10007,14 +9839,70 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -10023,5 +9911,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 1d60bbd..b82b150 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:8724", "className":"Simulink.Outport", @@ -79,6 +159,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8723", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"b_selPhaABCurrMeas", + "label":"b_selPhaABCurrMeas", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "b_selPhaABCurrMeas", + "on", + "inf", + "[]", + "[]", + "boolean", + "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:8720", "className":"Simulink.If", @@ -123,11 +252,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8718", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8717", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -136,7 +265,7 @@ "IconDisplay" ], "values":[ - "i_betaBC", + "i_betaAB", "local", "Tag" ], @@ -156,27 +285,33 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8717", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8722", + "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Merge1", + "label":"Merge1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" ], "values":[ - "i_betaAB", - "local", - "Tag" + "2", + "[]", + "off", + "[]" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -184,7 +319,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Merge", "masktype":"" } }, @@ -288,11 +423,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8722", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8721", "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Merge1", - "label":"Merge1", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -360,11 +495,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8711", + "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":[ @@ -391,21 +526,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8715", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8711", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "i_phaBC", - "local", "Tag" ], "tabs":[ @@ -419,16 +552,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "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":[ @@ -436,7 +569,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "i_phaAB", "Tag" ], "tabs":[ @@ -455,21 +588,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8719", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8708", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_beta", - "local", + "i_phaAB", "Tag" ], "tabs":[ @@ -483,16 +614,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8709", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8707", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -500,7 +631,7 @@ "IconDisplay" ], "values":[ - "i_phaAB", + "i_beta", "Tag" ], "tabs":[ @@ -519,11 +650,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8705", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8706", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -531,7 +662,7 @@ "IconDisplay" ], "values":[ - "i_betaBC", + "i_alpha", "Tag" ], "tabs":[ @@ -550,11 +681,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8706", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8704", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -562,7 +693,7 @@ "IconDisplay" ], "values":[ - "i_alpha", + "i_betaAB", "Tag" ], "tabs":[ @@ -581,11 +712,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8707", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8705", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -593,7 +724,7 @@ "IconDisplay" ], "values":[ - "i_beta", + "i_betaBC", "Tag" ], "tabs":[ @@ -612,11 +743,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8702", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8703", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -624,7 +755,7 @@ "IconDisplay" ], "values":[ - "i_alphaAB", + "i_alphaBC", "Tag" ], "tabs":[ @@ -643,19 +774,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8703", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8715", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "i_alphaBC", + "i_phaBC", + "local", "Tag" ], "tabs":[ @@ -669,7 +802,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -686,8 +819,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -699,7 +832,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -710,9 +842,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -722,7 +855,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -735,7 +868,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -745,18 +877,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 ] }, @@ -771,107 +906,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8723", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_selPhaABCurrMeas", - "label":"b_selPhaABCurrMeas", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_selPhaABCurrMeas", - "on", - "inf", - "[]", - "[]", - "boolean", - "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:8721", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" - ], - "values":[ - "2", - "[]", - "off", - "[]" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Merge", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8704", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8719", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "i_betaAB", + "i_beta", + "local", "Tag" ], "tabs":[ @@ -885,104 +934,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "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", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8708", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8718", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "i_phaAB", + "i_betaBC", + "local", "Tag" ], "tabs":[ @@ -996,7 +967,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -1013,8 +984,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1026,7 +997,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1037,9 +1007,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1049,7 +1020,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1062,7 +1033,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1072,18 +1042,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 ] }, @@ -1098,11 +1071,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8670", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8702", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_alphaAB", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8669", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"i_phaBC", - "label":"i_phaBC", + "name":"i_phaAB", + "label":"i_phaAB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -1125,7 +1129,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -1165,11 +1169,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8669", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8670", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"i_phaAB", - "label":"i_phaAB", + "name":"i_phaBC", + "label":"i_phaBC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -1192,7 +1196,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_8668_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png index b3d74db..a8e612b 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 6b0b387..3b23042 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 @@ - + - + 1 @@ -45,11 +93,11 @@ - + - + i_alpha @@ -59,11 +107,74 @@ + + + + + + + + + + + + + + + + + + b_selPhaABCurrMeas + + + + + + + + + + + + + + + + + + + + + + b_selPhaABCurrMeas + + + + + + + + + + + + + + + boolean + + + + + + + + - + @@ -71,27 +182,27 @@ - + - + u1 - + - + if(u1 ~= 0) - + - + else @@ -105,30 +216,30 @@ - + - - + + - + action - + - - + + - + action @@ -140,28 +251,28 @@ - - + + - + - + - - [i_betaBC] + + [i_betaAB] - + @@ -173,29 +284,60 @@ - - - + + + - - + + - + - - + + - - [i_betaAB] + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -216,11 +358,11 @@ - + - + [i_alphaBC] @@ -249,11 +391,11 @@ - + - + [i_phaAB] @@ -282,11 +424,11 @@ - + - + [i_alphaAB] @@ -305,29 +447,29 @@ - - - + + + - + - + - + - + - + @@ -342,22 +484,22 @@ - + - + - - + + - + sfix16_En4 @@ -379,11 +521,11 @@ - + - + [i_alpha] @@ -402,43 +544,43 @@ - - + + - + - + - + [i_phaBC] - + - + - - + + - + sfix16_En4 @@ -450,29 +592,44 @@ - - - + + + - - + + - - + + - + [i_phaBC] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -483,43 +640,43 @@ - - + + - + - + - - [i_phaBC] + + [i_phaAB] - + - + - - + + - + sfix16_En4 @@ -531,76 +688,43 @@ - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - + + - + - + - + [i_phaAB] - + - + - - + + - + sfix16_En4 @@ -612,43 +736,43 @@ - - + + - + - + - - [i_betaBC] + + [i_beta] - + - + - - + + - + sfix16_En4 @@ -670,11 +794,11 @@ - + - + [i_alpha] @@ -692,11 +816,11 @@ - + - + sfix16_En4 @@ -708,43 +832,43 @@ - - + + - + - + - - [i_beta] + + [i_betaAB] - + - + - - + + - + sfix16_En4 @@ -756,43 +880,43 @@ - - + + - + - + - - [i_alphaAB] + + [i_betaBC] - + - + - - + + - + sfix16_En4 @@ -814,11 +938,11 @@ - + - + [i_alphaBC] @@ -836,11 +960,11 @@ - + - + sfix16_En4 @@ -850,11 +974,44 @@ + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + - + @@ -868,43 +1025,43 @@ - + - + i_phaB - + - + i_phaC - + - + i_alphaBC - + - + i_betaBC - + - + else { } @@ -934,11 +1091,11 @@ - + - + Clarke_PhasesBC @@ -955,11 +1112,11 @@ - + - + sfix16_En4 @@ -972,16 +1129,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -993,16 +1150,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -1013,177 +1170,35 @@ - + - - - - - - - - - - - - - - - b_selPhaABCurrMeas - - - - - - - - - - - - - - - - - - - - - - b_selPhaABCurrMeas - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - + + - - + + - - + + - - [i_betaAB] + + [i_beta] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1194,92 +1209,29 @@ - - - + + + - - + + - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - i_beta - - - - - - - - - - - - - - - - - - - - - - + - - [i_phaAB] + + [i_betaBC] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1292,7 +1244,7 @@ - + @@ -1306,43 +1258,43 @@ - + - + i_phaA - + - + i_phaB - + - + i_alphaAB - + - + i_betaAB - + - + if { } @@ -1372,11 +1324,11 @@ - + - + Clarke_PhasesAB @@ -1393,11 +1345,11 @@ - + - + action @@ -1410,15 +1362,15 @@ - + - - + + - + sfix16_En4 @@ -1431,15 +1383,15 @@ - + - - + + - + sfix16_En4 @@ -1451,17 +1403,65 @@ - + - + + + + + + + + + + + + + + + [i_alphaAB] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + @@ -1471,44 +1471,44 @@ - - 2 + + 1 - + - - + + - + - - i_phaBC + + i_phaAB - + - + - + sfix16_En4 @@ -1520,11 +1520,11 @@ - - + + - + @@ -1534,44 +1534,44 @@ - - 1 + + 2 - + - - + + - + - - i_phaAB + + i_phaBC - + - + - + sfix16_En4 @@ -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 acbb023..0549e2e 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 @@ -49,11 +49,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8683", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8684", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"i_alphaAB", - "label":"i_alphaAB", + "name":"i_betaAB", + "label":"i_betaAB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -82,7 +82,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -162,11 +162,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8680", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8679", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -175,7 +175,7 @@ "IconDisplay" ], "values":[ - "i_phaB", + "i_phaA", "local", "Tag" ], @@ -195,27 +195,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8679", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8682", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "i_phaA", - "local", - "Tag" + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 10 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -223,16 +249,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8677", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8678", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", + "name":"Gain4", + "label":"Gain4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -250,7 +276,7 @@ "SampleTime" ], "values":[ - "2/sqrt(3)", + "1/sqrt(3)", "Element-wise(K.*u)", "[]", "[]", @@ -287,11 +313,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8678", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8676", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "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:8677", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"Gain2", + "label":"Gain2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -309,7 +366,7 @@ "SampleTime" ], "values":[ - "1/sqrt(3)", + "2/sqrt(3)", "Element-wise(K.*u)", "[]", "[]", @@ -346,42 +403,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8674", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "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: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":[ @@ -389,7 +415,7 @@ "IconDisplay" ], "values":[ - "i_phaB", + "i_phaA", "Tag" ], "tabs":[ @@ -408,11 +434,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8684", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8683", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"i_betaAB", - "label":"i_betaAB", + "name":"i_alphaAB", + "label":"i_alphaAB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -441,7 +467,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -487,6 +513,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8674", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "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:8673", "className":"Simulink.Inport", @@ -554,65 +611,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:8672", "className":"Simulink.Inport", @@ -681,19 +679,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8675", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8680", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "i_phaA", + "i_phaB", + "local", "Tag" ], "tabs":[ @@ -707,7 +707,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, 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 a1bf68d..89d6b7f 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 @@ -64,11 +64,11 @@ - - + + - + @@ -78,30 +78,30 @@ - - 1 + + 2 - + - - + + - + - - i_alphaAB + + i_betaAB @@ -288,11 +288,11 @@ - - + + - + @@ -302,14 +302,14 @@ - - [i_phaB] + + [i_phaA] - + @@ -321,29 +321,68 @@ - - - + + + - - + + - + - - [i_phaA] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -354,43 +393,43 @@ - - + + - + - + - - 2/sqrt(3) + + 1/sqrt(3) - + - + - - + + - + sfix16_En4 @@ -402,43 +441,43 @@ - - - + + + - - + + - - + + - - 1/sqrt(3) + + [i_phaB] - - + + - + - - + + - + sfix16_En4 @@ -450,44 +489,44 @@ - - - + + + - - + + - - + + - - if { } + + 2/sqrt(3) - - + + - - - + + + - - + + - - Action Port + + sfix16_En4 @@ -498,43 +537,43 @@ - - + + - + - + - - [i_phaB] + + [i_phaA] - + - + - - + + - + sfix16_En4 @@ -546,44 +585,44 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - i_betaAB + + i_alphaAB @@ -594,59 +633,44 @@ - - - + + + - - + + - - + + - - 2 + + if { } - - + + - - - - - - - - - - i_phaB - - - - - - - + + - - + + - - sfix16_En4 + + Action Port @@ -657,67 +681,58 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + 2 - - + + + + + + + + + + + + + + + + + i_phaB - + - - + + - + sfix16_En4 @@ -739,11 +754,11 @@ - + - + 1 @@ -761,11 +776,11 @@ - + - + i_phaA @@ -776,11 +791,11 @@ - + - + sfix16_En4 @@ -792,44 +807,29 @@ - - - + + + - - + + - - + + - - [i_phaA] + + [i_phaB] - - - - - - - - - - - - - - - - - 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 bb3f7b7..00ebfed 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 @@ -187,65 +187,6 @@ "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:8699", "className":"Simulink.Outport", @@ -327,60 +268,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8696", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_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:8695", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8697", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "i_phaB", - "local", - "Tag" + "rectangular", + "--", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 10 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -388,7 +322,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Sum", "masktype":"" } }, @@ -452,11 +386,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8691", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8693", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ @@ -483,11 +417,75 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8693", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8696", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto15", + "label":"Goto15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_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:8689", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "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:8691", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ @@ -514,11 +512,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8690", + "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":[ @@ -612,20 +610,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8689", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8690", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "held", - "Only when execution is resumed" + "i_phaB", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -638,24 +636,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8692", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8695", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "i_phaB", + "local", "Tag" ], "tabs":[ @@ -669,7 +669,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, 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 ff95e1d..5621027 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 @@ -174,6 +174,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_alphaBC + + + + + + + + @@ -186,19 +234,19 @@ - + - + - + - + @@ -216,11 +264,11 @@ - + - + sfix16_En4 @@ -232,44 +280,44 @@ - - - + + + - - + + - - + + - - 1 + + 1/sqrt(3) - - + + - - - + + + - - + + - - i_alphaBC + + sfix16_En4 @@ -280,29 +328,44 @@ - - - + + + - - + + - - + + - + [i_phaC] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -313,28 +376,28 @@ - - + + - + - + - - [i_phaB] + + [i_phaC] - + @@ -346,44 +409,44 @@ - - - + + + - - + + - - + + - - 1/sqrt(3) + + else { } - - + + - - - + + + - - + + - - sfix16_En4 + + Action Port @@ -404,11 +467,11 @@ - + - + [i_phaC] @@ -426,11 +489,11 @@ - + - + sfix16_En4 @@ -442,91 +505,43 @@ - - - - - - - - - - - - - - - - [i_phaC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - + [i_phaB] - + - + - - + + - + sfix16_En4 @@ -548,11 +563,11 @@ - + - + 2 @@ -570,11 +585,11 @@ - + - + i_phaC @@ -585,11 +600,11 @@ - + - + sfix16_En4 @@ -601,44 +616,44 @@ - - - + + + - - + + - - + + - - else { } + + [i_phaB] - - + + - - - + + + - - + + - - Action Port + + sfix16_En4 @@ -649,44 +664,29 @@ - - - + + + - - + + - - + + - + [i_phaB] - - - - - - - - - - - - - - - - - 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 14057db..79faa51 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,10 +1,10 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8742", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8741", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id", - "label":"id", + "name":"iq", + "label":"iq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -33,7 +33,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -46,9 +46,9 @@ "auto", "off", "off", - "[]", + "0", "off", - "held", + "reset", "off", "0", "", @@ -129,20 +129,22 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8739", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8736", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "bar" + "id_raw", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -155,16 +157,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8737", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8735", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -173,7 +175,7 @@ "IconDisplay" ], "values":[ - "id", + "iq_raw", "local", "Tag" ], @@ -193,11 +195,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8736", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8734", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -206,7 +208,7 @@ "IconDisplay" ], "values":[ - "id_raw", + "iq", "local", "Tag" ], @@ -226,104 +228,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Low_Pass_Filter", - "label":"Low_Pass_Filter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "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:8735", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8737", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -332,7 +241,7 @@ "IconDisplay" ], "values":[ - "iq_raw", + "id", "local", "Tag" ], @@ -352,11 +261,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8731", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8733", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -364,7 +273,7 @@ "IconDisplay" ], "values":[ - "id", + "id_raw", "Tag" ], "tabs":[ @@ -383,11 +292,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8730", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8731", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -395,7 +304,7 @@ "IconDisplay" ], "values":[ - "iq", + "id", "Tag" ], "tabs":[ @@ -445,11 +354,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8733", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8730", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -457,7 +366,7 @@ "IconDisplay" ], "values":[ - "id_raw", + "iq", "Tag" ], "tabs":[ @@ -476,35 +385,95 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8734", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Low_Pass_Filter", + "label":"Low_Pass_Filter", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "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":[ - "iq", - "local", - "Tag" + "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":[ - "Parameter Attributes" ], - "tabs_idx":0 + "tabs_idx":[ + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, @@ -542,11 +511,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8741", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8728", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"id_raw", + "label":"id_raw", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -562,20 +531,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -587,17 +550,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -617,16 +573,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8728", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8742", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_raw", - "label":"id_raw", + "name":"id", + "label":"id", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -642,11 +598,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ "2", @@ -661,10 +623,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -684,7 +653,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", + "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":"" } }, @@ -755,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.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.png index 86a7848..a19b77f 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.png differ 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 9cd9700..82190fc 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 @@ -1,10 +1,10 @@ - + - + @@ -13,11 +13,11 @@ - - + + - + @@ -27,30 +27,30 @@ - - 2 + + 1 - + - + - + - - id + + iq @@ -94,7 +94,7 @@ - + @@ -109,7 +109,7 @@ - + @@ -124,44 +124,95 @@ - - - + + + - - + + - + - - + + [id_raw] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + [iq_raw] + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [iq] + + + + + + + @@ -182,11 +233,11 @@ - + - + [id] @@ -205,29 +256,188 @@ - - - + + + - - + + - - + + - + [id_raw] - - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_raw] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -240,7 +450,7 @@ - + @@ -248,442 +458,265 @@ - + - + u - + - + coef - + - + y - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - coef - - - - - - - - - - - - - - - - - - - - - - Low_Pass_Filter - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_raw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - + + + + - - + + - - sfix16_En4 + + coef - - - - - - - - - - - - + + + + + - + + + + - + - - [iq] - - - - - - - + + Low_Pass_Filter - + - + - + sfix16_En4 - - - - - - - - - - - - - - - + - + - - [iq_raw] - - - - - - - + + - - - - - - - - - - - - - sfix16_En4 + + + + + + + + + + + + + + + + + + @@ -694,77 +727,59 @@ - - - + + + - - + + - - + + - - [id_raw] + + - - + + - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - + + + + - - + + - - [iq] - - - - - - - + + sfix16_En4 @@ -775,58 +790,58 @@ - - - + + + - - + + - - + + - - + + 2 - - + + - - - + + + - - + + - - sfix16_En4 + + id_raw - + - - + + - + sfix16_En4 @@ -838,44 +853,44 @@ - - + + - + - + - - 1 + + 2 - + - + - - + + - - iq + + id @@ -886,58 +901,43 @@ - - - + + + - - + + - - + + - - 2 + + - - - - - - - - - - - - - - - - - id_raw + + - + - + - + sfix16_En4 @@ -982,7 +982,7 @@ - + @@ -997,7 +997,7 @@ - + @@ -1010,6 +1010,54 @@ + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -1166,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 8993a3a..805e3a3 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 @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2407", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", - "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:8738:2405", "className":"Simulink.Sum", @@ -305,50 +225,89 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2400", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2402", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"coef", - "label":"coef", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "2", - "Port number", + "**", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: auto", + "Inherit: Same as first input", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "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:8738:2401", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "1", "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "off", - "off" + "inf" ], "tabs":[ "Main", @@ -357,8 +316,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -367,16 +326,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2399", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2400", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", + "name":"coef", + "label":"coef", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ @@ -399,7 +358,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -439,40 +398,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2402", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2407", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"y", + "label":"y", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", + "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":[ - "**", - "Element-wise(.*)", - "off", + "1", + "Port number", "[]", "[]", - "Inherit: Same as first input", + "Inherit: auto", "off", - "Simplest", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "1", - "All dimensions", - "-1" + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -482,7 +464,7 @@ "tabs_idx":[ 0, 2, - 9 + 11 ] }, "viewer":{ @@ -491,37 +473,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2401", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2399", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"u", + "label":"u", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "1", - "on", - "inf", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -530,8 +530,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -540,7 +540,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Inport", "masktype":"" } }, 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 7899ac6..42f76c6 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 @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - @@ -71,27 +23,27 @@ - + - + - + - + - + - + @@ -109,11 +61,11 @@ - + - + ufix16_En16 @@ -135,35 +87,35 @@ - + - + - + - + - + - + - + - + @@ -181,11 +133,11 @@ - + - + sfix16_En4 @@ -207,19 +159,19 @@ - + - + - + - + @@ -237,11 +189,11 @@ - + - + sfix16_En4 @@ -263,35 +215,35 @@ - + - + - + - + - + - + - + - + @@ -317,11 +269,11 @@ - + - + sfix16_En4 @@ -333,58 +285,99 @@ - - - + + + - - + + - - + + - - 2 + + + + + + + + + + - - + + - - - + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + - + - - coef + + 1 + + + + + + + - + - + - + ufix16_En16 @@ -396,11 +389,11 @@ - - + + - + @@ -410,45 +403,45 @@ - - 1 + + 2 - + - - + + - + - - u + + coef - - + + - + - - sfix16_En4 + + ufix16_En16 @@ -459,52 +452,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + 1 - - + + - - - + + + - - + + - - sfix16_En4 + + y @@ -515,44 +500,59 @@ - - - + + + - - + + - - + + - + 1 - - + + + + + + + + + + + + + + + + + u - - + + - + - - ufix16_En16 + + sfix16_En4 @@ -715,5 +715,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 f6c60fc..7ef045d 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 @@ -196,11 +196,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8760", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8759", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_TgtAbs", - "label":"id_TgtAbs", + "name":"id_Tgt", + "label":"id_Tgt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -229,7 +229,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "3", "Port number", "[]", "[]", @@ -276,208 +276,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8755", - "className":"Simulink.Interpolation_nD", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8756", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"r_sin_M1", - "label":"r_sin_M1", + "name":"toNegative", + "label":"toNegative", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "NumberOfTableDimensions", - "RequireIndexFractionAsBus", - "TableSpecification", - "TableSource", - "Table", - "InterpMethod", - "DiagnosticForOutOfRangeInput", - "ValidIndexMayReachLast", - "NumSelectionDims", - "RemoveProtectionIndex", - "TableDataTypeStr", - "TableMin", - "TableMax", - "OutDataTypeStr", + "Gain", + "Multiplication", "OutMin", "OutMax", - "InternalRulePriority", + "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "ExtrapMethod", - "IntermediateResultsDataTypeStr", - "LookupTableObject", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", "SampleTime" ], "values":[ - "1", - "off", - "Explicit values", - "Dialog", - "r_sin_M1", - "Flat", - "Error", - "on", - "0", - "on", - "Inherit: Same as output", - "[]", - "[]", - "fixdt(1,16,14)", + "-1", + "Element-wise(K.*u)", "[]", "[]", - "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:8753", - "className":"Simulink.PreLookup", - "icon":"WebViewIcon3", - "name":"r_fieldWeak_XA", - "label":"r_fieldWeak_XA", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "UseLastBreakpoint", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "FractionDataTypeStr", - "LockScale", - "RndMeth", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "OutputBusDataTypeStr", - "SampleTime" - ], - "values":[ - "Explicit values", - "Dialog", - "r_fieldWeak_XA", - "Index and fraction", - "Evenly spaced points", - "Clip", + "fixdt(1,16,4)", "off", - "Error", + "Zero", "off", - "Inherit: Same as input", "[]", "[]", - "uint8", - "fixdt(0,8,6)", - "off", - "Simplest", - "on", - "", - "10", - "11", - "10", - "Inherit: auto", + "Inherit: Same as input", "-1" ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 9, - 16 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"PreLookup", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9657", - "className":"Simulink.Relay", - "icon":"WebViewIcon3", - "name":"n_fieldWeakAuth", - "label":"n_fieldWeakAuth", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "InputProcessing", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "SampleTime", - "ZeroCross" - ], - "values":[ - "n_fieldWeakAuthHi", - "n_fieldWeakAuthLo", - "1", - "0", - "Elements as channels (sample based)", - "[]", - "[]", - "boolean", - "off", - "-1", - "on" - ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 5, - 9 + 2, + 8, + 11 ] }, "viewer":{ @@ -486,16 +330,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Relay", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8752", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8755", "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"id_fieldWeak_M1", - "label":"id_fieldWeak_M1", + "name":"r_sin_M1", + "label":"r_sin_M1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -529,19 +373,19 @@ "off", "Explicit values", "Dialog", - "id_fieldWeak_M1", - "Linear", + "r_sin_M1", + "Flat", "Error", - "off", + "on", "0", "on", "Inherit: Same as output", "[]", "[]", - "fixdt(1,16,4)", + "fixdt(1,16,14)", "[]", "[]", - "Precision", + "Speed", "off", "Simplest", "off", @@ -572,32 +416,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8751", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9657", + "className":"Simulink.Relay", "icon":"WebViewIcon3", - "name":"b_fieldWeakEna", - "label":"b_fieldWeakEna", + "name":"n_fieldWeakAuth", + "label":"n_fieldWeakAuth", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "SampleTime", + "ZeroCross" ], "values":[ - "b_fieldWeakEna", - "on", - "inf", + "n_fieldWeakAuthHi", + "n_fieldWeakAuthLo", + "1", + "0", + "Elements as channels (sample based)", "[]", "[]", "boolean", "off", - "inf" + "-1", + "on" ], "tabs":[ "Main", @@ -606,8 +456,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 5, + 9 ] }, "viewer":{ @@ -616,7 +466,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Relay", "masktype":"" } }, @@ -670,32 +520,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8749", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8757", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_sin", + "label":"r_sin", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "0", - "on", - "inf", + "1", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -704,8 +585,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -714,32 +595,78 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9638", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748", + "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"a_elecAngle_XA", + "label":"a_elecAngle_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", + "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" ], "values":[ - "n_motAbs", - "local", - "Tag" + "Explicit values", + "Dialog", + "a_elecAngle_XA", + "Index only", + "Evenly spaced points", + "Clip", + "Error", + "off", + "Inherit: Same as input", + "[]", + "[]", + "uint8", + "off", + "on", + "", + "10", + "11", + "10", + "fixdt(0,16,14)", + "Inherit: auto", + "Simplest", + "-1", + "off" ], "tabs":[ - "Parameter Attributes" + "Main", + "Data Types", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 8, + 13 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -747,7 +674,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"PreLookup", "masktype":"" } }, @@ -809,27 +736,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9646", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8753", + "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"r_fieldWeak_XA", + "label":"r_fieldWeak_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", + "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" ], "values":[ - "r_cos", - "local", - "Tag" + "Explicit values", + "Dialog", + "r_fieldWeak_XA", + "Index and fraction", + "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":[ - "Parameter Attributes" + "Main", + "Data Types", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 8, + 13 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -837,16 +810,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"PreLookup", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9644", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9639", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -855,7 +828,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "a_elecAngle", "local", "Tag" ], @@ -875,11 +848,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9649", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9650", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -888,7 +861,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "id_TgtAbs", "local", "Tag" ], @@ -908,19 +881,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9653", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9652", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgt", + "r_inpTgtSca", + "local", "Tag" ], "tabs":[ @@ -934,16 +909,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9652", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9646", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -952,7 +927,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "r_cos", "local", "Tag" ], @@ -972,19 +947,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9641", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9644", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbs", + "r_sin", + "local", "Tag" ], "tabs":[ @@ -998,24 +975,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9640", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9648", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "a_elecAngle", + "id_TgtAbs", "Tag" ], "tabs":[ @@ -1034,73 +1011,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8758", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8754", + "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"r_cos", - "label":"r_cos", + "name":"r_cos_M1", + "label":"r_cos_M1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "Port", - "IconDisplay", + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", "OutMin", "OutMax", - "OutDataTypeStr", + "InternalRulePriority", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" ], "values":[ - "2", - "Port number", + "1", + "off", + "Explicit values", + "Dialog", + "r_cos_M1", + "Flat", + "Error", + "on", + "0", + "on", + "Inherit: Same as output", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", + "fixdt(1,16,14)", "[]", + "[]", + "Speed", "off", - "held", + "Simplest", "off", - "0", + "Clip", + "Inherit: Same as output", "", - [ - ], - "Dialog", - "Auto", - "off" + "-1" ], "tabs":[ "Main", - "Signal Attributes", + "Data Types", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 10, + 20 ] }, "viewer":{ @@ -1109,46 +1087,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Interpolation_n-D", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9654", - "className":"Simulink.Abs", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9647", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" + "id_Tgt", + "Tag" ], "tabs":[ - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 6 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1156,16 +1118,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Abs", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9648", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9645", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -1173,7 +1135,7 @@ "IconDisplay" ], "values":[ - "id_TgtAbs", + "r_cos", "Tag" ], "tabs":[ @@ -1192,21 +1154,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9650", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id_TgtAbs", - "local", + "r_sin", "Tag" ], "tabs":[ @@ -1220,16 +1180,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9647", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9640", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -1237,7 +1197,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "a_elecAngle", "Tag" ], "tabs":[ @@ -1256,25 +1216,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8751", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"b_fieldWeakEna", + "label":"b_fieldWeakEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "r_sin", - "Tag" + "b_fieldWeakEna", + "on", + "inf", + "[]", + "[]", + "boolean", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1282,80 +1260,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8754", - "className":"Simulink.Interpolation_nD", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9638", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"r_cos_M1", - "label":"r_cos_M1", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "off", - "Explicit values", - "Dialog", - "r_cos_M1", - "Flat", - "Error", - "on", - "0", - "on", - "Inherit: Same as output", - "[]", - "[]", - "fixdt(1,16,14)", - "[]", - "[]", - "Speed", - "off", - "Simplest", - "off", - "Clip", - "Inherit: Same as output", - "", - "-1" + "n_motAbs", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Types", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 10, - 20 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1363,16 +1293,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Interpolation_n-D", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8745", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8760", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"id_TgtAbs", + "label":"id_TgtAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -1388,14 +1318,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -1407,10 +1343,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -1430,16 +1373,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8759", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9651", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id_Tgt", - "label":"id_Tgt", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -1455,20 +1398,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -1480,17 +1417,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -1510,16 +1440,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8757", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9653", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "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:8758", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_sin", - "label":"r_sin", + "name":"r_cos", + "label":"r_cos", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -1548,7 +1509,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -1595,53 +1556,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8756", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9641", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"toNegative", - "label":"toNegative", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "n_motAbs", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1649,24 +1582,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9645", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9649", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_cos", + "id_Tgt", + "local", "Tag" ], "tabs":[ @@ -1680,16 +1615,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9651", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8745", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -1712,7 +1647,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -1752,72 +1687,89 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748", - "className":"Simulink.PreLookup", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9654", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"a_elecAngle_XA", - "label":"a_elecAngle_XA", + "name":"Abs5", + "label":"Abs5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "UseLastBreakpoint", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "FractionDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", "LockScale", "RndMeth", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "OutputBusDataTypeStr", - "SampleTime" + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" ], "values":[ - "Explicit values", - "Dialog", - "a_elecAngle_XA", - "Index only", - "Evenly spaced points", - "Clip", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "Error", + "Zero", "off", - "Inherit: Same as input", + "-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:8749", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"a_elecPeriod1", + "label":"a_elecPeriod1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", "[]", "[]", - "uint8", - "fixdt(0,16,14)", + "Inherit: Inherit via back propagation", "off", - "Simplest", - "on", - "", - "10", - "11", - "10", - "Inherit: auto", - "-1" + "inf" ], "tabs":[ "Main", - "Data Types", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 9, - 16 + 3, + 7 ] }, "viewer":{ @@ -1826,7 +1778,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"PreLookup", + "blocktype":"Constant", "masktype":"" } }, @@ -1898,27 +1850,75 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9639", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8752", + "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"id_fieldWeak_M1", + "label":"id_fieldWeak_M1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "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":[ - "a_elecAngle", - "local", - "Tag" + "1", + "off", + "Explicit values", + "Dialog", + "id_fieldWeak_M1", + "Linear", + "Error", + "off", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(1,16,4)", + "[]", + "[]", + "Precision", + "off", + "Simplest", + "off", + "Clip", + "Inherit: Same as output", + "", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Data Types", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 10, + 20 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1926,7 +1926,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Interpolation_n-D", "masktype":"" } }, 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 526be1f..85b080d 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 1ebd177..0c6817f 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 @@ -97,11 +97,11 @@ - - + + - + @@ -111,30 +111,30 @@ - - 4 + + 3 - + - - + + - + - - id_TgtAbs + + id_Tgt @@ -145,54 +145,78 @@ - - - + + + - - + + - + - - + + -1 - - - - - - - + + + + + + + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + @@ -200,7 +224,7 @@ - + @@ -216,7 +240,7 @@ - + @@ -224,7 +248,7 @@ - + @@ -232,7 +256,7 @@ - + @@ -240,7 +264,7 @@ - + @@ -248,7 +272,7 @@ - + @@ -256,7 +280,7 @@ - + @@ -264,7 +288,7 @@ - + @@ -272,7 +296,7 @@ - + @@ -280,7 +304,7 @@ - + @@ -288,7 +312,7 @@ - + @@ -296,7 +320,7 @@ - + @@ -304,7 +328,7 @@ - + @@ -312,7 +336,7 @@ - + @@ -320,7 +344,7 @@ - + @@ -328,7 +352,7 @@ - + @@ -336,7 +360,7 @@ - + @@ -344,7 +368,7 @@ - + @@ -352,7 +376,7 @@ - + @@ -360,7 +384,7 @@ - + @@ -368,7 +392,7 @@ - + @@ -376,7 +400,7 @@ - + @@ -384,7 +408,7 @@ - + @@ -392,7 +416,7 @@ - + @@ -400,7 +424,7 @@ - + @@ -408,7 +432,7 @@ - + @@ -416,7 +440,7 @@ - + @@ -424,7 +448,7 @@ - + @@ -432,7 +456,7 @@ - + @@ -440,30 +464,54 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + - + 1-D T(k,f) - + - + k1 - + - + f1 @@ -481,11 +529,11 @@ - + - + r_sin_M1 @@ -496,11 +544,11 @@ - + - + sfix16_En14 @@ -512,242 +560,203 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - + + - - + + n_fieldWeakAuth + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + boolean - - + + + + + + + + + + + + + + + + + + + 0 + - - + + - - - + + + - - + + - - r_fieldWeak_XA + + uint8 - - - - + + + + + + + + + + + + + + + - - + + - - uint8 + + 1 - - - + + + + + + + + + + - - + + - - ufix8_En6 + + r_sin @@ -758,62 +767,94 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + @@ -827,38 +868,38 @@ - - + + - - + + - - + + - - n_fieldWeakAuth + + a_elecAngle_XA - - + + - - + + - - boolean + + uint8 @@ -869,178 +910,187 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - 1-D T(k,f) + + - + - - k1 + + T - + - - f1 + + F - - - - - - - - - - - - - - - - - id_fieldWeak_M1 + + - + - - + + - + sfix16_En4 @@ -1052,380 +1102,242 @@ - - - + + + - - + + - + - - + + - - b_fieldWeakEna + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - b_fieldWeakEna + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - 0 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - uint8 + + - - - - - - - - - - - - - - - - - - - - + + - - 0 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - - - - - - - - - - - + - - + + - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + - - + + - - + + r_fieldWeak_XA - - - - - - - T + + + + + + - - + + - - F - - - - - - - + + uint8 - - + + - - + + - - sfix16_En4 + + ufix8_En6 @@ -1436,28 +1348,28 @@ - - + + - + - - + + - - [r_cos] + + [a_elecAngle] - + @@ -1469,28 +1381,28 @@ - - + + - + - + - - [r_sin] + + [id_TgtAbs] - + @@ -1502,28 +1414,28 @@ - - + + - + - - + + - - [id_Tgt] + + [r_inpTgtSca] - + @@ -1535,44 +1447,29 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + [r_cos] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1583,28 +1480,28 @@ - - + + - + - - + + - - [r_inpTgt] + + [r_sin] - + @@ -1616,43 +1513,43 @@ - - + + - + - + - - [n_motAbs] + + [id_TgtAbs] - + - + - - + + - + sfix16_En4 @@ -1664,716 +1561,810 @@ - - - + + + - - + + - - + + - - [a_elecAngle] - - - - - - - + + - - - - - - + + + + + + + - - + + - - ufix16_En6 + + - - - - - - - - - - - - - - - - - - - - + + - - 2 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - r_cos + + - - - - - - - - - - - - - - - - - - - - + + - - + + - + - - + + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [id_TgtAbs] + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [id_TgtAbs] + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - + + - - + + 1-D T(k,f) - - + + - - + + k1 - - + + - - + + f1 - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + r_cos_M1 + + + + + + + - - + + - - + + sfix16_En14 + + + + + + + + + + + + + + + + + + - - + + - - + + [id_Tgt] + + + + + + + + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + [r_cos] + + + + + + + + + + + + + + - - + + - - + + sfix16_En14 + + + + + + + + + + + + + + + + + + - - + + - - + + [r_sin] + + + + + + + + + + + + + + - - + + - - + + sfix16_En14 + + + + + + + + + + + + + + + + + + - - + + - - + + [a_elecAngle] + + + + + + + + + + + + + + - - + + - - + + ufix16_En6 + + + + + + + + + + + + + + + + + + - - + + - - + + b_fieldWeakEna + + + + + + + + + + + + + + - - + + - - + + b_fieldWeakEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + id_TgtAbs + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + - - + + - - 1-D T(k,f) + + r_inpTgtSca - - - - - - - k1 + + + + + + - - + + - - f1 + + sfix16_En4 - - - - - + + + + + + + + + + + + - - - - + - - + + - - r_cos_M1 + + [r_inpTgtSca] + + + + + + + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -2384,58 +2375,91 @@ - - + + - + - + - - 3 + + 2 - + - - + + - - + + - - n_motAbs + + r_cos + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + - + - - + + - + sfix16_En4 @@ -2447,44 +2471,29 @@ - - - + + + - - + + - - + + - - 3 + + [id_Tgt] - - - - - - - - - - - - - - - - - id_Tgt + + @@ -2495,44 +2504,59 @@ - - + + - + - + - - 1 + + 3 - + - - + + - - + + - - r_sin + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 @@ -2543,43 +2567,75 @@ - - - + + + - - + + - + + + + + + + + + + + + + + + + + - + - - -1 + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -2591,44 +2647,44 @@ - - - + + + - - + + - - + + - - [r_cos] + + 0 - - + + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -2639,59 +2695,59 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - r_inpTgt + + a_elecAngle - - + + - - + + - - sfix16_En4 + + ufix16_En6 @@ -2702,235 +2758,179 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - a_elecAngle_XA - - - - - - - + + - + - - uint8 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - 1 + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 - - + + - - + + - - + + - - a_elecAngle + + id_fieldWeak_M1 - - - - - - - - - - ufix16_En6 + + - - - - - - - - - - - - - - - - - - - + - - [a_elecAngle] - - - - - - - + + sfix16_En4 @@ -2973,32 +2973,32 @@ - - - - - - - - - - - - + - + boolean + + + + + + + + + + + @@ -3401,5 +3401,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 4134c78..1a7d89f 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 @@ -530,37 +530,6 @@ "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:8879", "className":"Simulink.Sum", @@ -621,11 +590,64 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8875", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8877", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax2", + "label":"MinMax2", + "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", + "max", + "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:8874", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"Gain3", + "label":"Gain3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -643,13 +665,13 @@ "SampleTime" ], "values":[ - "2/sqrt(3)", + "1/2", "Element-wise(K.*u)", "[]", "[]", - "fixdt(1,16,0)", + "Inherit: Same as input", "off", - "Floor", + "Zero", "off", "[]", "[]", @@ -680,11 +702,64 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8874", + "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:8872", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", + "name":"Gain1", + "label":"Gain1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -702,7 +777,7 @@ "SampleTime" ], "values":[ - "1/2", + "sqrt(3)/2", "Element-wise(K.*u)", "[]", "[]", @@ -739,52 +814,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8873", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8870", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", + "name":"Add1", + "label":"Add1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "Gain", - "Multiplication", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", + "CollapseDim", + "CollapseMode", "SampleTime" ], "values":[ - "0.5", - "Element-wise(K.*u)", + "rectangular", + "-+", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Same as input", + "Inherit: Same as first input", "off", "Floor", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", + "on", + "1", + "All dimensions", "-1" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 8, - 11 + 10 ] }, "viewer":{ @@ -793,16 +868,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8872", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8873", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain1", - "label":"Gain1", + "name":"Gain2", + "label":"Gain2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -820,13 +895,13 @@ "SampleTime" ], "values":[ - "sqrt(3)/2", + "0.5", "Element-wise(K.*u)", "[]", "[]", "Inherit: Same as input", "off", - "Zero", + "Floor", "off", "[]", "[]", @@ -890,53 +965,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8869", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8878", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Add", - "label":"Add", + "name":"Mux4", + "label":"Mux4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "IconShape", "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "DisplayOption" ], "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "on", - "1", - "All dimensions", - "-1" + "3", + "bar" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -944,16 +991,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8870", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8869", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Add1", - "label":"Add1", + "name":"Add", + "label":"Add", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -973,12 +1020,12 @@ ], "values":[ "rectangular", - "-+", + "++", "off", "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Same as first input", + "Inherit: Inherit via internal rule", "off", "Floor", "on", @@ -1008,99 +1055,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8876", - "className":"Simulink.MinMax", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8875", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"MinMax1", - "label":"MinMax1", + "name":"Gain4", + "label":"Gain4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", "LockScale", - "OutMax", - "OutMin", "RndMeth", - "SampleTime", "SaturateOnIntegerOverflow", - "ZeroCross" + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "Inherit: Inherit via internal rule", - "min", - "on", - "1", - "off", + "2/sqrt(3)", + "Element-wise(K.*u)", "[]", "[]", - "Floor", - "-1", + "fixdt(1,16,0)", "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:8877", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax2", - "label":"MinMax2", - "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", - "max", - "on", - "1", + "Floor", "off", "[]", "[]", - "Floor", - "-1", - "off", - "on" + "Inherit: Inherit via internal rule", + "-1" ], "tabs":[ + "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1 + 2, + 8, + 11 ] }, "viewer":{ @@ -1109,7 +1109,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 d40e844..78d81b2 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 @@ -423,54 +423,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -483,19 +435,19 @@ - + - + - + - + @@ -513,11 +465,11 @@ - + - + sfix16_En4 @@ -529,44 +481,60 @@ - - - + + + - - + + - + - - + + - - 2/sqrt(3) + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - int16 + + sfix16_En4 @@ -587,11 +555,11 @@ - + - + 1/2 @@ -609,11 +577,11 @@ - + - + sfix16_En4 @@ -625,43 +593,59 @@ - - - + + + - - + + - + - - + + - - 0.5 + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -683,11 +667,11 @@ - + - + sqrt(3)/2 @@ -705,11 +689,11 @@ - + - + sfix16_En4 @@ -721,74 +705,108 @@ - - - + + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - int16 + + sfix16_En4 - - - - + + + + + + + + + + + + + + + - - + + - - int16 + + 0.5 + + + + + + + - - + + - - + + - - int16 + + sfix16_En4 @@ -799,68 +817,74 @@ - - - + + + - - + + - - + + - - + + - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + int16 - - - + + + + + + + + + + + int16 - - + + - - + + - - sfix16_En4 + + int16 @@ -871,59 +895,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - + + - + - - + + - + sfix16_En4 @@ -935,59 +943,67 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - + - - + + - + sfix16_En4 @@ -999,60 +1015,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 2/sqrt(3) - - - - - - - - - - + + - - + + - + - - sfix16_En4 + + int16 @@ -1409,5 +1409,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 db5f391..d6e6114 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 @@ -477,11 +477,70 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8906", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8907", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "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:8905", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -490,7 +549,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "r_sin", "local", "Tag" ], @@ -543,53 +602,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8907", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8904", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "Vd", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -597,16 +630,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8899", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8900", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -614,7 +647,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "Vq", "Tag" ], "tabs":[ @@ -633,25 +666,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8898", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8908", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Sum6", + "label":"Sum6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "Vd", - "Tag" + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 10 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -659,16 +720,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8901", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8898", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -676,7 +737,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "Vd", "Tag" ], "tabs":[ @@ -695,21 +756,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8905", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8896", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_sin", - "local", + "r_cos", "Tag" ], "tabs":[ @@ -723,16 +782,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8895", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8899", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -740,7 +799,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "r_cos", "Tag" ], "tabs":[ @@ -759,11 +818,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8896", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8897", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -771,7 +830,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "Vq", "Tag" ], "tabs":[ @@ -790,51 +849,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8894", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8906", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "r_cos", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -842,16 +877,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8891", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8893", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Divide3", + "label":"Divide3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -961,106 +996,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8904", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "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:8897", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "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: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:8900", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8895", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -1068,7 +1008,7 @@ "IconDisplay" ], "values":[ - "Vq", + "r_sin", "Tag" ], "tabs":[ @@ -1087,18 +1027,17 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8908", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8894", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ - "IconShape", "Inputs", + "Multiplication", "InputSameDT", - "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", @@ -1110,16 +1049,15 @@ "SampleTime" ], "values":[ - "rectangular", - "+-", + "**", + "Element-wise(.*)", "off", - "Inherit: Inherit via internal rule", "[]", "[]", "Inherit: Same as first input", "off", "Simplest", - "on", + "off", "1", "All dimensions", "-1" @@ -1132,7 +1070,7 @@ "tabs_idx":[ 0, 2, - 10 + 9 ] }, "viewer":{ @@ -1141,16 +1079,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8893", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8891", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -1202,6 +1140,68 @@ "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", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "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:8889#out:1", "className":"Simulink.Line", 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 eee9935..bce0d10 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 @@ -412,28 +412,100 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - [r_cos] + + [r_sin] - + @@ -455,11 +527,11 @@ - + - + [Vq] @@ -478,67 +550,76 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [Vd] - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + [Vq] - - + + - + - - + + - + sfix16_En4 @@ -550,44 +631,60 @@ - - - + + + - - + + - - + + - - [r_cos] + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -608,11 +705,11 @@ - + - + [Vd] @@ -630,11 +727,11 @@ - + - + sfix16_En4 @@ -646,43 +743,43 @@ - - + + - + - + - - [r_sin] + + [r_cos] - + - + - - + + - + sfix16_En14 @@ -694,76 +791,43 @@ - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - + + - + - + - - [r_sin] + + [r_cos] - + - + - - + + - + sfix16_En14 @@ -775,44 +839,44 @@ - - + + - + - + - - [r_cos] + + [Vq] - + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -823,52 +887,29 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [r_cos] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -879,51 +920,51 @@ - - + + - + - - + + - - + + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -945,19 +986,19 @@ - + - + - + - + @@ -975,11 +1016,11 @@ - + - + sfix16_En4 @@ -991,77 +1032,44 @@ - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - + + - + - + - - [Vq] + + [r_sin] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -1072,43 +1080,51 @@ - - - + + + - - + + - - + + - - [Vd] + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -1120,43 +1136,51 @@ - - - + + + - - + + - - + + - - [Vq] + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -1168,59 +1192,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + [Vd] - - + + - + - - + + - + sfix16_En4 @@ -1232,52 +1240,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + [r_sin] - - + + - - + + - + - - sfix16_En4 + + sfix16_En14 @@ -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 d1b5d57..fe14a13 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 @@ -245,11 +245,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9016", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9014", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_min", - "label":"n_min", + "name":"iq_limProt", + "label":"iq_limProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -278,7 +278,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "11", + "9", "Port number", "[]", "[]", @@ -325,11 +325,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9015", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9011", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", + "name":"id_min", + "label":"id_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -358,7 +358,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "10", + "6", "Port number", "[]", "[]", @@ -371,7 +371,7 @@ "auto", "off", "off", - "V_max", + "V_min", "off", "reset", "off", @@ -405,11 +405,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9013", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9010", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"id_max", + "label":"id_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -438,7 +438,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "8", + "5", "Port number", "[]", "[]", @@ -451,7 +451,7 @@ "auto", "off", "off", - "V_min", + "V_max", "off", "reset", "off", @@ -485,11 +485,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9010", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9006", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", + "name":"Vd_max", + "label":"Vd_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -518,7 +518,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", + "1", "Port number", "[]", "[]", @@ -565,63 +565,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9009", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9005", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "name":"n_max1", + "label":"n_max1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "FramePeriod" ], "values":[ - "4", - "Port number", + "n_max", + "on", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "V_min", - "off", - "reset", + "fixdt(1,16,4)", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "inf" ], "tabs":[ "Main", @@ -630,8 +599,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -640,68 +609,37 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9007", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9002", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Vd_min", - "label":"Vd_min", + "name":"i_max", + "label":"i_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "FramePeriod" ], "values":[ - "2", - "Port number", + "i_max", + "on", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "V_min", - "off", - "reset", + "fixdt(1,16,4)", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "inf" ], "tabs":[ "Main", @@ -710,8 +648,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -720,78 +658,77 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9006", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8999", + "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", + "name":"Vq_max_XA", + "label":"Vq_max_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "UseLastBreakpoint" ], "values":[ - "1", - "Port number", + "Explicit values", + "Dialog", + "Vq_max_XA", + "Index only", + "Evenly spaced points", + "Clip", + "Error", + "off", + "Inherit: Same as input", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "V_max", - "off", - "reset", + "uint8", "off", - "0", + "on", "", - [ - ], - "Dialog", - "Auto", + "10", + "11", + "10", + "fixdt(0,8,6)", + "Inherit: auto", + "Simplest", + "-1", "off" ], "tabs":[ "Main", - "Signal Attributes", + "Data Types", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 8, + 13 ] }, "viewer":{ @@ -800,65 +737,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"PreLookup", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9005", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998", + "className":"Simulink.Interpolation_nD", "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:9003", - "className":"Simulink.Interpolation_nD", - "icon":"WebViewIcon3", - "name":"iq_max_M1", - "label":"iq_max_M1", + "name":"Vq_max_M1", + "label":"Vq_max_M1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -892,7 +780,7 @@ "off", "Explicit values", "Dialog", - "iq_max_M1", + "Vq_max_M1", "Flat", "Error", "on", @@ -935,60 +823,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9001", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecPeriod2", - "label":"a_elecPeriod2", - "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:9000", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8997", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", + "name":"Vd_max1", + "label":"Vd_max1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1002,12 +841,12 @@ "FramePeriod" ], "values":[ - "0", + "Vd_max", "on", "inf", "[]", "[]", - "uint8", + "fixdt(1,16,4)", "off", "inf" ], @@ -1032,85 +871,6 @@ "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", - "UseLastBreakpoint", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "FractionDataTypeStr", - "LockScale", - "RndMeth", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "OutputBusDataTypeStr", - "SampleTime" - ], - "values":[ - "Explicit values", - "Dialog", - "Vq_max_XA", - "Index only", - "Evenly spaced points", - "Clip", - "off", - "Error", - "off", - "Inherit: Same as input", - "[]", - "[]", - "uint8", - "fixdt(0,8,6)", - "off", - "Simplest", - "on", - "", - "10", - "11", - "10", - "Inherit: auto", - "-1" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 9, - 16 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"PreLookup", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8987", "className":"Simulink.SubSystem", @@ -1124,8 +884,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1137,7 +897,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1148,9 +907,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1160,7 +920,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1173,7 +933,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1183,18 +942,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 ] }, @@ -1254,73 +1016,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9008", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8985", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"Relational Operator3", + "label":"Relational Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", + "==", "off", - "inherit", - "-1", - "Inherit", + "boolean", + "Simplest", "-1", - "auto", - "off", - "off", - "V_max", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 1, + 4 ] }, "viewer":{ @@ -1329,16 +1056,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8985", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8983", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", + "name":"Relational Operator1", + "label":"Relational Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1424,36 +1151,46 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8979", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8982", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"MinMax", + "label":"MinMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", "SampleTime", + "SaturateOnIntegerOverflow", "ZeroCross" ], "values":[ - "1", - "u1 ~= 0", - "", + "Inherit: Inherit via internal rule", + "min", + "off", + "2", "off", + "[]", + "[]", + "Floor", "-1", + "off", "on" ], "tabs":[ - "Parameter Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 4 + 1 ] }, "viewer":{ @@ -1462,41 +1199,79 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"MinMax", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8978", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9003", + "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"iq_max_M1", + "label":"iq_max_M1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "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", - "u1 ~= 0", - "", "off", - "-1", - "on" + "Explicit values", + "Dialog", + "iq_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":[ - "Parameter Attributes", + "Main", + "Data Types", "-Other" ], "tabs_idx":[ 0, - 4 + 10, + 20 ] }, "viewer":{ @@ -1505,82 +1280,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", - "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: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" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Interpolation_n-D", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8977", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8976", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1589,7 +1298,7 @@ "IconDisplay" ], "values":[ - "iq_limProt", + "iq", "local", "Tag" ], @@ -1609,11 +1318,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8969", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8975", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1622,7 +1331,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "id_min", "local", "Tag" ], @@ -1642,11 +1351,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9002", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9000", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", + "name":"a_elecPeriod1", + "label":"a_elecPeriod1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1660,12 +1369,12 @@ "FramePeriod" ], "values":[ - "i_max", + "0", "on", "inf", "[]", "[]", - "fixdt(1,16,4)", + "uint8", "off", "inf" ], @@ -1691,60 +1400,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8963", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9008", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Vq_max", + "label":"Vq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "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":[ - "n_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:8962", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd", - "local", - "Tag" + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "V_max", + "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" @@ -1752,16 +1475,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8961", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8973", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1770,7 +1493,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "iq_max", "local", "Tag" ], @@ -1790,46 +1513,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8982", - "className":"Simulink.MinMax", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9017", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"MinMax", - "label":"MinMax", + "name":"n_limProt", + "label":"n_limProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", "LockScale", - "OutMax", - "OutMin", - "RndMeth", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", + "10", + "Port number", "[]", "[]", - "Floor", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", "-1", + "auto", "off", - "on" + "off", + "V_min", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ + "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1 + 2, + 11 ] }, "viewer":{ @@ -1838,7 +1588,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"MinMax", + "blocktype":"Outport", "masktype":"" } }, @@ -1876,51 +1626,72 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8960", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9007", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Gain6", - "label":"Gain6", + "name":"Vd_min", + "label":"Vd_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Gain", - "Multiplication", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "-1", - "Element-wise(K.*u)", + "2", + "Port number", "[]", "[]", - "Inherit: Same as input", + "Inherit: auto", "off", - "Zero", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "off", + "V_min", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 8, 11 ] }, @@ -1930,7 +1701,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Outport", "masktype":"" } }, @@ -1968,11 +1739,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8970", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8965", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1981,7 +1752,7 @@ "IconDisplay" ], "values":[ - "id_TgtAbs", + "n_mot", "local", "Tag" ], @@ -2034,144 +1805,72 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8966", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9004", + "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"iq_max_XA", + "label":"iq_max_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_limProt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "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", + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "SampleTime", + "UseLastBreakpoint" ], "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", + "Explicit values", + "Dialog", + "iq_max_XA", + "Index only", + "Evenly spaced points", + "Clip", + "Error", "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: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", + "uint8", "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "on", + "", + "10", + "11", + "10", + "fixdt(0,8,6)", + "Inherit: auto", + "Simplest", + "-1", + "off" ], "tabs":[ "Main", - "Signal Attributes", - "Parameter Attributes", + "Data Types", "-Other" ], "tabs_idx":[ 0, - 2, 8, - 11 + 13 ] }, "viewer":{ @@ -2180,24 +1879,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"PreLookup", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8953", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8963", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id_min", + "n_max", + "local", "Tag" ], "tabs":[ @@ -2211,16 +1912,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8968", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8961", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2229,7 +1930,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "Vd_max", "local", "Tag" ], @@ -2249,25 +1950,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8949", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8958", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", + "name":"Gain4", + "label":"Gain4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "z_ctrlMod", - "Tag" + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2275,24 +2004,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8947", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8970", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vq_min", + "id_TgtAbs", + "local", "Tag" ], "tabs":[ @@ -2306,24 +2037,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8945", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8962", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_max", + "Vd", + "local", "Tag" ], "tabs":[ @@ -2337,30 +2070,58 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8950", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8957", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Gain3", + "label":"Gain3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "Vd_min", - "Tag" + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2368,30 +2129,79 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8946", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9012", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"iq_max", + "label":"iq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "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":[ - "Vd_max", - "Tag" + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "V_max", + "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" @@ -2399,16 +2209,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8955", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2416,7 +2226,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "iq_min", "Tag" ], "tabs":[ @@ -2435,19 +2245,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8943", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8977", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_min", + "iq_limProt", + "local", "Tag" ], "tabs":[ @@ -2461,110 +2273,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8941", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8954", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9014", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"iq_limProt", - "label":"iq_limProt", - "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", - "V_min", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2572,16 +2304,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8951", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8953", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2589,7 +2321,7 @@ "IconDisplay" ], "values":[ - "id_max", + "id_min", "Tag" ], "tabs":[ @@ -2608,19 +2340,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8937", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8968", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", + "Vq_min", + "local", "Tag" ], "tabs":[ @@ -2634,16 +2368,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8936", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8951", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2651,7 +2385,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "id_max", "Tag" ], "tabs":[ @@ -2670,43 +2404,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8997", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8969", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Vd_max1", - "label":"Vd_max1", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "Vd_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" + "z_ctrlMod", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2714,16 +2432,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8948", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8947", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2731,7 +2449,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq_min", "Tag" ], "tabs":[ @@ -2750,11 +2468,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8935", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8945", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2762,7 +2480,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "n_max", "Tag" ], "tabs":[ @@ -2781,11 +2499,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8940", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2793,7 +2511,7 @@ "IconDisplay" ], "values":[ - "n_max", + "n_limProt", "Tag" ], "tabs":[ @@ -2812,21 +2530,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8973", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8939", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_max", - "local", + "iq_limProt", "Tag" ], "tabs":[ @@ -2840,16 +2556,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8954", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8938", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2857,7 +2573,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "iq", "Tag" ], "tabs":[ @@ -2876,11 +2592,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9011", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8937", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "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:9009", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2909,7 +2656,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "6", + "4", "Port number", "[]", "[]", @@ -2935,15 +2682,105 @@ "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "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: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:8934", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2951,7 +2788,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, @@ -2968,8 +2805,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2981,7 +2818,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2992,9 +2828,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3004,7 +2841,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3017,7 +2854,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3027,18 +2863,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 ] }, @@ -3053,11 +2892,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9012", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8936", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "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:9013", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3086,7 +2956,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "8", "Port number", "[]", "[]", @@ -3099,7 +2969,7 @@ "auto", "off", "off", - "V_max", + "V_min", "off", "reset", "off", @@ -3133,25 +3003,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8934", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8923", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"CTRL_COMM3", + "label":"CTRL_COMM3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "Vd", - "Tag" + "TRQ_MODE", + "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" @@ -3159,30 +3047,42 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8942", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8979", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "n_mot", - "Tag" + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3190,16 +3090,59 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8938", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8978", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "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:8935", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3207,7 +3150,7 @@ "IconDisplay" ], "values":[ - "iq", + "Vq_max", "Tag" ], "tabs":[ @@ -3275,43 +3218,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8921", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8949", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "name":"From37", + "label":"From37", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "SPD_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "z_ctrlMod", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3319,26 +3244,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8971", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", - "local", + "id_TgtAbs", "Tag" ], "tabs":[ @@ -3352,7 +3275,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -3406,39 +3329,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8983", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8948", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" + "z_ctrlMod", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3446,57 +3355,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8958", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8919", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"Abs5", + "label":"Abs5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Gain", - "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "SampleTime", + "ZeroCross" ], "values":[ - "-1", - "Element-wise(K.*u)", "[]", "[]", - "Inherit: Same as input", + "Inherit: Inherit via back propagation", "off", "Zero", "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "-1", + "on" ], "tabs":[ - "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 8, - 11 + 6 ] }, "viewer":{ @@ -3505,16 +3402,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Abs", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9017", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8942", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"n_limProt", - "label":"n_limProt", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "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:8918", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3530,20 +3458,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "12", + "5", "Port number", "[]", "[]", @@ -3555,17 +3477,10 @@ "-1", "auto", "off", + "", + "on", "off", - "V_min", - "off", - "reset", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -3585,7 +3500,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, @@ -3657,138 +3572,52 @@ } }, { - "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:8965", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "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:9004", - "className":"Simulink.PreLookup", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8960", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"iq_max_XA", - "label":"iq_max_XA", + "name":"Gain6", + "label":"Gain6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "UseLastBreakpoint", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "FractionDataTypeStr", + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", "LockScale", "RndMeth", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "OutputBusDataTypeStr", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", "SampleTime" ], "values":[ - "Explicit values", - "Dialog", - "iq_max_XA", - "Index only", - "Evenly spaced points", - "Clip", + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", "off", - "Error", + "Zero", "off", - "Inherit: Same as input", "[]", "[]", - "uint8", - "fixdt(0,8,6)", - "off", - "Simplest", - "on", - "", - "10", - "11", - "10", - "Inherit: auto", + "Inherit: Same as input", "-1" ], "tabs":[ "Main", - "Data Types", + "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 9, - 16 + 2, + 8, + 11 ] }, "viewer":{ @@ -3797,7 +3626,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"PreLookup", + "blocktype":"Gain", + "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":"" } }, @@ -3869,25 +3729,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8939", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8921", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "iq_limProt", - "Tag" + "SPD_MODE", + "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" @@ -3895,30 +3773,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9001", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"a_elecPeriod2", + "label":"a_elecPeriod2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "id_TgtAbs", - "Tag" + "0", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3926,7 +3822,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, @@ -3998,75 +3894,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998", - "className":"Simulink.Interpolation_nD", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8943", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Vq_max_M1", - "label":"Vq_max_M1", + "name":"From17", + "label":"From17", "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" + "GotoTag", + "IconDisplay" ], "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" + "n_min", + "Tag" ], "tabs":[ - "Main", - "Data Types", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 10, - 20 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4074,66 +3920,65 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Interpolation_n-D", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8918", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8974", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"Goto6", + "label":"Goto6", "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" + "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:8971", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "Vd_min", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4141,46 +3986,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8919", - "className":"Simulink.Abs", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8966", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" + "n_limProt", + "local", + "Tag" ], "tabs":[ - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 6 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4188,48 +4019,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Abs", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8923", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8946", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"CTRL_COMM3", - "label":"CTRL_COMM3", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "TRQ_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "Vd_max", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4237,7 +4050,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, @@ -4367,37 +4180,6 @@ "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:8980", "className":"Simulink.Logic", @@ -5763,108 +5545,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8941#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "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:8940#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "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:8918#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 57aa923..d2f4441 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 0e54034..25b4851 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 @@ -188,11 +188,11 @@ - - + + - + @@ -202,30 +202,30 @@ - - 11 + + 9 - + - - + + - + - - n_min + + iq_limProt @@ -236,11 +236,11 @@ - - + + - + @@ -250,78 +250,30 @@ - - 10 - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - - - - - - - - - - - - 8 + + 6 - + - + - - + + - - iq_min + + id_min @@ -342,11 +294,11 @@ - + - + 5 @@ -364,11 +316,11 @@ - + - + id_max @@ -380,44 +332,44 @@ - - + + - + - + - - 4 + + 1 - + - - + + - - + + - - Vq_min + + Vd_max @@ -428,44 +380,44 @@ - - - + + + - - + + - - + + - - 2 + + n_max - - + + - - - + + + - - + + - - Vd_min + + sfix16_En4 @@ -476,44 +428,44 @@ - - - + + + - - + + - - + + - - 1 + + i_max - - + + - - - + + + - - + + - - Vd_max + + sfix16_En4 @@ -524,650 +476,554 @@ - - - + + + - - + + - + - - + + - - n_max - - - - - - - - - - - - - - + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - - - - - - - - - - - - - - - - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + - + - - + + Vq_max_XA - - - - - - - + + + + + + - - + + - - + + uint8 + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - 1-D T(k,f) + + - + - - k1 + + - + - - f1 - - - - - - - - - - - - - - + + - + - - iq_max_M1 - - - - - - - + + - + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - 0 - - - - - - - + + - - - - - - + + + + + + + - + - - uint8 + + - - - - - - - - - - - - - - - - - - - - + + - - 0 - - - - - - - + + - - - - - - + + + + + + + - + - - uint8 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + 1-D T(k,f) - + - - + + k1 - + - - + + f1 + + + + + + + + + + + + + + - + - - + + Vq_max_M1 + + + + + + + - + - - + + sfix16_En4 - - + + + + + + + + + - - - + + - - - + + + + + + + + Vd_max - - - - - - - - - - - Vq_max_XA + + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -1194,43 +1050,43 @@ - + - + n_mot - + - + n_max - + - + n_min - + - + n_limProt - + - + if { } @@ -1260,11 +1116,11 @@ - + - + Speed_Limit_Protection @@ -1277,16 +1133,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -1298,16 +1154,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -1334,27 +1190,27 @@ - + - + - + - + - + - + @@ -1380,11 +1236,11 @@ - + - + boolean @@ -1396,44 +1252,68 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + + + + + + + + + - - - - + - - - - + + + + + + + + + + + + + + + - - + + - - Vq_max + + boolean @@ -1444,37 +1324,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -1489,22 +1369,22 @@ - + - + - - + + - + boolean @@ -1518,7 +1398,7 @@ - + @@ -1526,27 +1406,27 @@ - + - + - + - + - + - + @@ -1572,11 +1452,11 @@ - + - + boolean @@ -1588,52 +1468,60 @@ - - - + + + - - + + - + - - + + - - u1 + + - - + + - - if(u1 ~= 0) + + + + + + + + + + - - + + - - + + - - + + - - action + + sfix16_En4 @@ -1644,231 +1532,362 @@ - - - + + + - - + + - - + + - - u1 + + - - + + - - if(u1 ~= 0) - - - - - - - - - - - - - - + + - - + + - - action + + - - - - - - - - - - - - - - - - - - - - + + - - [id_min] - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - [iq_min] - - - - - - - + + - - - - - - - - - - - - - - - - - - - - + + - - [iq_limProt] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - [z_ctrlMod] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - i_max + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + - - + + + + + + + + + + + + + + + + + iq_max_M1 - + - - + + - + sfix16_En4 @@ -1880,28 +1899,28 @@ - - + + - + - + - - [n_max] + + [iq] - + @@ -1913,28 +1932,28 @@ - - + + - + - + - - [Vd] + + [id_min] - + @@ -1946,29 +1965,44 @@ - - - + + + - - + + - - + + - - [Vd_max] + + 0 - - + + + + + + + + + + + + + + + + + uint8 @@ -1979,60 +2013,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 3 - - - - - - - - - - + + - - - + + + - - + + - - sfix16_En4 + + Vq_max @@ -2043,28 +2061,28 @@ - - + + - + - + - - [id_max] + + [iq_max] - + @@ -2076,44 +2094,44 @@ - - - + + + - - + + - - + + - - -1 + + 10 - - + + - - - + + + - - + + - - sfix16_En4 + + n_limProt @@ -2124,28 +2142,28 @@ - - + + - + - + - - [Vq_max] + + [id_max] - + @@ -2157,29 +2175,44 @@ - - - + + + - - + + - - + + - - [id_TgtAbs] + + 2 - - + + + + + + + + + + + + + + + + + Vd_min @@ -2190,28 +2223,28 @@ - - + + - + - + - - [n_min] + + [Vq_max] - + @@ -2223,28 +2256,28 @@ - - + + - + - + - - [n_limProt] + + [n_mot] - + @@ -2256,44 +2289,29 @@ - - - + + + - - + + - - + + - - -1 + + [n_min] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2304,92 +2322,139 @@ - - - + + + - - + + - + - - + + - - -1 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [id_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + iq_max_XA - - + + - - + + - - sfix16_En4 + + uint8 @@ -2400,28 +2465,28 @@ - - + + - + - + - - [Vq_min] + + [n_max] - + @@ -2433,44 +2498,29 @@ - - - + + + - - + + - - + + - - [z_ctrlMod] + + [Vd_max] - - - - - - - - - - - - - - - - - uint8 + + @@ -2481,43 +2531,43 @@ - - - + + + - - + + - - + + - - [Vq_min] + + -1 - - + + - + - - + + - + sfix16_En4 @@ -2529,44 +2579,29 @@ - - - + + + - - + + - - + + - - [n_max] + + [id_TgtAbs] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2577,44 +2612,29 @@ - - - + + + - - + + - - + + - - [Vd_min] + + [Vd] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2625,43 +2645,43 @@ - - - + + + - - + + - - + + - - [Vd_max] + + -1 - - + + - + - - + + - + sfix16_En4 @@ -2673,44 +2693,44 @@ - - - + + + - - + + - - + + - - [n_limProt] + + 7 - - + + - - - + + + - - + + - - sfix16_En4 + + iq_max @@ -2721,43 +2741,43 @@ - - + + - + - + - - [n_min] + + [iq_min] - + - + - - + + - + sfix16_En4 @@ -2769,44 +2789,29 @@ - - - + + + - - + + - - + + - - [n_min] + + [iq_limProt] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2817,44 +2822,44 @@ - - - + + + - - + + - - + + - - 9 + + [iq_max] - - + + - - - + + + - - + + - - iq_limProt + + sfix16_En4 @@ -2865,43 +2870,43 @@ - - + + - + - + - - [id_max] + + [id_min] - + - + - - + + - + sfix16_En4 @@ -2913,44 +2918,29 @@ - - - + + + - - + + - - + + - - [iq_min] + + [Vq_min] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2961,43 +2951,43 @@ - - + + - + - + - - [iq_max] + + [id_max] - + - + - - + + - + sfix16_En4 @@ -3009,44 +2999,29 @@ - - - + + + - - + + - - + + - - Vd_max + + [z_ctrlMod] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -3057,44 +3032,44 @@ - - + + - + - + - - [z_ctrlMod] + + [Vq_min] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -3105,43 +3080,43 @@ - - + + - + - + - - [Vq_max] + + [n_max] - + - + - - + + - + sfix16_En4 @@ -3153,7 +3128,7 @@ - + @@ -3163,12 +3138,12 @@ - + - - [n_max] + + [n_limProt] @@ -3185,11 +3160,11 @@ - + - + sfix16_En4 @@ -3201,76 +3176,91 @@ - - - + + + - - + + - - + + - - [iq_max] + + [iq_limProt] - - + + - - - - - - - - - + + + + + + + + + + + sfix16_En4 + + - + + + + + + + + + + + + - + - - [iq_max] + + [iq] - + - + - - + + - + sfix16_En4 @@ -3282,44 +3272,188 @@ - - + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - 6 + + 4 - + - - + + - - + + - - id_min + + Vq_min + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3332,7 +3466,7 @@ - + @@ -3346,43 +3480,43 @@ - + - + iq - + - + iq_max - + - + iq_min - + - + iq_limProt - + - + if { } @@ -3412,11 +3546,11 @@ - + - + Current_Limit_Protection @@ -3433,11 +3567,11 @@ - + - + action @@ -3454,11 +3588,11 @@ - + - + sfix16_En4 @@ -3470,50 +3604,50 @@ - + - - + + - - + + - - + + - - 7 + + [iq_max] - - + + - - - + + + - - + + - - iq_max + + sfix16_En4 @@ -3524,44 +3658,44 @@ - - - + + + - - + + - - + + - - [Vd] + + 8 - - + + - - - + + + - - + + - - sfix16_En4 + + iq_min @@ -3572,44 +3706,44 @@ - - - + + + - - + + - - + + - - [n_mot] + + TRQ_MODE - - + + - - + + - - + + - - sfix16_En4 + + uint8 @@ -3620,43 +3754,155 @@ - - + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + - + - + - - [iq] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -3678,11 +3924,11 @@ - + - + VLT_MODE @@ -3700,11 +3946,11 @@ - + - + uint8 @@ -3716,43 +3962,43 @@ - - - + + + - - + + - - + + - - SPD_MODE + + [z_ctrlMod] - - + + - + - - + + - + uint8 @@ -3764,29 +4010,44 @@ - - - + + + - - + + - - + + - - [Vd_min] + + [id_TgtAbs] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3807,11 +4068,11 @@ - + - + VLT_MODE @@ -3829,11 +4090,11 @@ - + - + uint8 @@ -3845,68 +4106,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + - - + + [z_ctrlMod] - - - - - - - - - - + + - - + + - - + + - - boolean + + uint8 @@ -3917,43 +4154,123 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - -1 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] - - + + - + - - + + - + sfix16_En4 @@ -3965,44 +4282,59 @@ - - + + - + - + - - 12 + + 5 - + - - + + + + + + + + + + n_mot + + + + + + + - - + + - - n_limProt + + sfix16_En4 @@ -4023,11 +4355,11 @@ - + - + 4 @@ -4045,11 +4377,11 @@ - + - + iq @@ -4060,11 +4392,11 @@ - + - + sfix16_En4 @@ -4076,29 +4408,44 @@ - - - + + + - - + + - - + + - - [iq] + + -1 - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -4109,29 +4456,44 @@ - - - + + + - - + + - - + + - - [n_mot] + + [Vd_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -4142,202 +4504,59 @@ - - - + + + - - + + - + - - + + - - + + 3 - - - - - - - + + + + + + + + + + + + + - - + + - - + + id_TgtAbs + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - iq_max_XA - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - id_TgtAbs - - - - - - - - - - - - - - - sfix16_En4 + + sfix16_En4 @@ -4348,44 +4567,44 @@ - - - + + + - - + + - - + + - - [iq_limProt] + + SPD_MODE - - + + - - + + - - + + - - sfix16_En4 + + uint8 @@ -4396,44 +4615,44 @@ - - - + + + - - + + - - + + - - [id_TgtAbs] + + 0 - - + + - - + + - - + + - - sfix16_En4 + + uint8 @@ -4454,11 +4673,11 @@ - + - + 2 @@ -4476,11 +4695,11 @@ - + - + Vd @@ -4491,11 +4710,11 @@ - + - + sfix16_En4 @@ -4507,362 +4726,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-D T(k,f) - - - - - - - - k1 - - - - - - - - f1 - - - - - - - - - - - - - - - - - - + + - - Vq_max_M1 + + [n_min] + + + + + + + - + - - + + - + sfix16_En4 @@ -4874,59 +4774,62 @@ - - - + + + - - + + - - + + - - 5 + + [iq_min] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - n_mot + + [Vd_min] - - - - - - - - - - - sfix16_En4 + + + @@ -4937,76 +4840,29 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + [n_limProt] - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -5017,44 +4873,44 @@ - - - + + + - - + + - - + + - - TRQ_MODE + + [Vd_max] - - + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -5075,11 +4931,11 @@ - + - + 1 @@ -5097,11 +4953,11 @@ - + - + z_ctrlMod @@ -5112,11 +4968,11 @@ - + - + uint8 @@ -5138,11 +4994,11 @@ - + - + -1 @@ -5160,59 +5016,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -5234,19 +5042,19 @@ - + - + - + - + @@ -5256,32 +5064,32 @@ - - - - - - - - - - - - + - + boolean + + + + + + + + + + + @@ -5298,19 +5106,19 @@ - + - + - + - + @@ -5325,11 +5133,11 @@ - + - + boolean @@ -5800,34 +5608,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5845,11 +5625,11 @@ - + - + @@ -6310,5 +6090,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json index 5b5381d..4d123a3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json @@ -80,71 +80,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8932", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", + "name":"cf_iqKpLimProt", + "label":"cf_iqKpLimProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", "inspector":{ "params":[ + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "DoSatur" + "FramePeriod" ], "values":[ + "cf_iqKpLimProt", + "on", + "inf", "[]", "[]", - "Inherit: Same as second input", + "fixdt(0,16,8)", "off", - "Floor", - "off" + "inf" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 3, + 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "blocktype":"Constant", + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8932", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8931", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"cf_iqKpLimProt", - "label":"cf_iqKpLimProt", + "name":"Sum3", + "label":"Sum3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "cf_iqKpLimProt", - "on", - "inf", + "round", + "|+-", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "fixdt(0,16,8)", + "Inherit: Inherit via internal rule", "off", - "inf" + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -153,8 +173,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 10 ] }, "viewer":{ @@ -163,10 +183,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Sum", "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "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:8929", "className":"Simulink.Product", @@ -224,6 +283,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8928", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "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:8927", "className":"Simulink.Inport", @@ -291,65 +381,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8931", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", - "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:8926", "className":"Simulink.Inport", @@ -484,37 +515,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8928", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", - "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:8931#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.svg index 1433361..8b2a75b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.svg @@ -59,11 +59,138 @@ + + + + + + + + + + + + + + + + + + cf_iqKpLimProt + + + + + + + + + + + + + + + + + + + + + + cf_iqKpLimProt + + + + + + + + + + + + + + + ufix16_En8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -71,35 +198,35 @@ - + - + - + - + - + - + - + - + @@ -111,35 +238,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -157,11 +284,11 @@ - + - + sfix16_En4 @@ -173,59 +300,52 @@ - - - + + + - - + + - - + + - - cf_iqKpLimProt + + - - - - - - + + + + + + + - - - - - - - - - - - cf_iqKpLimProt + + + - - + + - - + + - - ufix16_En8 + + sfix16_En4 @@ -236,52 +356,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + if { } - - + + - - - + + + - - + + - - sfix16_En4 + + Action Port @@ -302,11 +414,11 @@ - + - + 3 @@ -324,11 +436,11 @@ - + - + iq_min @@ -339,75 +451,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -429,11 +477,11 @@ - + - + 2 @@ -451,11 +499,11 @@ - + - + iq_max @@ -466,11 +514,11 @@ - + - + sfix16_En4 @@ -492,11 +540,11 @@ - + - + 1 @@ -514,11 +562,11 @@ - + - + iq @@ -529,11 +577,11 @@ - + - + sfix16_En4 @@ -543,54 +591,6 @@ - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -711,5 +711,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.svg index 9a62b3a..3a1a453 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.svg @@ -1015,10 +1015,10 @@ - + - + @@ -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_8987_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.json index 2765a29..4d0889b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.json @@ -79,6 +79,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8995", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKpLimProt", + "label":"cf_nKpLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKpLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,8)", + "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:8994", "className":"Simulink.Sum", @@ -196,32 +245,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8995", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8990", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"cf_nKpLimProt", - "label":"cf_nKpLimProt", + "name":"n_min", + "label":"n_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "cf_nKpLimProt", - "on", - "inf", + "3", + "Port number", "[]", "[]", - "fixdt(0,16,8)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -230,8 +297,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -240,80 +307,10 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8991", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", - "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", + "blocktype":"Inport", "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", - "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:8989", "className":"Simulink.Inport", @@ -382,78 +379,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8988", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "DoSatur" ], "values":[ - "1", - "Port number", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "Inherit: Same as second input", "off", + "Floor", "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8990", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8988", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_min", - "label":"n_min", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", "inspector":{ "params":[ @@ -476,7 +445,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "1", "Port number", "[]", "[]", @@ -515,6 +484,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8991", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "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:8993#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.png index 1125e83..9a4c121 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg index 96f8e48..c647b12 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg @@ -1,10 +1,10 @@ - + - + @@ -46,7 +46,7 @@ - + @@ -59,6 +59,69 @@ + + + + + + + + + + + + + + + + + + cf_nKpLimProt + + + + + + + + + + + + + + + + + + + + + + cf_nKpLimProt + + + + + + + + + + + + + + + ufix16_En8 + + + + + + + + @@ -71,27 +134,27 @@ - + - + - + - + - + - + @@ -109,11 +172,11 @@ - - + + - + sfix16_En4 @@ -127,7 +190,7 @@ - + @@ -135,19 +198,19 @@ - + - + - + - + @@ -165,11 +228,11 @@ - - + + - + sfix16_En4 @@ -181,59 +244,59 @@ - - - + + + - - + + - - + + - - cf_nKpLimProt + + 3 - - + + - - + + - - + + - - cf_nKpLimProt + + n_min - - + + - - + + - - ufix16_En8 + + sfix16_En4 @@ -244,44 +307,59 @@ - - - + + + - - + + - - + + - - if { } + + 2 - - + + - - + + - - + + - - Action Port + + n_max + + + + + + + + + + + + + + + sfix16_En4 @@ -302,35 +380,35 @@ - + - + - + - + - + - + - + - + @@ -342,35 +420,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -388,74 +466,11 @@ - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - + sfix16_En4 @@ -468,57 +483,57 @@ - + - + - + - + 1 - + - + - - + + - + n_mot - + - - + + - + sfix16_En4 @@ -530,59 +545,44 @@ - - - + + + - - + + - - + + - - 3 + + if { } - - + + - - - - - - - - - - n_min - - - - - - - + + - + - - sfix16_En4 + + Action Port @@ -612,7 +612,7 @@ - + @@ -640,7 +640,7 @@ - + @@ -665,7 +665,7 @@ - + @@ -675,7 +675,7 @@ - + @@ -685,11 +685,11 @@ - + - + @@ -711,5 +711,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.svg index 5a0feec..494186b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.svg @@ -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_9029_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json index 24a22ff..ae34068 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,103 +48,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042", - "className":"Rising edge init", - "icon":"WebViewIcon4", - "name":"rising_edge_init", - "label":"rising_edge_init", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9041", "className":"Simulink.Constant", @@ -249,7 +152,7 @@ "off", "off", "-1", - "Reusable function", + "Auto", "Use subsystem name", "", "Auto", @@ -320,6 +223,101 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9038", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "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:9036", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "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:9035", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_prev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9043", "className":"Simulink.Outport", @@ -401,52 +399,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9037", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9034", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "inspector":{ "params":[ - "Gain", - "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", + "ConvertRealWorld", "RndMeth", "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", "SampleTime" ], "values":[ - "-1", - "Element-wise(K.*u)", "[]", "[]", - "Inherit: Same as input", + "fixdt(1,16,4)", "off", - "Zero", + "Real World Value (RWV)", + "Floor", "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", "-1" ], "tabs":[ - "Main", - "Signal Attributes", "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 8, - 11 + 7 ] }, "viewer":{ @@ -455,61 +441,46 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9036", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Open", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9035", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9033", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Data Type Conversion", + "label":"Data Type Conversion", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "Vq_prev", - "Tag" + "[]", + "[]", + "fixdt(1,28,16)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -517,45 +488,57 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9034", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9037", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", + "name":"Gain3", + "label":"Gain3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "inspector":{ "params":[ + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", "RndMeth", "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", "SampleTime" ], "values":[ + "-1", + "Element-wise(K.*u)", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Same as input", "off", - "Real World Value (RWV)", - "Floor", + "Zero", "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", "-1" ], "tabs":[ + "Main", + "Signal Attributes", "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 7 + 2, + 8, + 11 ] }, "viewer":{ @@ -564,7 +547,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Gain", "masktype":"" } }, @@ -618,34 +601,102 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9031", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042", + "className":"Rising edge init", + "icon":"WebViewIcon4", + "name":"rising_edge_init", + "label":"rising_edge_init", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "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":[ - "reset", - "Only when execution is resumed" + "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":"ActionPort", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Rising edge init" } }, { @@ -716,22 +767,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9038", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9031", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "Vq_Open", - "local", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -744,54 +793,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9033", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,28,16)", - "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", + "blocktype":"ActionPort", "masktype":"" } }, 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 2e94586..fece753 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 @@ -30,118 +30,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -154,11 +42,11 @@ - + - + dV_openRate @@ -176,11 +64,11 @@ - + - + dV_openRate @@ -191,11 +79,11 @@ - + - + sfix28_En16 @@ -217,75 +105,75 @@ - + - + u - + - + initVal - + - + init - + - + inc - + - + dec - + - + y - + - + - + - + - + - + @@ -303,11 +191,11 @@ - + - + Rate_Limiter @@ -318,11 +206,11 @@ - + - + sfix28_En16 @@ -330,29 +218,29 @@ - + - + - + - + - + - + @@ -376,11 +264,11 @@ - + - + [Vq_prev] @@ -399,44 +287,29 @@ - - - + + + - - + + - - + + - - 1 + + [Vq_Open] - - - - - - - - - - - - - - - - - Vq_Open + + @@ -447,44 +320,44 @@ - - - + + + - - + + - - + + - - -1 + + [Vq_Open] - - + + - - + + - - + + - - sfix28_En16 + + sfix16_En4 @@ -495,43 +368,43 @@ - - + + - + - + - - [Vq_Open] + + [Vq_prev] - + - + - - + + - + sfix16_En4 @@ -543,44 +416,44 @@ - - - + + + - - + + - - + + - - [Vq_prev] + + 1 - - + + - - - + + + - - + + - - sfix16_En4 + + Vq_Open @@ -601,19 +474,19 @@ - + - + - + - + @@ -639,11 +512,11 @@ - + - + sfix16_En4 @@ -653,6 +526,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + @@ -665,11 +650,11 @@ - + - + 0 @@ -687,11 +672,11 @@ - + - + sfix28_En16 @@ -703,44 +688,108 @@ - - - + + + - - + + - - + + - - default: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - Action Port + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -761,11 +810,11 @@ - + - + 1 @@ -783,11 +832,11 @@ - + - + Vq_prev @@ -798,11 +847,11 @@ - + - + sfix16_En4 @@ -814,93 +863,44 @@ - - - + + + - - + + - - - - - - [Vq_Open] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + default: { } - - - - - - - - - - + + - - - + + + - + - - sfix28_En16 + + Action Port @@ -1071,5 +1071,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.svg index d5844ad..bc1e00d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.svg @@ -693,32 +693,32 @@ - - - + + + - + - - sfix28_En16 + + Ini=initVal - - - + + + - + - - 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_9040_2395_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.svg index e7dd8c4..4b1d60e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.svg @@ -1012,10 +1012,10 @@ - + - + @@ -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_9040_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.json index be40f3b..47da1e0 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.json @@ -129,11 +129,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2346", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2343", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Sum2", + "label":"Sum2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", "inspector":{ "params":[ @@ -153,7 +153,7 @@ ], "values":[ "rectangular", - "+-", + "++", "off", "Inherit: Inherit via internal rule", "[]", @@ -188,11 +188,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2343", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2346", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", "inspector":{ "params":[ @@ -212,7 +212,7 @@ ], "values":[ "rectangular", - "++", + "+-", "off", "Inherit: Inherit via internal rule", "[]", @@ -246,6 +246,45 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "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:9040:2358", "className":"Simulink.Inport", @@ -314,40 +353,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Delay_Init1", - "label":"Delay_Init1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", - "inspector":{ - "params":[ - "initVal" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2357", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2356", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"inc", - "label":"inc", + "name":"init", + "label":"init", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", "inspector":{ "params":[ @@ -370,7 +380,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "3", "Port number", "[]", "[]", @@ -410,11 +420,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2356", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2355", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"init", - "label":"init", + "name":"initVal", + "label":"initVal", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", "inspector":{ "params":[ @@ -437,7 +447,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -477,11 +487,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2355", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2357", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"initVal", - "label":"initVal", + "name":"inc", + "label":"inc", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", "inspector":{ "params":[ @@ -504,7 +514,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "4", "Port number", "[]", "[]", @@ -544,28 +554,18 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Delay_Init1", + "label":"Delay_Init1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "initVal" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" + "0" ], "tabs":[ ], @@ -579,7 +579,7 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.png index c8e7a74..cabc762 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.svg index 431f550..3af68e7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.svg @@ -49,10 +49,10 @@ - + - + @@ -62,29 +62,29 @@ - + 1 - + - + - + - + y @@ -96,59 +96,67 @@ - - - + + + - - + + - + - + - + - + - + - + + + + + + + + + - - + + - + - - + + - + sfix28_En16 @@ -160,67 +168,59 @@ - - - + + + - - + + - - - - - - - - - + - + - + - + - + - + - - + + - + - + - + sfix28_En16 @@ -232,249 +232,170 @@ - - - + + + - - + + - + - + - - 5 - - - - - - - - - - - - - - + + - - + + - - dec + + - - - - - - + + + + + + + - - + + - - sfix28_En16 + + - - - - - - - - - - - - + + - - - - - - u - - - - - - - - initVal - - - - - - - - init - - - - + + - - y + + up - - + + - - 1 + + u - - + + - - z + + lo - - + + - - + + y - - + + - - + + - - + + - + sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - - 4 + + 5 - + - - + + - - + + - - inc + + dec - + - - + + - + sfix28_En16 @@ -496,11 +417,11 @@ - + - + 3 @@ -518,11 +439,11 @@ - + - + init @@ -533,11 +454,11 @@ - + - + boolean @@ -559,11 +480,11 @@ - + - + 2 @@ -581,11 +502,11 @@ - + - + initVal @@ -596,11 +517,11 @@ - + - + sfix28_En16 @@ -612,112 +533,191 @@ - - - + + + - - + + - + - - + + - - + + 4 - - - - - - - + + + + + + + + + + + + + - - + + - - + + inc + + + + + + + - - + + - - + + sfix28_En16 - - + + + + + + + + + + + + - - + + - - up + + u - - + + - - u + + initVal - - + + - - lo + + init - - + + - - y + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + - - + + - - + + - - + + - + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -725,10 +725,10 @@ - + - + @@ -738,44 +738,44 @@ - + 1 - + - + - + - + u - + - + - + sfix28_En16 @@ -788,11 +788,11 @@ - + - + @@ -803,31 +803,31 @@ - + - + - + - + - + - + @@ -836,11 +836,11 @@ - + - + @@ -865,31 +865,31 @@ - + - + - + - + - + - + @@ -926,11 +926,11 @@ - + - + @@ -953,5 +953,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.svg index 16e2737..da0e151 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.svg @@ -232,5 +232,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 f416a1e..86b16db 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 @@ -536,27 +536,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9064", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9066", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "r_sin", - "local", - "Tag" + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 10 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -564,16 +590,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9063", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9065", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -582,7 +608,7 @@ "IconDisplay" ], "values":[ - "i_apha", + "i_beta", "local", "Tag" ], @@ -602,19 +628,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9061", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9064", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "r_sin", + "local", "Tag" ], "tabs":[ @@ -628,24 +656,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9059", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9063", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_cos", + "i_apha", + "local", "Tag" ], "tabs":[ @@ -659,16 +689,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9058", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9061", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -676,7 +706,7 @@ "IconDisplay" ], "values":[ - "i_apha", + "r_sin", "Tag" ], "tabs":[ @@ -695,11 +725,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9057", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9060", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -726,11 +756,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9055", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9059", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -757,11 +787,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9060", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9055", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -769,7 +799,7 @@ "IconDisplay" ], "values":[ - "i_beta", + "r_cos", "Tag" ], "tabs":[ @@ -788,21 +818,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9062", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9057", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_cos", - "local", + "i_beta", "Tag" ], "tabs":[ @@ -816,16 +844,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9052", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9053", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -878,21 +906,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9065", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9054", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_beta", - "local", + "r_sin", "Tag" ], "tabs":[ @@ -906,56 +932,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9050", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9056", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "i_apha", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -963,23 +963,22 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9066", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9051", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "IconShape", "Inputs", + "Multiplication", "InputSameDT", - "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", @@ -991,16 +990,15 @@ "SampleTime" ], "values":[ - "rectangular", - "++", + "**", + "Element-wise(.*)", "off", - "Inherit: Inherit via internal rule", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Same as first input", "off", "Simplest", - "on", + "off", "1", "All dimensions", "-1" @@ -1013,7 +1011,7 @@ "tabs_idx":[ 0, 2, - 10 + 9 ] }, "viewer":{ @@ -1022,56 +1020,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9053", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9058", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "i_apha", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1079,16 +1051,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9051", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9050", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -1141,19 +1113,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9054", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9062", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_sin", + "r_cos", + "local", "Tag" ], "tabs":[ @@ -1167,30 +1141,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9056", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9052", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Divide3", + "label":"Divide3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "i_apha", - "Tag" + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 9 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1198,7 +1198,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Product", "masktype":"" } }, 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 689a584..43cf278 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 @@ -476,29 +476,68 @@ - - - + + + - - + + - + - - [r_sin] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -509,28 +548,28 @@ - - + + - + - + - - [i_apha] + + [i_beta] - + @@ -542,44 +581,62 @@ - - - + + + - - + + - - + + - + [r_sin] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En14 + + [i_apha] + + + + + + + @@ -590,43 +647,43 @@ - - + + - + - + - - [r_cos] + + [r_sin] - + - + - - + + - + sfix16_En14 @@ -638,43 +695,43 @@ - - + + - + - + - - [i_apha] + + [i_beta] - + - + - - + + - + sfix16_En4 @@ -686,44 +743,44 @@ - - + + - + - + - - [i_beta] + + [r_cos] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -744,11 +801,11 @@ - + - + [r_cos] @@ -766,11 +823,11 @@ - + - + sfix16_En14 @@ -782,43 +839,43 @@ - - + + - + - + - + [i_beta] - + - + - - + + - + sfix16_En4 @@ -830,84 +887,51 @@ - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - + + - + - - + + - - + + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -919,29 +943,44 @@ - - - + + + - - + + - - + + - - [i_beta] + + [r_sin] - - + + + + + + + + + + + + + + + + + sfix16_En14 @@ -952,51 +991,43 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [i_apha] - - + + - + - - + + - + sfix16_En4 @@ -1008,67 +1039,51 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - + - - + + - + sfix16_En4 @@ -1080,51 +1095,43 @@ - - - + + + - - + + - - - - - - - - - + - - + + [i_apha] - - + + - + - + - + sfix16_En4 @@ -1136,51 +1143,51 @@ - - + + - + - + - + - + - + - + - + - + - + sfix16_En4 @@ -1192,44 +1199,29 @@ - - - + + + - - + + - + - - [r_sin] + + [r_cos] - - - - - - - - - - - - - - - - - sfix16_En14 + + @@ -1240,43 +1232,51 @@ - - - + + + - - + + + + + + + + + + - + - - [i_apha] + + - - + + - + - + - + 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 3752ab0..f0cb559 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 @@ -1,10 +1,10 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9107", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9709", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

This product is necessary because the value is an input to the Integral part of the PI controller

", - "label":"

This product is necessary because the value is an input to the Integral part of the PI controller

", + "name":"

The input is scaled, so already between [n_min, n_max]

", + "label":"

The input is scaled, so already between [n_min, n_max]

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

This product is necessary because the value is an input to the Integral part of the PI controller

", + "\n\n

The input is scaled, so already between [n_min, n_max]

", "off", "rich", "auto", @@ -49,73 +49,44 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9106", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_Spd", - "label":"Vq_Spd", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9107", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

This product is necessary because the value is an input to the Integral part of the PI controller

", + "label":"

This product is necessary because the value is an input to the Integral part of the PI controller

", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "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" + "Text", + "DropShadow", + "Interpreter", + "FontName", + "FontWeight", + "FontSize", + "FontAngle", + "ForegroundColor", + "BackgroundColor", + "HorizontalAlignment", + "UseDisplayTextAsClickCallback", + "ClickFcn" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", + "\n\n

This product is necessary because the value is an input to the Integral part of the PI controller

", "off", - "inherit", - "-1", - "Inherit", - "-1", + "rich", "auto", + "auto", + -1, + "auto", + "black", + "white", + "left", "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 11 ] }, "viewer":{ @@ -123,10 +94,8 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } + "finder":[ + ] }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105", @@ -178,102 +147,120 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_nKi", - "label":"cf_nKi", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"PI_clamp_fixdt_n", + "label":"PI_clamp_fixdt_n", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "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":[ - "cf_nKi", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "on", "off", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", "off", - "inf" + "-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":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 3, - 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9101", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9095", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "round", - "|+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "iq_limProt", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -281,94 +268,22 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9093", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "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:9096", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_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:9093", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ "Vq_min", @@ -390,99 +305,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"PI_backCalc_fixdt_n", - "label":"PI_backCalc_fixdt_n", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "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:9091", "className":"Simulink.Goto", @@ -517,11 +339,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -529,7 +351,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "n_mot", "Tag" ], "tabs":[ @@ -548,529 +370,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9100", - "className":"Simulink.SignalConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", + "name":"cf_nKi", + "label":"cf_nKi", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "ConversionOutput", + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", "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: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:9088", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" + "LockScale", + "FramePeriod" ], "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:9084", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_limProt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "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:9083", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,10)", - "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:9086", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9080", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_min", - "label":"n_min", - "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":[ - "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:9079", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", - "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:9092", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "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:9081", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_limProt", - "label":"iq_limProt", - "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":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "cf_nKi", "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:9078", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", - "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":[ - "4", - "Port number", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "fixdt(0,16,16)", "off", - "off" + "inf" ], "tabs":[ "Main", @@ -1079,8 +404,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -1089,55 +414,78 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9084", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Port", - "IconDisplay", + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProt", + "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", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "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":[ - "3", - "Port number", + "round", + "|+-", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Inherit: Inherit via internal rule", "off", - "", + "Simplest", "on", - "off", - "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1147,7 +495,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -1156,48 +504,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9103", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9082", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"cf_nKb", - "label":"cf_nKb", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "cf_nKb", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" + "reset", + "Only when execution is resumed" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1205,16 +535,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9076", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9106", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"Vq_Spd", + "label":"Vq_Spd", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1230,14 +560,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -1249,10 +585,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -1272,26 +615,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9097", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From45", + "label":"From45", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_min", - "local", + "Vq_min", "Tag" ], "tabs":[ @@ -1305,38 +646,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "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":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, @@ -1374,32 +684,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9102", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9078", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"cf_iqKiLimProt", - "label":"cf_iqKiLimProt", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "cf_iqKiLimProt", + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", "off", - "inf" + "off", + "off" ], "tabs":[ "Main", @@ -1408,8 +736,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -1418,26 +746,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9095", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9088", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", + "name":"From37", + "label":"From37", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_limProt", - "local", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -1451,16 +777,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9075", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"iq_limProt", + "label":"iq_limProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1483,7 +809,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "5", "Port number", "[]", "[]", @@ -1523,25 +849,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9085", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "n_max", - "Tag" + "3", + "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" @@ -1549,51 +911,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9083", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "", - "off", + "**", + "Element-wise(.*)", "off", + "[]", + "[]", + "fixdt(1,16,10)", "off", + "Simplest", "off", - "Simulink", - "Auto", - "", - "" + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ 0, - 3, - 5, - 7 + 2, + 9 ] }, "viewer":{ @@ -1601,100 +967,113 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Product", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9100", + "className":"Simulink.SignalConversion", + "icon":"WebViewIcon3", + "name":"Signal Conversion2", + "label":"Signal Conversion2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "Signal copy", + "Inherit: auto", + "off" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"SignalConversion", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9092", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "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:9102", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKiLimProt", + "label":"cf_iqKiLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "", - "off", - "off", - "off", + "cf_iqKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", "off", - "Simulink", - "Auto", - "", - "" + "inf" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ 0, 3, - 5, 7 ] }, @@ -1703,50 +1082,66 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Constant", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9103#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9076", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "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", - "Simulink", - "Auto", - "", - "" + "off" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ 0, - 3, - 5, - 7 + 2, + 11 ] }, "viewer":{ @@ -1754,101 +1149,97 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Inport", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From38", + "label":"From38", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "Vq_max", + "Tag" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"From", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9075", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "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", - "Simulink", - "Auto", - "", - "" + "off" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ 0, - 3, - 5, - 7 + 2, + 11 ] }, "viewer":{ @@ -1856,11 +1247,13 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Inport", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9101#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2115,7 +1508,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9086#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2166,7 +1559,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9085#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9102#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2217,7 +1610,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9088#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9084#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2268,7 +1661,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9100#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2319,7 +1712,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9080#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9088#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2370,7 +1763,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9079#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2421,7 +1814,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9101#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2472,7 +1865,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2523,7 +1916,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9083#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2574,7 +1967,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9102#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2625,7 +2018,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9084#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9083#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2676,7 +2069,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9100#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png index 2669637..d69de82 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png differ 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 785b81d..ce45bf3 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 @@ -1,36 +1,55 @@ - + - + + + + + + + + + + + + + + + The input is scaled, so already between [n_min, n_max] + + + + + - + - + - + This product is necessary because the value is an - + - + input to the Integral part of the PI controller @@ -38,624 +57,46 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vq_Spd - - - - - - - - - + - + - - - - - - cf_nKp - - - - - - - - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - cf_nKi - - - - - - - - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - err - - - - - - - - P - - - - - - - - I - - - - - - - - Kb - - - - - - - - ext_limProt - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - out - - - - - - - - PI(z) - - - - - - - - - - - - - - - - - - - - - - PI_backCalc_fixdt_n - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - [Vq_min] + + cf_nKp - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En12 @@ -666,172 +107,213 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + err - - + + - - + + P - - + + - - + + I - - + + - - + + satMax - - + + - - + + satMin - - + + - - + + ext_limProt - - + + - - + + out - - + + - - + + PI(z) - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + PI_clamp_fixdt_n - - - - - - - + + + + + + - - + + - - + + sfix16_En4 + + + + - - + + - - + + - - - - - - - + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + [iq_limProt] + - - + + - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [Vq_min] + + + + + + + @@ -842,44 +324,29 @@ - - - + + + - - + + - - + + - + [Vq_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -890,43 +357,43 @@ - - + + - + - + - - [r_inpTgtSca] + + [n_mot] - + - + - - + + - + sfix16_En4 @@ -938,44 +405,44 @@ - - - + + + - - + + - - + + - - [iq_limProt] + + cf_nKi - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -986,43 +453,43 @@ - - + + - + - + - - [n_mot] + + [iq_limProt] - + - + - - + + - + sfix16_En4 @@ -1034,52 +501,60 @@ - - - + + + - - + + - - + + - - + + - - + + + + + + + + + + - - + + - - + + - - + + - - + + - - sfix16_En10 + + sfix16_En4 @@ -1090,44 +565,44 @@ - - - + + + - - + + - - + + - - [n_min] + + case: { } - - + + - - - + + + - - + + - - sfix16_En4 + + Action Port @@ -1138,59 +613,44 @@ - - + + - + - + - - 6 + + 1 - + - - - - - - - - - - n_min - - - - - - - + + - - + + - - sfix16_En4 + + Vq_Spd @@ -1201,58 +661,43 @@ - - - + + + - - + + - - + + - - 5 + + [Vq_min] - - - - - - - - - - - - - - - - - n_max + + - + - - + + - + sfix16_En4 @@ -1264,28 +709,28 @@ - - + + - + - + - - [r_inpTgtSca] + + [n_mot] - + @@ -1297,58 +742,58 @@ - - + + - + - + - - 7 + + 4 - + - - + + - - + + - - iq_limProt + + n_mot - + - - + + - + sfix16_En4 @@ -1360,58 +805,106 @@ - - + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - 4 + + 5 - + - - + + - - + + - - n_mot + + iq_limProt - + - - + + - + sfix16_En4 @@ -1433,11 +926,11 @@ - + - + 3 @@ -1455,11 +948,11 @@ - - + + - + Vq_min @@ -1470,11 +963,11 @@ - - + + - + sfix16_En4 @@ -1486,44 +979,52 @@ - - - + + + - - + + - - + + - - cf_nKb + + + + + + + + + + - - + + - - + + - - + + - - ufix16_En16 + + sfix16_En10 @@ -1534,140 +1035,172 @@ - - - + + + - - + + - + - - + + - - 2 + + - - - - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - Vq_max + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [n_min] + + - - - - - - + + + + + + + - - - - - - - - - - - - + + - - - - - - - case: { } - - - + + - - - + + + - - + + - - Action Port + + sfix16_En4 @@ -1678,28 +1211,28 @@ - - + + - + - + - - [n_mot] + + [r_inpTgtSca] - + @@ -1712,57 +1245,57 @@ - + - + - + - + cf_iqKiLimProt - + - + - - + + - + cf_iqKiLimProt - + - - + + - + ufix16_En16 @@ -1774,91 +1307,58 @@ - - - - - - - - - - - - - - - - [iq_limProt] - - - - - - - - - - - - - - - - - - - + + - + - + - - 1 + + 2 - + - - + + - - + + - - r_inpTgtSca + + Vq_max - + - - + + - + sfix16_En4 @@ -1870,43 +1370,43 @@ - - + + - + - + - - [n_max] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -1916,70 +1416,63 @@ - + - - - + + + - - + + - - - - - - - - - - - - + + + + + + + + 1 + + - - - - - - - - - - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + r_inpTgtSca + + - - - - - - - - - - - - + + + + + + + + + + + sfix16_En4 + + @@ -1989,25 +1482,11 @@ - - - - - - - - - - - - - - - + - + @@ -2070,168 +1549,168 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2240,5 +1719,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.png deleted file mode 100644 index 7eb4c3d..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.png deleted file mode 100644 index 1592478..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.png deleted file mode 100644 index 7eb4c3d..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.png and /dev/null differ 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 5add691..3cad302 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 @@ -80,11 +80,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_iqKp", - "label":"cf_iqKp", + "name":"cf_iqKi", + "label":"cf_iqKi", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -98,12 +98,12 @@ "FramePeriod" ], "values":[ - "cf_iqKp", + "cf_iqKi", "on", "inf", "[]", "[]", - "fixdt(0,16,12)", + "fixdt(0,16,16)", "off", "inf" ], @@ -129,32 +129,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9137", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9136", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"cf_iqKb", - "label":"cf_iqKb", + "name":"Sum2", + "label":"Sum2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "cf_iqKb", - "on", - "inf", + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "fixdt(0,16,16)", + "Inherit: Inherit via internal rule", "off", - "inf" + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -163,8 +173,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 10 ] }, "viewer":{ @@ -173,70 +183,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9134", - "className":"Simulink.SignalConversion", - "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "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", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9135", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"cf_iqKi", - "label":"cf_iqKi", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "cf_iqKi", - "on", - "inf", + "round", + "|+-", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "fixdt(0,16,16)", + "Inherit: Inherit via internal rule", "off", - "inf" + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -245,8 +232,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 10 ] }, "viewer":{ @@ -255,7 +242,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Sum", "masktype":"" } }, @@ -298,99 +285,6 @@ "masktype":"Saturation Dynamic" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"PI_backCalc_fixdt_Iq", - "label":"PI_backCalc_fixdt_Iq", - "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:9140", "className":"Simulink.Constant", @@ -441,22 +335,22 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9131", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9134", + "className":"Simulink.SignalConversion", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Signal Conversion2", + "label":"Signal Conversion2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" ], "values":[ - "n_limProt", - "local", - "Tag" + "Signal copy", + "Inherit: auto", + "off" ], "tabs":[ "Parameter Attributes" @@ -469,16 +363,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SignalConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9129", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9131", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -487,7 +381,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "n_limProt", "local", "Tag" ], @@ -506,65 +400,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9135", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "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:9127", "className":"Simulink.Goto", @@ -599,21 +434,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9130", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9124", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From47", + "label":"From47", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq", - "local", + "Vq_min", "Tag" ], "tabs":[ @@ -627,26 +460,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9126", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9120", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtSca", - "local", + "iq_min", "Tag" ], "tabs":[ @@ -660,16 +491,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9125", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9130", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -678,7 +509,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "iq", "local", "Tag" ], @@ -698,42 +529,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9124", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", - "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:9122", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9118", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -741,7 +541,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "iq", "Tag" ], "tabs":[ @@ -760,20 +560,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9121", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9117", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "r_inpTgtSca", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -786,32 +586,66 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9128", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"n_limProt", + "label":"n_limProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "Vq_min", - "local", - "Tag" + "7", + "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" @@ -819,30 +653,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9118", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"cf_iqKp", + "label":"cf_iqKp", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "iq", - "Tag" + "cf_iqKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -850,25 +702,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9117", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9121", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From34", + "label":"From34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "r_inpTgtSca", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -881,16 +733,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_limProt", - "label":"n_limProt", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -913,7 +765,7 @@ "OutputFunctionCall" ], "values":[ - "7", + "6", "Port number", "[]", "[]", @@ -953,11 +805,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"iq", + "label":"iq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -980,7 +832,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -1020,11 +872,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1047,7 +899,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "3", "Port number", "[]", "[]", @@ -1087,19 +939,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9119", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9125", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_max", + "Vq_max", + "local", "Tag" ], "tabs":[ @@ -1113,47 +967,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9136", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", + "name":"iq_max", + "label":"iq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "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", + "5", + "Port number", "[]", "[]", - "Inherit: Inherit via internal rule", + "Inherit: auto", "off", - "Simplest", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", "on", - "1", - "All dimensions", - "-1" + "off", + "off", + "off" ], "tabs":[ "Main", @@ -1163,7 +1025,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -1172,91 +1034,119 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"PI_clamp_fixdt_iq", + "label":"PI_clamp_fixdt_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" + "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":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "on", + "off", "off", - "inherit", - "-1", - "Inherit", "-1", - "auto", + "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", "", - "on", + "", "off", "off", - "off" + "off", + "", + "", + "on" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9120", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9129", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto29", + "label":"Goto29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "iq_min", + "local", "Tag" ], "tabs":[ @@ -1270,7 +1160,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -1342,61 +1232,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9122", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"From4", + "label":"From4", "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":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "n_limProt", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1404,16 +1258,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9123", + "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:9119", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From44", - "label":"From44", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1421,7 +1308,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "iq_max", "Tag" ], "tabs":[ @@ -1440,11 +1327,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1467,7 +1354,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "1", "Port number", "[]", "[]", @@ -1507,55 +1394,68 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9128", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "Vq_min", + "local", + "Tag" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9123", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From44", + "label":"From44", + "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:9121#out:1", @@ -1609,7 +1509,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9123#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9118#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1660,7 +1560,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9124#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1711,7 +1611,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9118#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1762,7 +1662,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9135#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1813,7 +1713,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9137#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1864,7 +1764,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1915,7 +1815,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1966,7 +1866,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9120#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2017,7 +1917,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9119#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2068,7 +1968,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9136#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2119,7 +2019,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9122#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2170,7 +2070,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2221,7 +2121,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9134#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2272,7 +2172,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9120#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2323,7 +2223,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9119#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9124#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2374,7 +2274,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9136#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9123#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2425,7 +2325,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9122#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2476,7 +2376,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2527,7 +2427,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9140#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9135#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2578,7 +2478,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9134#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9140#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2629,7 +2529,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png index 356348e..3d766af 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png differ 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 a5c5fe7..119b6e0 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 @@ -1,10 +1,10 @@ - + - + @@ -14,10 +14,10 @@ - + - + @@ -27,29 +27,29 @@ - + 1 - + - + - + - + Vq_Trq @@ -61,11 +61,11 @@ - - + + - + @@ -75,30 +75,30 @@ - - cf_iqKp + + cf_iqKi - + - + - + - - ufix16_En12 + + ufix16_En16 @@ -109,219 +109,67 @@ - - - + + + - - + + - + - - cf_iqKb - - - - - - - - - - - - - - + + - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - + + - + - - + + - + sfix16_En4 @@ -333,44 +181,60 @@ - - - + + + - - + + - - + + - - cf_iqKi + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - ufix16_En16 + + sfix16_En4 @@ -383,7 +247,7 @@ - + @@ -391,35 +255,35 @@ - + - + - + - + - + - + - + - + @@ -431,35 +295,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -477,11 +341,11 @@ - - + + - + sfix16_En4 @@ -493,203 +357,220 @@ - - - + + + - - + + - - + + - - err + + 0 + + + + + + + + + + + + + + - - + + - - P + + sfix32_En20 + + + + + + + + + + + + + + + + + + - - + + - - I + + - - + + - - Kb + + - - + + - - ext_limProt + + - - + + - - satMax + + - - + + - - satMin + + - - + + - - out + + - - + + - - PI(z) + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - PI_backCalc_fixdt_Iq + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + - - - - - - - 0 - - - + + - - + + - - + + - - sfix32_En20 + + sfix16_En4 @@ -710,11 +591,11 @@ - + - + [n_limProt] @@ -733,28 +614,28 @@ - - + + - + - + - - [iq_min] + + [iq_max] - + @@ -766,59 +647,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + [Vq_min] - - + + - + - - + + - + sfix16_En4 @@ -830,29 +695,44 @@ - - - + + + - - + + - - + + - - [iq_max] + + [iq_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -873,11 +753,11 @@ - + - + [iq] @@ -896,29 +776,44 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + [iq] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -929,76 +824,106 @@ - - - + + + - - + + - - + + - - [Vq_max] + + case: { } - - + + - - - - - - - - - - - - - + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + - - + + - - [Vq_min] + + 7 - - + + + + + + + + + + + + + + + + + n_limProt - + - - + + - + sfix16_En4 @@ -1010,44 +935,44 @@ - - - + + + - - + + - - + + - - [n_limProt] + + cf_iqKp - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En12 @@ -1068,11 +993,11 @@ - + - + [r_inpTgtSca] @@ -1090,11 +1015,11 @@ - - + + - + sfix16_En4 @@ -1106,76 +1031,58 @@ - - - + + + - - + + - - + + - - [Vq_min] + + 6 - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [iq] - - - - - - - + + iq_min - + - - + + - + sfix16_En4 @@ -1187,44 +1094,59 @@ - - - + + + - - + + - - + + - - case: { } + + 4 - - + + - - + + - - + + - - Action Port + + iq + + + + + + + + + + + + + + + sfix16_En4 @@ -1235,58 +1157,58 @@ - - + + - + - + - - 7 + + 3 - + - - + + - - + + - - n_limProt + + Vq_min - + - - + + - + sfix16_En4 @@ -1296,6 +1218,39 @@ + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + @@ -1308,11 +1263,11 @@ - + - + 5 @@ -1330,11 +1285,11 @@ - - + + - + iq_max @@ -1345,11 +1300,11 @@ - - + + - + sfix16_En4 @@ -1361,107 +1316,147 @@ - - - + + + - - + + - - + + - - 4 + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) - - + + - - + + - - + + - - iq + + PI_clamp_fixdt_iq - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - + - - + + - - [iq_max] - - - - - - - + + - - - - - - - - - - - - - sfix16_En4 + + + + + + + + + + + + + + + + + + @@ -1472,68 +1467,29 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + [iq_min] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1544,58 +1500,58 @@ - - + + - + - + - - 3 + + 2 - + - - + + - - + + - - Vq_min + + Vq_max - + - - + + - + sfix16_En4 @@ -1607,43 +1563,43 @@ - - + + - + - + - - [iq_min] + + [n_limProt] - + - + - - + + - + sfix16_En4 @@ -1655,58 +1611,76 @@ - - - + + + - - + + - - + + - - 2 + + [r_inpTgtSca] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - Vq_max + + [iq_max] + + + + + + + - + - - + + - + sfix16_En4 @@ -1728,11 +1702,11 @@ - + - + 1 @@ -1750,11 +1724,11 @@ - - + + - + r_inpTgtSca @@ -1765,11 +1739,11 @@ - - + + - + sfix16_En4 @@ -1781,44 +1755,29 @@ - - - + + + - - + + - - + + - - [Vq_max] + + [Vq_min] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1829,58 +1788,43 @@ - - - + + + - - + + - - + + - - 6 + + [Vq_max] - - - - - - - - - - - - - - - - - iq_min + + - + - - + + - + sfix16_En4 @@ -1890,20 +1834,6 @@ - - - - - - - - - - - - - - @@ -1918,294 +1848,294 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2214,5 +2144,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.png deleted file mode 100644 index 7eb4c3d..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.svg deleted file mode 100644 index f4b5a5e..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.svg +++ /dev/null @@ -1,1180 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - UpperRelop - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - LowerRelop1 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - Ref1 - - - - - - - - Ref2 - - - - - - - - Prop - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - lo - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.png deleted file mode 100644 index 7d3507f..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.svg index 08c45bc..dcf9be6 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.svg @@ -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_9143_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json index e6734ce..8be2459 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:9169", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", + "name":"constant1", + "label":"constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -108,153 +108,83 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9166", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"cf_idKb", - "label":"cf_idKb", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "DoSatur" ], "values":[ - "cf_idKb", - "on", - "inf", "[]", "[]", - "fixdt(0,16,16)", + "Inherit: Same as second input", "off", - "inf" + "Floor", + "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 3, - 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"PI_backCalc_fixdt_Id", - "label":"PI_backCalc_fixdt_Id", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9162", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "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" + "id_min", + "local", + "Tag" ], "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - ] + "tabs_idx":0 }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9161", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9160", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -263,7 +193,7 @@ "IconDisplay" ], "values":[ - "id", + "id_max", "local", "Tag" ], @@ -283,11 +213,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9162", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9157", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -296,7 +226,7 @@ "IconDisplay" ], "values":[ - "id_min", + "id_Tgt", "local", "Tag" ], @@ -316,11 +246,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9160", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9159", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto18", + "label":"Goto18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -329,7 +259,7 @@ "IconDisplay" ], "values":[ - "id_max", + "Vd_min", "local", "Tag" ], @@ -349,32 +279,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9168", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9170", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"cf_idKp", - "label":"cf_idKp", + "name":"Vd", + "label":"Vd", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "cf_idKp", - "on", - "inf", + "1", + "Port number", "[]", "[]", - "fixdt(0,16,12)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -383,8 +344,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -393,26 +354,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9158", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9722", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "Vd_max", - "local", "Tag" ], "tabs":[ @@ -426,24 +385,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9156", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9158", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id_min", + "Vd_max", + "local", "Tag" ], "tabs":[ @@ -457,26 +418,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9157", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9156", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id_Tgt", - "local", + "id_min", "Tag" ], "tabs":[ @@ -490,16 +449,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9152", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9155", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -507,7 +466,7 @@ "IconDisplay" ], "values":[ - "id", + "id_max", "Tag" ], "tabs":[ @@ -526,21 +485,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9159", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9151", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", - "local", + "id_Tgt", "Tag" ], "tabs":[ @@ -554,24 +511,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9151", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9161", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id_Tgt", + "id", + "local", "Tag" ], "tabs":[ @@ -585,25 +544,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9155", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9150", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "id_max", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -616,16 +575,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9147", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9149", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd_min", - "label":"Vd_min", + "name":"id_min", + "label":"id_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -648,7 +607,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "6", "Port number", "[]", "[]", @@ -688,11 +647,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9146", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9148", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", + "name":"id_max", + "label":"id_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -715,7 +674,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "5", "Port number", "[]", "[]", @@ -755,11 +714,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9154", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9152", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -767,7 +726,7 @@ "IconDisplay" ], "values":[ - "Vd_min", + "id", "Tag" ], "tabs":[ @@ -786,11 +745,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9148", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9147", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", + "name":"Vd_min", + "label":"Vd_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -813,7 +772,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -832,32 +791,125 @@ "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "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:9721", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"PI_clamp_fixdt_id", + "label":"PI_clamp_fixdt_id", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "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":[ - 0, - 2, - 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9170", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9145", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd", - "label":"Vd", + "name":"id", + "label":"id", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -873,20 +925,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -898,17 +944,10 @@ "-1", "auto", "off", + "", + "on", "off", - "0", - "off", - "reset", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -928,16 +967,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9145", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9146", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id", - "label":"id", + "name":"Vd_max", + "label":"Vd_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -960,7 +999,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -1000,59 +1039,69 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", + "name":"cf_idKi1", + "label":"cf_idKi1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "DoSatur" + "FramePeriod" ], "values":[ + "cf_idKi", + "on", + "inf", "[]", "[]", - "Inherit: Same as second input", + "fixdt(0,16,16)", "off", - "Floor", - "off" + "inf" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 3, + 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "blocktype":"Constant", + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9150", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "Vd_min", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -1065,16 +1114,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9167", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_idKi", - "label":"cf_idKi", + "name":"cf_idKp1", + "label":"cf_idKp1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -1088,12 +1137,12 @@ "FramePeriod" ], "values":[ - "cf_idKi", + "cf_idKp", "on", "inf", "[]", "[]", - "fixdt(0,16,16)", + "fixdt(0,16,12)", "off", "inf" ], @@ -1185,104 +1234,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9149", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_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":[ - "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:9153", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "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:9152#out:1", "className":"Simulink.Line", @@ -1845,58 +1796,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9165#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "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:9153#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1947,7 +1847,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9154#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1998,7 +1898,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9168#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9722#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2049,7 +1949,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9167#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2100,7 +2000,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9166#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2151,7 +2051,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9169#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9165#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2202,7 +2102,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.png index bd38c1f..2601b7d 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.png differ 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 f90d0df..043fb64 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 @@ -1,10 +1,10 @@ - + - + @@ -62,7 +62,7 @@ - + @@ -77,11 +77,11 @@ - - + + - + @@ -91,29 +91,29 @@ - + 0 - + - + - + - + sfix32_En20 @@ -125,235 +125,140 @@ - - - + + + - - + + - + - - - - - cf_idKb - - - - - - - - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - err - - - - + - - P + + - + - - I + + - + - - Kb + + - + - - ext_limProt + + + + + + + + + + - - + + - - satMax + + up - - + + - - satMin + + u - - + + - - out + + lo - - + + - - PI(z) + + y - - - - - - - - - - - - - - - - - PI_backCalc_fixdt_Id + + - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - - [id] + + [id_min] - + @@ -365,28 +270,28 @@ - - + + - + - + - - [id_min] + + [id_max] - + @@ -398,28 +303,28 @@ - - + + - + - + - - [id_max] + + [id_Tgt] - + @@ -431,44 +336,29 @@ - - - + + + - - + + - - + + - - cf_idKp + + [Vd_min] - - - - - - - - - - - - - - - - - ufix16_En12 + + @@ -479,29 +369,44 @@ - - - + + + - - + + - - + + - - [Vd_max] + + 1 - - + + + + + + + + + + + + + + + + + Vd @@ -512,43 +417,43 @@ - - + + - + - - + + - - [id_min] + + [Vd_max] - + - + - - + + - + sfix16_En4 @@ -560,28 +465,28 @@ - - + + - + - + - - [id_Tgt] + + [Vd_max] - + @@ -593,43 +498,43 @@ - - + + - + - - + + - - [id] + + [id_min] - + - + - - + + - + sfix16_En4 @@ -641,29 +546,44 @@ - - - + + + - - + + - - + + - - [Vd_min] + + [id_max] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -684,11 +604,11 @@ - + - + [id_Tgt] @@ -706,11 +626,11 @@ - - + + - + sfix16_En4 @@ -722,44 +642,77 @@ - - - + + + - - + + - - + + - - [id_max] + + [id] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + Action Port @@ -770,58 +723,58 @@ - - + + - + - + - - 4 + + 6 - + - - + + - - + + - - Vd_min + + id_min - + - - + + - + sfix16_En4 @@ -833,58 +786,58 @@ - - + + - + - + - - 3 + + 5 - + - - + + - - + + - - Vd_max + + id_max - + - - + + - + sfix16_En4 @@ -896,43 +849,43 @@ - - + + - + - + - - [Vd_min] + + [id] - + - + - - + + - + sfix16_En4 @@ -944,58 +897,58 @@ - - + + - + - + - - 5 + + 4 - + - - + + - - + + - - id_max + + Vd_min - + - - + + - + sfix16_En4 @@ -1007,44 +960,147 @@ - - - + + + - - + + - - + + + + + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) + + + + + + + + + + + + + + + + + + + + + + PI_clamp_fixdt_id + + + + + + + + + + + - - 1 - - - - - - - + + sfix16_En4 - - - - + - - + + - - Vd + + + + + + + + + + + + + + + + + + + + + + @@ -1065,11 +1121,11 @@ - + - + 2 @@ -1087,11 +1143,11 @@ - - + + - + id @@ -1102,11 +1158,11 @@ - - + + - + sfix16_En4 @@ -1118,107 +1174,58 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + 3 - + + + + - - - - - - - - up - - - - - - - - u - - - - - - - - lo + + + - + - - y - - - - - - - + + Vd_max - + - + - + sfix16_En4 @@ -1230,44 +1237,44 @@ - - - + + + - - + + - + - - if { } + + cf_idKi - - + + - - - + + + - + - - Action Port + + ufix16_En16 @@ -1278,44 +1285,44 @@ - - - + + + - - + + - + - - cf_idKi + + [Vd_min] - - + + - - + + - + - - ufix16_En16 + + sfix16_En4 @@ -1326,59 +1333,44 @@ - - - + + + - - + + - + - - 1 + + cf_idKp - - - - - - - - - - - - - - - - - id_Tgt + + - - + + - - + + - - sfix16_En4 + + ufix16_En12 @@ -1389,106 +1381,58 @@ - - + + - + - + - - 6 + + 1 - + - - - - - - - - - - id_min - - - - - - - - - - - - - - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [Vd_max] - - - - - - - + + id_Tgt - + - - + + - + sfix16_En4 @@ -1652,112 +1596,98 @@ - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1766,5 +1696,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.png deleted file mode 100644 index 7eb4c3d..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.png deleted file mode 100644 index 7d3507f..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.png and /dev/null differ 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 504d351..4634f99 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 @@
- + - + - + @@ -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_9171_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json index 8b94ad5..01f75a3 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 @@ -79,39 +79,6 @@ "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:9190", "className":"Simulink.Sum", @@ -244,11 +211,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":[ @@ -257,7 +224,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_inpTgtSca", "local", "Tag" ], @@ -277,11 +244,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9184", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9183", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -290,7 +257,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vq_max", "local", "Tag" ], @@ -341,11 +308,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9178", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -353,7 +320,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -372,11 +339,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9180", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -384,7 +351,7 @@ "IconDisplay" ], "values":[ - "iq_limProt", + "Vq_min", "Tag" ], "tabs":[ @@ -403,25 +370,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9178", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9175", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"iq_limProt", + "label":"iq_limProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "r_inpTgtSca", - "Tag" + "4", + "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" @@ -429,26 +432,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9186", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9180", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_limProt", - "local", + "iq_limProt", "Tag" ], "tabs":[ @@ -462,7 +463,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -498,75 +499,11 @@ } }, { - "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:9183", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "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:9175", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9174", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_limProt", - "label":"iq_limProt", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -589,7 +526,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "3", "Port number", "[]", "[]", @@ -629,11 +566,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9173", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9176", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"n_limProt", + "label":"n_limProt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -656,7 +593,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "5", "Port number", "[]", "[]", @@ -696,11 +633,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9174", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9173", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "name":"Vq_max", + "label":"Vq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -723,7 +660,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -763,61 +700,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9176", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9186", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"n_limProt", - "label":"n_limProt", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_limProt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "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", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "OverrideOpt" ], "values":[ - "5", - "Port number", - "[]", - "[]", + "Signal copy", "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -825,7 +761,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"SignalConversion", + "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":"" } }, @@ -896,6 +863,39 @@ "masktype":"" } }, + { + "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:9172#out:1", "className":"Simulink.Line", @@ -1407,7 +1407,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9180#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9182#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1458,7 +1458,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9182#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1509,7 +1509,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9180#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", 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 bb49c43..fd96916 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 8a93bde..20c5a53 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 @@ -59,182 +59,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -247,51 +71,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -309,11 +133,11 @@ - + - + sfix16_En4 @@ -335,35 +159,35 @@ - + - + - + - + - + - + - + - + @@ -375,35 +199,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -421,11 +245,11 @@ - + - + sfix16_En4 @@ -447,11 +271,11 @@ - + - + [iq_limProt] @@ -470,28 +294,28 @@ - - + + - + - + - - [Vq_min] + + [r_inpTgtSca] - + @@ -503,28 +327,28 @@ - - + + - + - + - - [r_inpTgtSca] + + [Vq_max] - + @@ -546,11 +370,11 @@ - + - + [n_limProt] @@ -568,11 +392,11 @@ - + - + sfix16_En4 @@ -584,43 +408,43 @@ - - + + - + - + - - [Vq_min] + + [r_inpTgtSca] - + - + - - + + - + sfix16_En4 @@ -632,43 +456,43 @@ - - + + - + - + - - [iq_limProt] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -680,44 +504,59 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + 4 - - + + - - - + + + - - + + - - sfix16_En4 + + iq_limProt + + + + + + + + + + + + + + + sfix16_En4 @@ -728,29 +567,44 @@ - - - + + + - - + + - - + + - - [n_limProt] + + [iq_limProt] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -771,11 +625,11 @@ - + - + case: { } @@ -793,11 +647,11 @@ - + - + Action Port @@ -809,77 +663,59 @@ - - - + + + - - + + - - + + - - [Vq_max] + + 3 - - + + - - - + + + - - + + - - sfix16_En4 + + Vq_min - - - - - - - - - - - - - - - + + + + - - + + - - [Vq_max] - - - - - - - + + sfix16_En4 @@ -890,58 +726,58 @@ - - + + - + - + - - 4 + + 5 - + - - + + - - + + - - iq_limProt + + n_limProt - + - - + + - + sfix16_En4 @@ -963,11 +799,11 @@ - + - + 2 @@ -985,11 +821,11 @@ - + - + Vq_max @@ -1000,11 +836,11 @@ - + - + sfix16_En4 @@ -1016,58 +852,204 @@ - - - + + + - - + + - - + + - - 3 + + [n_limProt] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + - - + + - - Vq_min + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + sfix16_En4 @@ -1079,58 +1061,43 @@ - - - + + + - - + + - - + + - - 5 + + [Vq_max] - - - - - - - - - - - - - - - - - n_limProt + + - + - - + + - + sfix16_En4 @@ -1152,11 +1119,11 @@ - + - + 1 @@ -1174,11 +1141,11 @@ - + - + r_inpTgtSca @@ -1189,11 +1156,11 @@ - + - + sfix16_En4 @@ -1203,6 +1170,39 @@ + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + @@ -1343,42 +1343,42 @@ - + - + - + - + - + - + - + - + - + @@ -1387,5 +1387,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 402a4bc..8ba2d9a 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 @@ -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 35cd210..84be971 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 @@ -1417,143 +1417,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9455", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "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:9235", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "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:9449", "className":"Simulink.UnitDelay", @@ -1650,11 +1513,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9225", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9227", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1663,7 +1526,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "z_ctrlTypSel", "local", "Tag" ], @@ -1683,11 +1546,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9452", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9225", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1696,7 +1559,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "r_inpTgtSca", "local", "Tag" ], @@ -1716,19 +1579,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9451", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "VqFin", + "local", "Tag" ], "tabs":[ @@ -1742,24 +1607,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9452", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtSca", + "VqFinPrev", + "local", "Tag" ], "tabs":[ @@ -1773,16 +1640,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9214", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1790,7 +1657,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "VqFinPrev", "Tag" ], "tabs":[ @@ -1809,11 +1676,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1821,7 +1688,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -1840,43 +1707,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9207", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9214", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "name":"From25", + "label":"From25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "CTRL_COM", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "z_ctrlTypSel", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1884,32 +1733,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9451", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9235", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"Switch2", + "label":"Switch2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "VqFin", - "local", - "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" @@ -1917,30 +1790,79 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9210", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9455", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "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_enaFOC", - "Tag" + "4", + "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" @@ -1948,32 +1870,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9227", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9207", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_ctrlTypSel", - "local", - "Tag" + "CTRL_FOC", + "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" @@ -1981,16 +1919,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9206", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -2013,7 +1951,7 @@ "OutputFunctionCall" ], "values":[ - "8", + "3", "Port number", "[]", "[]", @@ -2053,11 +1991,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9206", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -2080,7 +2018,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "8", "Port number", "[]", "[]", @@ -2119,6 +2057,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9210", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaFOC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "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:9208#out:3", "className":"Simulink.Line", @@ -3650,7 +3650,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9213#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3701,7 +3701,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9213#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", 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 fdb7446..7a55d5c 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 f9d2a89..ee3c1d0 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 @@ -1163,45 +1163,45 @@ - + - + - + int16 - + - + - + int16 - + - + - + int16 @@ -1598,10 +1598,10 @@ - + - + @@ -1611,29 +1611,29 @@ - + [Vq] - + - + - + - + int16 @@ -1795,246 +1795,6 @@ - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - @@ -2047,35 +1807,35 @@ - + - + - + - + - + - + - + - + @@ -2101,11 +1861,11 @@ - + - + Ini=0 @@ -2116,11 +1876,11 @@ - + - + int16 @@ -2134,7 +1894,7 @@ - + @@ -2142,27 +1902,27 @@ - + - + - + - + - + - + @@ -2188,11 +1948,11 @@ - + - + boolean @@ -2204,28 +1964,28 @@ - - + + - + - + - - [r_inpTgtSca] + + [z_ctrlTypSel] - + @@ -2237,28 +1997,28 @@ - - + + - + - + - - [VqFinPrev] + + [r_inpTgtSca] - + @@ -2270,44 +2030,62 @@ - - - - - - + + + + + + - - + + - + [VqFin] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - int16 + + [VqFinPrev] + + + + + + + @@ -2318,43 +2096,43 @@ - - + + - + - + - - [r_inpTgtSca] + + [VqFinPrev] - + - + - - + + - + int16 @@ -2366,44 +2144,44 @@ - - + + - + - + - - [z_ctrlTypSel] + + [r_inpTgtSca] - + - + - - + + - - uint8 + + int16 @@ -2414,44 +2192,44 @@ - - + + - + - + - - [VqFinPrev] + + [z_ctrlTypSel] - + - + - - + + - - int16 + + uint8 @@ -2462,44 +2240,188 @@ - - - + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - CTRL_COM + + + + + + + + + + T + + + + + + + + F - - + + - + - - + + - - uint8 + + int16 @@ -2510,29 +2432,44 @@ - - - + + + - - + + - - + + - - [VqFin] + + 4 - - + + + + + + + + + + + + + + + + + VqFinPrev @@ -2543,44 +2480,44 @@ - - - + + + - - + + - - + + - - [b_enaFOC] + + CTRL_FOC - - + + - - + + - - + + - - boolean + + uint8 @@ -2591,29 +2528,59 @@ - - - + + + - - + + - - + + - - [z_ctrlTypSel] + + 3 - - + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 @@ -2634,11 +2601,11 @@ - + - + 8 @@ -2656,11 +2623,11 @@ - + - + r_inpTgtSca @@ -2671,11 +2638,11 @@ - + - + int16 @@ -2687,59 +2654,92 @@ - - - + + + - - + + - - + + - - 3 + + [b_enaFOC] - - + + - - - + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + - + - - z_ctrlTypSel + + [VqFin] + + + + + + + - + - + - - uint8 + + int16 @@ -3188,7 +3188,7 @@ - + @@ -3202,7 +3202,7 @@ - + @@ -3218,5 +3218,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 1a6be58..5643de9 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 9b39970..97cacf1 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_9333_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.json index 79b99c0..37b861c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.json @@ -49,74 +49,27 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9372", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9369", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "z_ctrlTypSel", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -124,38 +77,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9371", - "className":"Simulink.Merge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9368", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "[]", - "off", - "[]" + "r_inpTgtSca", + "local", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -163,7 +110,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"Goto", "masktype":"" } }, @@ -185,7 +132,7 @@ ], "values":[ "1", - "u1 == CTRL_COM", + "u1 == CTRL_FOC", "", "on", "-1", @@ -210,39 +157,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9369", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "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:9367", "className":"Simulink.Goto", @@ -277,42 +191,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9365", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlModPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9368", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9366", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ @@ -321,7 +204,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "z_ctrlModReq", "local", "Tag" ], @@ -341,42 +224,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9364", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "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:9363", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9362", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ @@ -384,7 +236,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -434,44 +286,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9366", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "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:9341", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"FOC_Control_Type", - "label":"FOC_Control_Type", + "name":"Commutation_Control_Type", + "label":"Commutation_Control_Type", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ @@ -479,8 +298,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -492,7 +311,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -503,9 +321,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -515,7 +334,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -528,7 +347,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -538,18 +356,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 ] }, @@ -591,7 +412,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -631,108 +452,122 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Commutation_Control_Type", - "label":"Commutation_Control_Type", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9372", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "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" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "", "off", - "", + "0", "off", + "reset", "off", + "0", "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + [ + ], + "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":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9334", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9363", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From19", + "label":"From19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "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:9336", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ @@ -755,7 +590,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -795,11 +630,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9336", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9364", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "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:9334", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlModPrev", - "label":"z_ctrlModPrev", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ @@ -822,7 +688,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "1", "Port number", "[]", "[]", @@ -862,11 +728,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9362", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9371", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "inspector":{ + "params":[ + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" + ], + "values":[ + "2", + "[]", + "off", + "[]" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9365", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", "inspector":{ "params":[ @@ -874,7 +779,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -893,7 +798,106 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC_Control_Type", + "label":"FOC_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "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:9364#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -944,7 +948,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9364#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9362#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -995,7 +999,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9362#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9334#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1046,7 +1050,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9363#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1097,7 +1101,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9334#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9361#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1148,7 +1152,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9363#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9335#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1199,7 +1203,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9341#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9371#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1250,7 +1254,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9361#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9365#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1301,7 +1305,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9335#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9336#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1352,7 +1356,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9371#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9341#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1403,7 +1407,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1454,7 +1458,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9365#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1505,7 +1509,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9336#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png index 62997a7..0b79f89 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.svg index fe822a0..4a1511e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.svg @@ -1,10 +1,10 @@ - + - + @@ -19,7 +19,7 @@ - + @@ -32,44 +32,29 @@ - - - + + + - - + + - + - - 1 + + [z_ctrlTypSel] - - - - - - - - - - - - - - - - - r_inpTgtSca + + @@ -80,60 +65,29 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -146,7 +100,7 @@ - + @@ -154,27 +108,27 @@ - + - + u1 - + - - if(u1 == CTRL_COM) + + if(u1 == CTRL_FOC) - + - + else @@ -192,11 +146,11 @@ - - + + - + action @@ -207,11 +161,11 @@ - - + + - + action @@ -223,28 +177,28 @@ - - + + - + - + - - [z_ctrlTypSel] + + [r_inpTgt] - + @@ -256,7 +210,7 @@ - + @@ -266,12 +220,12 @@ - + - - [r_inpTgt] + + [z_ctrlModReq] @@ -289,77 +243,44 @@ - - + + - + - + - - [z_ctrlModPrev] + + [r_inpTgtSca] - + - - - - - - - - - - uint8 + + - - - - - - - - - - - - - - - - - - - - + + - - [r_inpTgtSca] - - - - - - - + + sfix16_En4 @@ -370,43 +291,43 @@ - - + + - + - + - + [r_inpTgt] - + - + - - + + - + sfix16_En4 @@ -418,91 +339,119 @@ - - - + + + - - + + + + + + + + - - + + - - [z_ctrlTypSel] + + r_inpTgt + + + + + + + + r_inpTgtScaCOM + + + + + + + + else { } - - + + + + + + + + - - - + + + + + + + + + - - + + - - uint8 + + Commutation_Control_Type - - - - - - - - - - - - - - - + - - - + + + + - - [r_inpTgt] + + - - - - - - + + + + + + + action - + + + + + + + - - + + - + sfix16_En4 @@ -514,29 +463,65 @@ - - - + + + + + + + + + - - + + - - + + - - [z_ctrlModPrev] + + 3 - - + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + sfix16_En4 @@ -547,128 +532,92 @@ - - - + + + - - - - - - - - + + - - - - - - r_inpTgt - - - - - - - - z_ctrlModPrev - - - - - - - - r_inpTgtScaFOC - - - - + + - - else { } + + 1 - - - - - - - - + + - - - - - - - - + + - - + + - - FOC_Control_Type + + r_inpTgtSca - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [z_ctrlTypSel] + + + + + + + - - - - - - - - + + - - + + - - action + + uint8 @@ -679,13 +628,7 @@ - - - - - - - + @@ -695,11 +638,11 @@ - + - + 2 @@ -714,30 +657,30 @@ - + - - + + - - r_inpTgt + + z_ctrlModReq - + - - + + - - sfix16_En4 + + uint8 @@ -748,124 +691,48 @@ - - - + + + - - - - - - - - + + - - - - - - r_inpTgt - - - - - - - - r_inpTgtScaCOM - - - - + + - - if { } + + [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Commutation_Control_Type + + - - - - - - - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - action - - - - @@ -873,12 +740,6 @@ - - - - - - @@ -888,11 +749,11 @@ - + - + 1 @@ -910,11 +771,11 @@ - - + + - + z_ctrlTypSel @@ -925,11 +786,11 @@ - - + + - + uint8 @@ -941,58 +802,107 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - z_ctrlModPrev + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + - + - - + + - + uint8 @@ -1004,165 +914,255 @@ - - - + + + - - + + + + + + + + - - + + - - [r_inpTgtSca] + + r_inpTgt + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgtScaFOC + + + + + + + + if { } - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FOC_Control_Type - + + + + + + + - - + + - + sfix16_En4 + + + + + + + + + + + + + + + + + action + + + + - + - + + + + + + + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1176,56 +1176,56 @@ - + - + - + - + - + - + - + - + - + - + - + - - + + @@ -1234,5 +1234,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.png index ba10c65..77624a4 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.svg index 707c3e2..e404247 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.svg @@ -76,7 +76,7 @@ - if { } + else { } @@ -186,5 +186,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.json index 3cb5dd7..0ad16ab 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.json @@ -1,62 +1,31 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9360", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9358", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"r_inpTgtScaFOC", - "label":"r_inpTgtScaFOC", + "name":"i_max", + "label":"i_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "FramePeriod" ], "values":[ - "1", - "Port number", - "[]", + "i_max", + "on", + "inf", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", "[]", + "fixdt(1,16,4)", "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "inf" ], "tabs":[ "Main", @@ -65,8 +34,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -75,16 +44,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9359", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9357", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", + "name":"constant1", + "label":"constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ @@ -98,12 +67,12 @@ "FramePeriod" ], "values":[ - "n_max", + "0", "on", "inf", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -186,113 +155,34 @@ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ - "NumberOfDimensions", "IndexMode", "IndexOptionArray", - "IndexParamArray", - "OutputSizeArray", - "InputPortWidth", - "SampleTime", "IndexOptions", - "NumberOfDimensions", - "IndexMode", - "IndexOptionArray", "IndexParamArray", - "OutputSizeArray", + "Indices", "InputPortWidth", - "SampleTime", - "IndexOptions", "NumberOfDimensions", - "IndexMode", - "IndexOptionArray", - "IndexParamArray", "OutputSizeArray", - "InputPortWidth", - "SampleTime", - "IndexOptions", - "Indices", - "OutputSizes" + "OutputSizes", + "SampleTime" ], "values":[ - "1", "Zero-based", [ "Index vector (port)" ], - [ - "[1 3]" - ], - [ - "1" - ], - "4", - "-1", "Index vector (port)", - "1", - "Zero-based", - [ - "Index vector (port)" - ], [ "[1 3]" ], - [ - "1" - ], + "[1 3]", "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:9353", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux", - "label":"Mux", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "4", - "bar" + "1", + "-1" ], "tabs":[ "Parameter Attributes" @@ -305,16 +195,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"Selector", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9350", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9352", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ @@ -323,7 +213,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaFOC", + "r_inpTgt", "local", "Tag" ], @@ -355,7 +245,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -374,44 +264,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9352", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "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:9358", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9359", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", + "name":"n_max", + "label":"n_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ @@ -425,7 +282,7 @@ "FramePeriod" ], "values":[ - "i_max", + "n_max", "on", "inf", "[]", @@ -456,11 +313,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9347", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9348", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ @@ -468,7 +325,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaFOC", + "r_inpTgt", "Tag" ], "tabs":[ @@ -487,65 +344,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9351", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9346", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "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:9357", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -554,8 +386,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 9 ] }, "viewer":{ @@ -564,7 +396,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Product", "masktype":"" } }, @@ -656,12 +488,43 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9347", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "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:9343", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlModPrev", - "label":"z_ctrlModPrev", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ @@ -723,6 +586,119 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9350", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaFOC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9353", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux", + "label":"Mux", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "4", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9356", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant", + "label":"constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "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:9342", "className":"Simulink.Inport", @@ -791,51 +767,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9346", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9351", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "z_ctrlModReq", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -843,37 +795,68 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9356", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9360", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", + "name":"r_inpTgtScaFOC", + "label":"r_inpTgtScaFOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1000", - "on", - "inf", + "1", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -882,8 +865,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -892,38 +875,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9348", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.png index d9902c2..20e7b01 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.svg index 51653f0..db07a72 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.svg @@ -1,10 +1,10 @@ - + - + @@ -13,44 +13,59 @@ - - - + + + - - + + - + - - 1 + + i_max - - + + - - + + - + - - r_inpTgtScaFOC + + i_max + + + + + + + + + + + + + + + sfix16_En4 @@ -61,58 +76,43 @@ - - + + - + - + - - n_max + + 0 - + - - - - - - - - - - - n_max - - - - - + - + - + sfix16_En4 @@ -157,7 +157,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -244,7 +244,7 @@ - + @@ -259,76 +259,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [r_inpTgtScaFOC] + + [r_inpTgt] - + @@ -350,12 +302,12 @@ - + - - [z_ctrlModPrev] + + [z_ctrlModReq] @@ -372,11 +324,11 @@ - - + + - + uint8 @@ -388,91 +340,58 @@ - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - + + - + - + - - i_max + + n_max - + - - + + - - + + - - i_max + + n_max - + - - + + - + sfix16_En4 @@ -484,43 +403,43 @@ - - + + - + - + - - [r_inpTgtScaFOC] + + [r_inpTgt] - + - + - - + + - + sfix16_En4 @@ -532,77 +451,69 @@ - - - + + + - - + + - - + + - - [z_ctrlModPrev] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - 0 + + + + + + + + + + + - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En12 @@ -615,7 +526,7 @@ - + @@ -623,19 +534,19 @@ - + - + - + - + @@ -653,11 +564,11 @@ - - + + - + sfix16_En4 @@ -671,7 +582,7 @@ - + @@ -679,12 +590,12 @@ - + - - else { } + + if { } @@ -701,11 +612,11 @@ - - + + - + Action Port @@ -715,6 +626,54 @@ + + + + + + + + + + + + + + + + + + [r_inpTgtScaFOC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -727,11 +686,11 @@ - + - + 2 @@ -746,15 +705,15 @@ - + - - + + - - z_ctrlModPrev + + z_ctrlModReq @@ -764,11 +723,11 @@ - - + + - + uint8 @@ -780,58 +739,76 @@ - - - + + + - - + + - - + + - - 1 + + [r_inpTgtScaFOC] - - + + - - - - + + + + + + + + + + + + + + + - + - - r_inpTgt + + + + + + + + + - + - + - + sfix16_En4 @@ -843,69 +820,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + 1000 - - + + - - + + - - + + - - ufix16_En12 + + sfix16_En4 @@ -916,43 +868,58 @@ - - - + + + - - + + - - + + - - 1000 + + 1 - - + + + + + + + + + + + + + + + + + r_inpTgt - + - - + + - + sfix16_En4 @@ -964,44 +931,77 @@ - - - + + + - - + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + + - + - - [r_inpTgt] + + 1 - - + + - - - + + + - + - - sfix16_En4 + + r_inpTgtScaFOC @@ -1208,5 +1208,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json index bd7dca8..a3ef23e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json @@ -1,72 +1,42 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2281", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2789", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "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":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", "0", + "Inherited", + "-1", + "", "", + "off", [ ], - "Dialog", - "Auto", - "off" + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 4 ] }, "viewer":{ @@ -75,17 +45,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2279", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2788", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum1", "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ "IconShape", @@ -139,40 +109,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2697", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2790", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ + "1", + "Port number", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: auto", "off", - "Real World Value (RWV)", - "Floor", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "-1" + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 7 + 2, + 11 ] }, "viewer":{ @@ -181,48 +184,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2528", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2787", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "[]", + "[]", + "fixdt(1,16,4)", "off", - [ - ], - "Auto" + "Real World Value (RWV)", + "Floor", + "off", + "-1" ], "tabs":[ - "Main", - "State Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 7 ] }, "viewer":{ @@ -231,17 +231,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2276", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2786", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ "Port", @@ -303,12 +303,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2697#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -354,12 +354,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2528#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2789#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -405,12 +405,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2279#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -456,12 +456,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2276#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg similarity index 95% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg index ada0271..7649c96 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg @@ -9,11 +9,11 @@ - + - + @@ -108,60 +108,68 @@ - - - + + + - - + + - + - + - - + + - - + + - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -172,59 +180,44 @@ - - + + - + - + - + 1 - + - - - - - - - - - - u - - - - - - - + + - - + + - - sfix32_En20 + + y @@ -235,44 +228,60 @@ - - - + + + - - + + - + - - + + - - 1 + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - y + + sfix16_En4 @@ -283,67 +292,58 @@ - - - + + + - - + + - - + + - - + + 1 - - - - - - - + + + + + + - - - - - - - + + + + + + - + - - - - - - - - - + + u - + - + - + sfix32_En20 @@ -353,7 +353,7 @@ - + @@ -367,7 +367,7 @@ - + @@ -381,7 +381,7 @@ - + @@ -415,7 +415,7 @@ - + @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.json similarity index 75% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.json index 37adc50..f1b1f36 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2377", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "Port", @@ -33,10 +33,10 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "2", "Port number", - "OutMin", - "OutMax", + "[]", + "[]", "Inherit: auto", "off", "inherit", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2707", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "Operator", @@ -125,12 +125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2849", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "Criteria", @@ -149,16 +149,16 @@ "values":[ "u2 ~= 0", "off", - "OutMin", - "OutMax", + "[]", + "[]", "Inherit: Inherit via back propagation", "off", - "Floor", + "Zero", "off", "off", "-1", "0", - "off" + "on" ], "tabs":[ "Main", @@ -182,39 +182,62 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:7", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2710", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Switch", - "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "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", + "3", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "Floor", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", "off", - "-1", + "[]", + "off", + "held", + "off", "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -224,8 +247,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -234,43 +257,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:6", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2848", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ - "Operator", + "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", - "boolean", - "Nearest", "-1", + "0", "on" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, 1, - 4 + 9 ] }, "viewer":{ @@ -279,61 +314,65 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:5", - "className":"Simulink.SFunction", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2701", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Data Type Propagation", - "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ - "PropDataTypeMode", - "PropDataType", - "IfRefDouble", - "IfRefSingle", - "IsSigned", - "NumBitsBase", - "NumBitsMult", - "NumBitsAdd", - "NumBitsAllowFinal", - "PropScalingMode", - "PropScaling", - "ValuesUsedBestPrec", - "SlopeBase", - "SlopeMult", - "SlopeAdd", - "BiasBase", - "BiasMult", - "BiasAdd" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "Inherit via propagation rule", - "fixdt(1, 16)", - "double", - "single", - "IsSigned1", - "NumBits1", - "1", - "0", - "1:128", - "Inherit via propagation rule", - "2^-10", - "[5 -7]", - "Slope1", - "1", - "0", - "Bias1", - "1", - "0" + "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":{ @@ -342,46 +381,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"S-Function", - "masktype":"Data Type Propagation" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:4", - "className":"Simulink.DataTypeDuplicate", - "icon":"WebViewIcon3", - "name":"Data Type Duplicate", - "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", - "inspector":{ - "params":[ - "NumInputPorts" - ], - "values":[ - "2" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeDuplicate", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2700", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "Port", @@ -403,7 +413,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -443,12 +453,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:2", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2709", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "name":"hitMax", + "label":"hitMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "Port", @@ -463,14 +473,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -482,10 +498,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -505,17 +528,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2699", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "Port", @@ -577,12 +600,57 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2704", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721: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:9721:2791:2849#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +696,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +747,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +798,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +849,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +900,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +951,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2848#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.png new file mode 100644 index 0000000..68606bf Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg similarity index 63% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg index 4fe109b..475b46d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg @@ -1,23 +1,23 @@ - + - + - + - - + + - + @@ -27,29 +27,29 @@ - - 1 + + 2 - + - + - + - + y @@ -61,11 +61,11 @@ - - + + - + @@ -75,7 +75,7 @@ - + @@ -83,7 +83,7 @@ - + @@ -98,37 +98,37 @@ - + - + - + - + UpperRelop - + - + - + boolean @@ -140,187 +140,187 @@ - - - + + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F - - + + - + - + - + sfix16_En4 @@ -332,187 +332,235 @@ - - - + + + - - + + - + - - + + 3 - - - - - - - + + + + + + + + + + + + + - - + + - - + + hitMin + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - T + + - + - + + + + + + + + + + + + + + + + + + T + + + + + + + F - - + + - + - - + + - + sfix16_En4 @@ -524,75 +572,59 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 3 - - - - - - - - - - + + - - + + - - + + - - LowerRelop1 + + lo - - + + - - + + - - boolean + + sfix16_En4 @@ -603,102 +635,59 @@ - - - + + + - - + + - - - - - - Ref1 - - - - - - - - Ref2 - - - - + + - - Prop + + 2 - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - + + u - - - - - - - - - - - + + + + + + + + + + + sfix16_En4 @@ -709,59 +698,44 @@ - - + + - + - + - - 3 + + 1 - + - - + + - - + + - - lo - - - - - - - - - - - - - - - sfix16_En4 + + hitMax @@ -772,58 +746,58 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - u + + up - + - - + + - + sfix16_En4 @@ -835,59 +809,75 @@ - - - + + + - - + + - + - - + + - - 1 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - up + + LowerRelop1 - - + + - - + + - - sfix16_En4 + + boolean @@ -896,278 +886,218 @@ - - - - - - - - - - - - - - - - - - + - + - + - - - - + - + - - - - - - - - - - - - - - - - - - - - - - + - + - + - + + + + + + + + - - - - + - + - + - + - + - - - - - - - - - - + - + - + - + - + - + - + - + - + - + + + + - + - + - + + + + + + + + - - - - + - + - + - - - - - - - - - - - + - + - + - + - + - + - - - - - - - - - - - - - + + - + - + - + @@ -1176,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json similarity index 69% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json index e6b35bf..774daaa 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:10", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2819", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"preSat", + "label":"preSat", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "Port", @@ -20,23 +20,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", - "OutMin", - "OutMax", + "[]", + "[]", "Inherit: auto", "off", "inherit", @@ -45,17 +39,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -75,43 +62,65 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:9", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2818", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"UpperRelop", - "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"preIntegrator", + "label":"preIntegrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "Port", + "IconDisplay", + "OutMin", + "OutMax", "OutDataTypeStr", - "RndMeth", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "<", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "boolean", - "Nearest", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 2, + 11 ] }, "viewer":{ @@ -120,44 +129,67 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:8", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2831", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"Clamp", + "label":"Clamp", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "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", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "OutMin", - "OutMax", - "Inherit: Inherit via back propagation", "off", - "Floor", + "[]", "off", + "held", "off", - "-1", "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -167,8 +199,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -177,55 +209,76 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:7", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2839", + "className":"Simulink.Signum", "icon":"WebViewIcon3", - "name":"Switch", - "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721: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:9721:2840", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv4", + "label":"DataTypeConv4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "Criteria", - "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", + "ConvertRealWorld", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "SampleTime" ], "values":[ - "u2 ~= 0", - "off", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Floor", - "off", + "int8", + "on", + "Real World Value (RWV)", + "Zero", "off", - "-1", - "0", - "off" + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 9 + 7 ] }, "viewer":{ @@ -234,44 +287,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:6", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2837", + "className":"Simulink.Signum", "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"SignDeltaU2", + "label":"SignDeltaU2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "ZeroCross", + "SampleTime" ], "values":[ - ">", - "off", - "boolean", - "Nearest", - "-1", - "on" + "on", + "-1" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -279,61 +318,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Signum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:5", - "className":"Simulink.SFunction", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2836", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Data Type Propagation", - "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "PropDataTypeMode", - "PropDataType", - "IfRefDouble", - "IfRefSingle", - "IsSigned", - "NumBitsBase", - "NumBitsMult", - "NumBitsAdd", - "NumBitsAllowFinal", - "PropScalingMode", - "PropScaling", - "ValuesUsedBestPrec", - "SlopeBase", - "SlopeMult", - "SlopeAdd", - "BiasBase", - "BiasMult", - "BiasAdd" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "Inherit via propagation rule", - "fixdt(1, 16)", - "double", - "single", - "IsSigned1", - "NumBits1", - "1", - "0", - "1:128", - "Inherit via propagation rule", - "2^-10", - "[5 -7]", - "Slope1", - "1", - "0", - "Bias1", - "1", - "0" + "[]", + "[]", + "int8", + "on", + "Real World Value (RWV)", + "Zero", + "off", + "-1" ], "tabs":[ + "Parameter Attributes", + "-Other" ], "tabs_idx":[ + 0, + 7 ] }, "viewer":{ @@ -342,28 +365,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"S-Function", - "masktype":"Data Type Propagation" + "blocktype":"DataTypeConversion", + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:4", - "className":"Simulink.DataTypeDuplicate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2841", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Data Type Duplicate", - "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"Equal1", + "label":"Equal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "NumInputPorts" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "2" + "==", + "on", + "Inherit: Logical (see Configuration Parameters: Optimization)", + "Zero", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Main", + "Data Type", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -371,17 +410,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeDuplicate", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2843", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"hitSat", + "label":"hitSat", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "Port", @@ -443,60 +482,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:2", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2838", + "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "name":"AND1", + "label":"AND1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SampleTime" ], "values":[ + "AND", "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", + "rectangular", "on", - "off", - "off", - "off" + "boolean", + "-1" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 5 ] }, "viewer":{ @@ -505,65 +522,102 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Logic", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:1", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"up", - "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2843#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "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:9721:2838#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ "", - "on", "off", "off", - "off" + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 5, + 7 ] }, "viewer":{ @@ -571,18 +625,16 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2841#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +680,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2840#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +731,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2836#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +782,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2839#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +833,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2837#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +884,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2819#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +935,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2818#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.png new file mode 100644 index 0000000..1e63ee1 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.svg new file mode 100644 index 0000000..a5620ba --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.svg @@ -0,0 +1,804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + preSat + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + preIntegrator + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Clamp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitSat + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json similarity index 61% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json index 5496d08..12a567c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json @@ -1,42 +1,72 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2527", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2785", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"out", + "label":"out", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "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", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", "-1", - "", - "", + "Inherit", + "-1", + "auto", + "off", "off", + "[]", + "off", + "held", + "off", + "0", + "", [ ], - "Auto" + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -45,47 +75,37 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2285", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2815", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"a_elecPeriod1", + "label":"a_elecPeriod1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "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", + "0", + "on", + "inf", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via back propagation", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -94,8 +114,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 3, + 7 ] }, "viewer":{ @@ -104,57 +124,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2293", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2817", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "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", - "-+|", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", + "0", + "Inherited", + "-1", + "", + "", "off", - "1", - "All dimensions", - "-1" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 3, + 4 ] }, "viewer":{ @@ -163,17 +174,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2284", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2781", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum2", "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "IconShape", @@ -192,7 +203,7 @@ ], "values":[ "rectangular", - "+++", + "++", "off", "Inherit: Inherit via internal rule", "[]", @@ -227,165 +238,268 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2273", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "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":[ - "**", - "Element-wise(.*)", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", "off", - "[]", - "[]", - "fixdt(1,16,5)", "off", - "Simplest", + "off", + "-1", + "Auto", + "Auto", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", "on", - "1", - "All dimensions", - "-1" + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 9 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2292", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "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":[ - "**", - "Element-wise(.*)", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", + "Auto", + "", + "", "off", - "Simplest", + "", + "void_void", "off", - "1", - "All dimensions", - "-1" + "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", - "Signal Attributes", + "Code Generation", "-Other" ], "tabs_idx":[ 0, - 2, - 9 + 5, + 6 ] }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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":"Product", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2833", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" + "b_hitMin", + "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":"From", + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2272", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2778", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "Inputs", @@ -407,7 +521,7 @@ "off", "[]", "[]", - "Inherit: Inherit via internal rule", + "fixdt(1,16,5)", "off", "Simplest", "on", @@ -437,61 +551,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2396", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2832", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "b_hitMax", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -499,55 +577,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2254", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2776", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "7", - "Port number", + "**", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", + "Inherit: Inherit via internal rule", "off", + "Simplest", "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -557,7 +625,7 @@ "tabs_idx":[ 0, 2, - 11 + 9 ] }, "viewer":{ @@ -566,84 +634,116 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2291", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "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" - ], + "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", - "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:9163:2251", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "Port", @@ -665,7 +765,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "5", "Port number", "[]", "[]", @@ -705,12 +805,45 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2253", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2795", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2732", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"satMax", "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "Port", @@ -732,7 +865,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "4", "Port number", "[]", "[]", @@ -772,12 +905,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2290", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2771", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "Port", @@ -792,20 +925,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -817,17 +944,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -847,114 +967,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "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_hitSat", + "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:9163:2250", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2770", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"err", - "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"P", + "label":"P", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "Port", @@ -976,7 +1030,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -1016,22 +1070,171 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2252", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2845", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "Port", - "IconDisplay", + "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:9721:2814", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", + "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:9721:2783", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2773", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", "VarSizeSig", "SampleTime", "SignalType", @@ -1043,7 +1246,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "6", "Port number", "[]", "[]", @@ -1083,12 +1286,430 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2273#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2769", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2844", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"AND1", + "label":"AND1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "OR", + "2", + "rectangular", + "on", + "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:9721:2791#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2846#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2844#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2833#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2832#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2817#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "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:9721:2816#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1134,12 +1755,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2814#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1185,12 +1806,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2284#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1236,12 +1857,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2291#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1287,12 +1908,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1338,12 +1959,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2285#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1389,12 +2010,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2527#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1440,12 +2061,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2293#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1491,12 +2112,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2292#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1542,12 +2163,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2272#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2770#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1593,12 +2214,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2252#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1644,12 +2265,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2250#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1695,12 +2316,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2253#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1746,12 +2367,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2254#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1797,12 +2418,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2251#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2773#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1848,12 +2469,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2396#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.png new file mode 100644 index 0000000..92c294c Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg similarity index 53% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg index 7ff3a5b..aa3a47f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg @@ -1,23 +1,23 @@ - + - + - + - - + + - + @@ -27,29 +27,29 @@ - + 1 - + - + - + - + out @@ -61,45 +61,93 @@ - - - + + + - + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + @@ -114,38 +162,38 @@ - + - - - + + + - - + + - - sfix32_En20 + + Ini=0 - - - + + + - - + + - - Ini=0 + + boolean @@ -156,60 +204,68 @@ - - - + + + - - + + - - + + - - + + - - + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -220,80 +276,198 @@ - - - + + + - - + + - - + + - - + + up - - + + - - + + u - - + + + + + + lo + + + + + + + + hitMax + + + + + + + + y + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + boolean - + - - + + - + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + @@ -302,25 +476,25 @@ - + - + - + u - + - + y @@ -333,7 +507,7 @@ - + @@ -346,15 +520,15 @@ - + - - + + - + Integrator @@ -367,15 +541,15 @@ - + - - + + - + sfix16_En4 @@ -387,90 +561,35 @@ - + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [b_hitMax] - - - - - - - - - - - - - - - - - sfix32_En20 + + @@ -481,108 +600,100 @@ - - - + + + - - + + - + - - + + - - + + [b_hitMin] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + boolean - - + + + + + + + + + + + + - - - - - - up - - - - - - - - u - - - - + + - - lo + + - - + + - - y + + - - + + - + - - + + - - sfix16_En4 + + sfix16_En5 @@ -593,52 +704,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [b_hitMax] - - + + - - + + - - + + - - sfix32_En20 + + boolean @@ -649,51 +752,51 @@ - - + + - + - - + + - - + + - - + + - - + + - + - + - - + + - + sfix32_En20 @@ -705,115 +808,671 @@ - - + + + + + + + + + + + + + + + + + + + + + + preIntegrator + + + + + + + + preSat + + + + + + + + hitSat + + + + + + + + Clamp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clamping_circuit + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - 7 + + 3 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + P + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + - - + + - - satMin + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - + + T - - + + - - + + F - - + + - - + + - - + + - - sfix16_En5 + + sfix32_En20 @@ -824,122 +1483,68 @@ - - - + + + - - + + - - + + - - 6 - - - - - - - - - - - - - - + + - - + + - - satMax - - - - - - - + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - 4 + + - - - - - - - - - - - - - - - - - Kb + + - - + + - - + + - - ufix16_En16 + + sfix16_En4 @@ -950,59 +1555,59 @@ - - + + - + - + - - 3 + + 6 - + - - + + - - + + - - I + + ext_limProt - - + + - - + + - - ufix16_En16 + + sfix32_En20 @@ -1013,59 +1618,59 @@ - - + + - + - + - - 5 + + 1 - + - - + + - - + + - - ext_limProt + + err - - + + - - + + - - sfix16_En10 + + sfix16_En4 @@ -1076,415 +1681,437 @@ - - - + + + - - + + - + - - + + - - 2 + + + + + + + + + + - - - - + - - - + + + - - + + - - P + + boolean - - - - - - - - - - - ufix16_En12 + + + + + + + - + - - - + + + - - + + - - - - - - - - 1 - - + + + + + + + + + - - - - - - + + - - - - - - - - - - - err - - + + + + + + + + + + + + - - - - - - - - - - - sfix16_En4 - - + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + - + + + + + - + - + + + + + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + - + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json index d1a8906..a2791be 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json @@ -1,11 +1,91 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2528", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2790", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "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:9728:2789", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay", "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ "InitialCondition", @@ -50,40 +130,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2697", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2788", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "ConvertRealWorld", "RndMeth", "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", "SampleTime" ], "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Same as first input", "off", - "Real World Value (RWV)", - "Floor", + "Simplest", "off", + "1", + "All dimensions", "-1" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 7 + 2, + 10 ] }, "viewer":{ @@ -92,65 +184,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2276", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2787", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "1", - "Port number", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", + "fixdt(1,16,4)", "off", + "Real World Value (RWV)", + "Floor", "off", - "off" + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 7 ] }, "viewer":{ @@ -159,17 +231,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2281", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2786", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ "Port", @@ -184,17 +256,11 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "1", @@ -209,17 +275,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -239,76 +298,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2279", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", - "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", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2697#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -354,12 +354,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2528#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2789#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -405,12 +405,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2279#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -456,12 +456,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2276#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg similarity index 92% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg index a7633da..2893451 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,102 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + @@ -71,35 +166,35 @@ - + - + - + - + - + - + - + - + @@ -117,11 +212,11 @@ - + - + sfix32_En20 @@ -133,7 +228,7 @@ - + @@ -143,19 +238,19 @@ - + - + - + - + @@ -181,11 +276,11 @@ - + - + sfix16_En4 @@ -197,7 +292,7 @@ - + @@ -207,11 +302,11 @@ - + - + 1 @@ -229,11 +324,11 @@ - + - + u @@ -244,11 +339,11 @@ - + - + sfix32_En20 @@ -258,102 +353,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - + @@ -367,7 +367,7 @@ - + @@ -381,7 +381,7 @@ - + @@ -415,7 +415,7 @@ - + @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.json similarity index 75% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.json index cb7b76b..d0cce58 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2710", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Port", @@ -33,10 +33,90 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "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:9728:2791:2377", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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", @@ -80,12 +160,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2707", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Operator", @@ -125,12 +205,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2848", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Criteria", @@ -149,16 +229,16 @@ "values":[ "u2 ~= 0", "off", - "OutMin", - "OutMax", + "[]", + "[]", "Inherit: Inherit via back propagation", "off", - "Floor", + "Zero", "off", "off", "-1", "0", - "off" + "on" ], "tabs":[ "Main", @@ -182,12 +262,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2849", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch", - "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Criteria", @@ -210,12 +290,12 @@ "[]", "Inherit: Inherit via back propagation", "off", - "Floor", + "Zero", "off", "off", "-1", "0", - "off" + "on" ], "tabs":[ "Main", @@ -239,12 +319,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2704", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Operator", @@ -284,56 +364,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:5", - "className":"Simulink.SFunction", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2709", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Data Type Propagation", - "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "name":"hitMax", + "label":"hitMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ - "PropDataTypeMode", - "PropDataType", - "IfRefDouble", - "IfRefSingle", - "IsSigned", - "NumBitsBase", - "NumBitsMult", - "NumBitsAdd", - "NumBitsAllowFinal", - "PropScalingMode", - "PropScaling", - "ValuesUsedBestPrec", - "SlopeBase", - "SlopeMult", - "SlopeAdd", - "BiasBase", - "BiasMult", - "BiasAdd" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "Inherit via propagation rule", - "fixdt(1, 16)", - "double", - "single", - "IsSigned1", - "NumBits1", - "1", - "0", - "1:128", - "Inherit via propagation rule", - "2^-10", - "[5 -7]", - "Slope1", "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", "0", - "Bias1", - "1", - "0" + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 2, + 11 ] }, "viewer":{ @@ -342,46 +439,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"S-Function", - "masktype":"Data Type Propagation" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:4", - "className":"Simulink.DataTypeDuplicate", - "icon":"WebViewIcon3", - "name":"Data Type Duplicate", - "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", - "inspector":{ - "params":[ - "NumInputPorts" - ], - "values":[ - "2" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeDuplicate", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2700", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Port", @@ -403,7 +471,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -443,12 +511,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2701", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Port", @@ -470,7 +538,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -510,12 +578,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2699", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "Port", @@ -577,12 +645,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2849#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +696,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +747,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +798,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +849,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +900,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +951,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2848#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9099", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.png new file mode 100644 index 0000000..68606bf Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg similarity index 64% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg index bfe4ff9..5849148 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg @@ -1,23 +1,23 @@ - + - + - + - - + + - + @@ -27,29 +27,77 @@ - - 1 + + 3 - + - - + + - + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + - + y @@ -61,29 +109,29 @@ - - + + - + - + - + - + - + @@ -98,37 +146,37 @@ - + - + - - + + - + UpperRelop - + - - + + - + boolean @@ -140,187 +188,187 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - T + + - + + + + + + + + + + + + + + + + + + + + + T + + + + - + F - - + + - + - - + + - + sfix16_En4 @@ -332,187 +380,187 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - T + + - + + + + + + + + + + + + + + + + + + + + + T + + + + - + F - - + + - + - - + + - + sfix16_En4 @@ -524,29 +572,29 @@ - - + + - + - + - + - + - + @@ -561,37 +609,37 @@ - + - + - - + + - + LowerRelop1 - + - - + + - + boolean @@ -603,102 +651,44 @@ - - - + + + - - + + - - - - - - Ref1 - - - - - - - - Ref2 - - - - + + - - Prop + + 1 - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - - - - - - - - - - - - - - - - + + hitMax @@ -709,58 +699,58 @@ - - + + - + - + - - 3 + + 2 - + - - + + - - + + - - lo + + u - + - - + + - + sfix16_En4 @@ -772,58 +762,58 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - u + + lo - + - - + + - + sfix16_En4 @@ -835,58 +825,58 @@ - - + + - + - + - + 1 - + - + - - + + - + up - + - - + + - + sfix16_En4 @@ -896,278 +886,218 @@ - - - - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - - - - + - + - - - - - - - - + - + - + - + + + + + + + + - - - - + - + - + - + - + - - - - - - - - - - + - + - + - + - + - + - + - + - + - + + + + - + - + - + + + + + + + + - - - - + - + - + - - - - - - - - - - - + - + - + - + - + - + - - - - - - - - - - - - - + + - + - + - + @@ -1176,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.json new file mode 100644 index 0000000..4e48957 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.json @@ -0,0 +1,988 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2819", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"preSat", + "label":"preSat", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2818", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"preIntegrator", + "label":"preIntegrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2831", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Clamp", + "label":"Clamp", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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:9728:2841", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Equal1", + "label":"Equal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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:9728:2840", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv4", + "label":"DataTypeConv4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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:9728:2836", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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:9728:2837", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU2", + "label":"SignDeltaU2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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:9728:2843", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"hitSat", + "label":"hitSat", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2838", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"AND1", + "label":"AND1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "2", + "rectangular", + "on", + "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:9728:2843#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2838#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2841#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2840#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2836#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2839#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2837#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2819#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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:9728:2818#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "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_9728_2816_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.png new file mode 100644 index 0000000..1e63ee1 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.svg new file mode 100644 index 0000000..3c80b1b --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.svg @@ -0,0 +1,804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + preSat + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + preIntegrator + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Clamp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitSat + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json similarity index 61% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json index ec796d8..9589a6b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2290", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2785", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"out", "label":"out", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Port", @@ -80,12 +80,69 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2527", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2814", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2817", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "InitialCondition", @@ -130,12 +187,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2293", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2783", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "IconShape", @@ -153,16 +210,16 @@ "SampleTime" ], "values":[ - "round", - "-+|", + "rectangular", + "++", "off", "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via internal rule", + "fixdt(1,16,4)", "off", "Simplest", - "off", + "on", "1", "All dimensions", "-1" @@ -189,42 +246,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2285", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2815", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"a_elecPeriod1", + "label":"a_elecPeriod1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "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", + "0", + "on", + "inf", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via back propagation", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -233,8 +280,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 3, + 7 ] }, "viewer":{ @@ -243,25 +290,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Integrator", "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "ShowPortLabels", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -273,7 +320,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -284,9 +330,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -296,7 +343,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -309,7 +356,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -319,18 +365,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 ] }, @@ -345,110 +394,169 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2284", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "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":[ - "rectangular", - "+++", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", "off", - "Simplest", + "off", + "-1", + "Auto", + "Auto", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", "on", - "1", - "All dimensions", - "-1" + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 10 ] }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2833", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2845", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" + "b_hitSat", + "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:9098:2292", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2776", "className":"Simulink.Product", "icon":"WebViewIcon3", "name":"Divide2", "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Inputs", @@ -500,17 +608,18 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2272", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2781", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ + "IconShape", "Inputs", - "Multiplication", "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", @@ -522,9 +631,10 @@ "SampleTime" ], "values":[ - "**", - "Element-wise(.*)", + "rectangular", + "++", "off", + "Inherit: Inherit via internal rule", "[]", "[]", "Inherit: Inherit via internal rule", @@ -543,7 +653,7 @@ "tabs_idx":[ 0, 2, - 9 + 10 ] }, "viewer":{ @@ -552,39 +662,103 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2254", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2846", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", + "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:9728:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2773", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", "OutputFunctionCall" ], "values":[ - "7", + "6", "Port number", "[]", "[]", @@ -624,12 +798,111 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2273", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2778", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Inputs", @@ -681,61 +954,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2253", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2832", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "b_hitMax", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -743,17 +980,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2291", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Port", @@ -775,7 +1012,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -815,12 +1052,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2252", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2771", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"I", "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Port", @@ -882,12 +1119,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2396", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2732", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Port", @@ -909,7 +1146,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -949,12 +1186,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2251", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2770", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"P", "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Port", @@ -1016,12 +1253,45 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2250", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2795", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2769", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"err", "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "Port", @@ -1083,12 +1353,363 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2273#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2844", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"AND1", + "label":"AND1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "OR", + "2", + "rectangular", + "on", + "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:9728:2791#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2846#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2844#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2833#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2832#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2817#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "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:9728:2816#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1134,12 +1755,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2814#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1185,12 +1806,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2284#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1236,12 +1857,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2291#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1287,12 +1908,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1338,12 +1959,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2285#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1389,12 +2010,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2527#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1440,12 +2061,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2293#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1491,12 +2112,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2292#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1542,12 +2163,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2272#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2770#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1593,12 +2214,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2252#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1644,12 +2265,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2250#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1695,12 +2316,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2253#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1746,12 +2367,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2254#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1797,12 +2418,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2251#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2773#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1848,12 +2469,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2396#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.png new file mode 100644 index 0000000..e9ea9b3 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg similarity index 51% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg index 13823fb..1c3db95 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg @@ -1,160 +1,754 @@ - + - + - + - - - + + + - - + + - + - - + + 1 + + + + + + + + + + + + + + - + + + + + out + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + hitMax + + + + + + + + y + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - sfix32_En20 + + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - + + boolean - - - + + + + + + + + + + + boolean - - - - + - - + + - - sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + @@ -165,108 +759,77 @@ - - - + + + - - + + - + - - + + - - + + [b_hitMin] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + boolean - - + + + + + + + + + + + + - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - + + - - y + + [b_hitSat] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -277,68 +840,52 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -349,52 +896,68 @@ - - - + + + - - + + - - + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - sfix16_En5 + + sfix32_En20 @@ -405,59 +968,44 @@ - - - + + + - - + + - - + + - - 7 + + [b_hitSat] - - - - - - - - - - - - - - - - - satMin + + - - + + - - + + - - sfix16_En4 + + boolean @@ -468,44 +1016,29 @@ - - - + + + - - + + - - + + - - 1 + + [b_hitMax] - - - - - - - - - - - - - - - - - out + + @@ -516,59 +1049,59 @@ - - + + - + - + - - 4 + + 6 - + - - + + - - + + - - Kb + + ext_limProt - - + + - - + + - - ufix16_En16 + + sfix16_En10 @@ -579,52 +1112,107 @@ - - - + + + - - + + + + + + + + - - + + - - + + preIntegrator - - + + + + + + preSat + + + + + + + + hitSat + + + + - - + + Clamp - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clamping_circuit - - + + + + + + + + - - + + - - sfix32_En20 + + boolean @@ -635,59 +1223,58 @@ - - - + + + + + + + + + - - + + - - + + - - 3 - - - - - - - - - - - - - - + + - - + + - - I + + + + + + + + + - - + + - - + + - - ufix16_En16 + + sfix16_En5 @@ -698,52 +1285,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [b_hitMax] - - + + - - + + - - + + - - sfix32_En20 + + boolean @@ -754,58 +1333,58 @@ - - + + - + - + - - 6 + + 5 - + - - + + - - + + - - satMax + + satMin - + - - + + - + sfix16_En4 @@ -817,91 +1396,59 @@ - - - + + + - - - - - - - - + + - - - - - - u - - - - + + - - y + + 3 - - - - - - - - + + - - - - - - - - + + - - + + - - Integrator + + I - - - - - - - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -912,65 +1459,59 @@ - - - - - - - - + + - + - + - - 2 + + 4 - + - - + + - - + + - - P + + satMax - - + + - - + + - - ufix16_En12 + + sfix16_En4 @@ -981,59 +1522,92 @@ - - + + - + - + - - 1 + + 2 - + - - + + - - + + - - err + + P - - + + - - + + - - sfix16_En4 + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + @@ -1044,59 +1618,59 @@ - - + + - + - + - - 5 + + 1 - + - - + + - - + + - - ext_limProt + + err - - + + - - + + - - sfix32_En20 + + sfix16_En4 @@ -1107,46 +1681,30 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + @@ -1155,336 +1713,405 @@ - + + + + + + + + + + + boolean + - - + + - - - - - - - - - - Ini=0 - - - - - - - - - - - - sfix32_En20 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + - + + + + + - + - + + + + + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + - + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json index 87b1c4d..db12f10 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2281", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2790", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "Port", @@ -80,12 +80,62 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2279", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2789", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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:9729:2788", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum1", "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "IconShape", @@ -139,12 +189,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2697", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2787", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", "name":"Data Type Conversion1", "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "OutMin", @@ -186,12 +236,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2276", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2786", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "Port", @@ -253,62 +303,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2528", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", - "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:9132:2697#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -354,12 +354,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2528#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2789#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -405,12 +405,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2279#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -456,12 +456,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2276#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg similarity index 91% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg index a241ba3..80ec1c9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,67 +61,90 @@ - - - + + + - - + + - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + - - + + + + + + + + + + + + + + + + + Ini=0 - - + + - - + + - + sfix32_En20 @@ -133,60 +156,68 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -197,46 +228,30 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + @@ -250,38 +265,23 @@ - - - - - - - - - - - - - - - - - Ini=0 + + - - + + - + - - sfix32_En20 + + sfix16_En4 @@ -292,7 +292,7 @@ - + @@ -353,7 +353,7 @@ - + @@ -367,7 +367,7 @@ - + @@ -381,7 +381,7 @@ - + @@ -415,7 +415,7 @@ - + @@ -431,5 +431,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.json similarity index 75% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.json index 75a2eeb..fa51144 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2710", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "Port", @@ -33,10 +33,10 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "3", "Port number", - "OutMin", - "OutMax", + "[]", + "[]", "Inherit: auto", "off", "inherit", @@ -80,38 +80,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:9", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2377", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"UpperRelop", - "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "Port", + "IconDisplay", + "OutMin", + "OutMax", "OutDataTypeStr", - "RndMeth", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "<", + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "boolean", - "Nearest", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 2, + 11 ] }, "viewer":{ @@ -120,17 +155,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2848", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "Criteria", @@ -149,16 +184,16 @@ "values":[ "u2 ~= 0", "off", - "OutMin", - "OutMax", + "[]", + "[]", "Inherit: Inherit via back propagation", "off", - "Floor", + "Zero", "off", "off", "-1", "0", - "off" + "on" ], "tabs":[ "Main", @@ -182,50 +217,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:7", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2707", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Switch", - "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ - "Criteria", + "Operator", "InputSameDT", - "OutMin", - "OutMax", "OutDataTypeStr", - "LockScale", "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", "SampleTime", - "Threshold", "ZeroCross" ], "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Floor", - "off", + "<", "off", + "boolean", + "Nearest", "-1", - "0", - "off" + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, 1, - 9 + 4 ] }, "viewer":{ @@ -234,17 +257,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2704", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "Operator", @@ -284,56 +307,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:5", - "className":"Simulink.SFunction", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2849", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Data Type Propagation", - "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ - "PropDataTypeMode", - "PropDataType", - "IfRefDouble", - "IfRefSingle", - "IsSigned", - "NumBitsBase", - "NumBitsMult", - "NumBitsAdd", - "NumBitsAllowFinal", - "PropScalingMode", - "PropScaling", - "ValuesUsedBestPrec", - "SlopeBase", - "SlopeMult", - "SlopeAdd", - "BiasBase", - "BiasMult", - "BiasAdd" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "Inherit via propagation rule", - "fixdt(1, 16)", - "double", - "single", - "IsSigned1", - "NumBits1", - "1", - "0", - "1:128", - "Inherit via propagation rule", - "2^-10", - "[5 -7]", - "Slope1", - "1", + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", "0", - "Bias1", - "1", - "0" + "on" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 1, + 9 ] }, "viewer":{ @@ -342,28 +359,66 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"S-Function", - "masktype":"Data Type Propagation" + "blocktype":"Switch", + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:4", - "className":"Simulink.DataTypeDuplicate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2701", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Data Type Duplicate", - "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ - "NumInputPorts" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "2" + "3", + "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" @@ -371,17 +426,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeDuplicate", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2700", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "Port", @@ -403,7 +458,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -443,12 +498,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2699", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "Port", @@ -470,7 +525,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -510,12 +565,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:1", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2709", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"up", - "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "name":"hitMax", + "label":"hitMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "Port", @@ -530,11 +585,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ "1", @@ -549,10 +610,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -572,17 +640,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2849#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +696,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +747,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +798,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +849,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +900,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +951,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2848#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.png new file mode 100644 index 0000000..68606bf Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg similarity index 59% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg index bdc648f..c0a8c3e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg @@ -1,23 +1,23 @@ - + - + - + - - + + - + @@ -27,30 +27,30 @@ - - 1 + + 3 - + - - + + - + - - y + + hitMin @@ -61,75 +61,44 @@ - - - + + + - - + + - + - - - - - - - - - + - - + + 2 - - - - - - - - - - + + - - - - - - - - - - UpperRelop - - - - - - - + + - - + + - - boolean + + y @@ -140,187 +109,187 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + T - - + + - + F - - + + - + - - + + - + sfix16_En4 @@ -332,188 +301,75 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + - - + + - - + + - - - - - - - + + + + + + + + + + + + + + - - - - - - - T + + + + + + - - + + - - F - - - - - - - + + UpperRelop - - + + - - + + - - sfix16_En4 + + boolean @@ -524,29 +380,29 @@ - - + + - + - + - + - + - + @@ -561,37 +417,37 @@ - + - + - - + + - + LowerRelop1 - + - - + + - + boolean @@ -603,102 +459,188 @@ - - - + + + - - + + - - + + - - Ref1 + + - - + + - - Ref2 + + - - + + - - Prop + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - - - - + + + + - - - + + + + + + + + + + + sfix16_En4 @@ -709,58 +651,58 @@ - - + + - + - + - + 3 - + - + - - + + - + lo - + - - + + - + sfix16_En4 @@ -772,58 +714,58 @@ - - + + - + - + - + 2 - + - + - - + + - + u - + - - + + - + sfix16_En4 @@ -835,58 +777,58 @@ - - + + - + - + - + 1 - + - + - - + + - + up - + - - + + - + sfix16_En4 @@ -896,278 +838,266 @@ - + - - - + + + - - - - - - + + - - + + + + + + + + + 1 + + - - - - - + + + + + - - + + + + + + + + + + + + hitMax + + - - - - + - - + + - - - - - + - - - - - - + + + - + - + - + - + - + + + + + + + + - - - - + - + - + - + - + - - - - - - - - - - + - + - + - + - + - + - + - + - + - + + + + - + - + - + + + + + + + + - - - - + - + - + - - - - - - - - - - - + - + - + - + - + - + - - - - - - - - - - - - - + + - + - + - + @@ -1176,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.json new file mode 100644 index 0000000..73f9eaa --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.json @@ -0,0 +1,988 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2819", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"preSat", + "label":"preSat", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2818", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"preIntegrator", + "label":"preIntegrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2831", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Clamp", + "label":"Clamp", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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:9729:2837", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU2", + "label":"SignDeltaU2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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:9729:2840", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv4", + "label":"DataTypeConv4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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:9729:2836", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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:9729:2843", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"hitSat", + "label":"hitSat", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2841", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Equal1", + "label":"Equal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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:9729:2838", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"AND1", + "label":"AND1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "2", + "rectangular", + "on", + "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:9729:2843#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2838#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2841#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2840#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2836#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2839#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2837#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2819#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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:9729:2818#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "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_9729_2816_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.png new file mode 100644 index 0000000..1e63ee1 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.svg new file mode 100644 index 0000000..5070b50 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.svg @@ -0,0 +1,804 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + preSat + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + preIntegrator + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Clamp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitSat + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json similarity index 61% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json index 029b011..494b2e2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json @@ -1,41 +1,89 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2284", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2817", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "IconShape", - "Inputs", + "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:9729:2814", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "inspector":{ + "params":[ + "Criteria", "InputSameDT", - "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "rectangular", - "+++", + "u2 ~= 0", "off", - "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via internal rule", + "Inherit: Inherit via back propagation", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "Zero", + "off", + "off", + "-1", + "0", + "on" ], "tabs":[ "Main", @@ -44,8 +92,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 1, + 9 ] }, "viewer":{ @@ -54,17 +102,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2293", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2781", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "IconShape", @@ -82,8 +130,8 @@ "SampleTime" ], "values":[ - "round", - "-+|", + "rectangular", + "++", "off", "Inherit: Inherit via internal rule", "[]", @@ -91,7 +139,7 @@ "Inherit: Inherit via internal rule", "off", "Simplest", - "off", + "on", "1", "All dimensions", "-1" @@ -118,28 +166,82 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "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":[ - "[]", - "[]", - "Inherit: Same as second input", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", "off", - "Floor", - "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":[ ], @@ -153,57 +255,31 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2285", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2795", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "b_hitMin", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -211,56 +287,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2273", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2832", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "b_hitMax", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -268,17 +318,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2254", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2785", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"out", + "label":"out", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "Port", @@ -293,14 +343,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "1", "Port number", "[]", "[]", @@ -312,90 +368,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "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:9132:2290", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", - "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", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -420,50 +403,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2291", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2778", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "4", - "Port number", + "**", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "fixdt(1,16,5)", "off", - "", + "Simplest", "on", - "off", - "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -473,7 +446,7 @@ "tabs_idx":[ 0, 2, - 11 + 9 ] }, "viewer":{ @@ -482,17 +455,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2292", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2776", "className":"Simulink.Product", "icon":"WebViewIcon3", "name":"Divide2", "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "Inputs", @@ -544,107 +517,131 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2252", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "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":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Auto", + "", + "", "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", + "-1", + "", + "off", + "on", + "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:9132:2272", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2815", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"a_elecPeriod1", + "label":"a_elecPeriod1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "FramePeriod" ], "values":[ - "**", - "Element-wise(.*)", - "off", + "0", + "on", + "inf", "[]", "[]", - "Inherit: Inherit via internal rule", + "Inherit: Inherit via back propagation", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -653,8 +650,8 @@ ], "tabs_idx":[ 0, - 2, - 9 + 3, + 7 ] }, "viewer":{ @@ -663,92 +660,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2253", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", - "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":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "ShowPortLabels", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -760,7 +690,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -771,9 +700,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -783,7 +713,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -796,7 +726,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -806,18 +735,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 ] }, @@ -832,12 +764,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2251", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2833", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "Port", @@ -859,7 +853,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "5", "Port number", "[]", "[]", @@ -899,12 +893,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2250", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2773", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"err", - "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "Port", @@ -926,7 +920,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "6", "Port number", "[]", "[]", @@ -966,12 +960,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2396", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2732", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "Port", @@ -993,7 +987,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -1033,43 +1027,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2527", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2771", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "0", - "Inherited", + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", "-1", + "Inherit", + "-1", + "auto", + "off", "", - "", + "on", "off", - [ - ], - "Auto" + "off", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -1078,17 +1089,627 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2783", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9132:2273#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2770", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"P", + "label":"P", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2769", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2844", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"AND1", + "label":"AND1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "OR", + "2", + "rectangular", + "on", + "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:9729:2791#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2846#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2844#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2833#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2832#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2817#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "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:9729:2816#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1134,12 +1755,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2814#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1185,12 +1806,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2284#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1236,12 +1857,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2291#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1287,12 +1908,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1338,12 +1959,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2285#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1389,12 +2010,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2527#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1440,12 +2061,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2293#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1491,12 +2112,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2292#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1542,12 +2163,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2272#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2770#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1593,12 +2214,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2252#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1644,12 +2265,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2250#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1695,12 +2316,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2253#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1746,12 +2367,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2254#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1797,12 +2418,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2251#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2773#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1848,12 +2469,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2396#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.png new file mode 100644 index 0000000..92c294c Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg similarity index 54% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg index 2d5b32d..5228965 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg @@ -1,23 +1,23 @@ - + - + - + - - + + - + @@ -27,7 +27,7 @@ - + @@ -35,7 +35,7 @@ - + @@ -43,7 +43,7 @@ - + @@ -51,7 +51,7 @@ - + @@ -66,38 +66,38 @@ - + - - - + + + - + - - Ini=0 + + boolean - - - + + + - + - - sfix32_En20 + + Ini=0 @@ -108,219 +108,187 @@ - - - + + + - - + + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - + - + - - sfix16_En4 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - + - + - + - + - - - - - - - - - - - - - - - + - + - - sfix16_En4 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + T + + + + + + + + F - - + + - + - - + + - + sfix32_En20 @@ -332,107 +300,67 @@ - - - + + + - - + + - - - - - - - - - - + + - - - - - - - - - - - - - - - - + + - - + + - - sfix16_En5 + + - - - - - - - - - - - - - - - - - - - + - + - + - + - - + + - - + + - + - + sfix32_En20 @@ -444,108 +372,267 @@ - - - + + + - - + + - + - + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + hitMax + + + + - - + + y - + - - + + hitMin - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + + + + - + + + + - - + + - - up + + boolean + + + + + + + - - + + - - u + + sfix16_En4 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - lo + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - y + + [b_hitMax] - - + + - - + + - - + + - - sfix16_En4 + + boolean @@ -556,52 +643,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + 1 - - + + - - - + + + - + - - sfix32_En20 + + out @@ -612,58 +691,595 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + preIntegrator + + + + + + + + preSat + + + + + + + + hitSat + + + + + + + + Clamp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clamping_circuit + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + - - 5 + + 6 - + - + - - + + - + ext_limProt - + - - + + - + sfix32_En20 @@ -675,58 +1291,58 @@ - - + + - + - + - - 7 + + 4 - + - - + + - - + + - - satMin + + satMax - + - - + + - + sfix16_En4 @@ -738,58 +1354,58 @@ - - + + - + - + - - 4 + + 3 - + - - + + - - + + - - Kb + + I - + - - + + - + ufix16_En16 @@ -801,59 +1417,68 @@ - - - + + + - - + + - - + + - - 2 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - P + + + + + + + + + - - + + - - + + - - ufix16_En12 + + sfix16_En4 @@ -864,59 +1489,59 @@ - - + + - + - + - - 6 + + 2 - + - - + + - - + + - - satMax + + P - - + + - - + + - - sfix16_En4 + + ufix16_En12 @@ -927,44 +1552,29 @@ - - - + + + - - + + - - + + - - 1 + + [b_hitMax] - - - - - - - - - - - - - - - - - out + + @@ -975,91 +1585,29 @@ - - - + + + - - - - - - - - + + - - - - - - u - - - - + + - - y + + [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Integrator - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1070,64 +1618,58 @@ - - - - - - - - + + - + - + - + 1 - + - + - - + + - + err - + - - + + - + sfix16_En4 @@ -1139,352 +1681,437 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + - - - - + - - - + + + - - + + - - I + + boolean - - - - - - - - - - - ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + - + + + + + - + - + + + + + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + - + + + + - + 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 8d07d60..0cc667c 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 @@ -23,9 +23,9 @@ 15, 26, 29, - 66, - 67, - 68 + 68, + 69, + 70 ], "name":"BLDC_controller", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller", @@ -38,102 +38,101 @@ ":9309", ":9308", ":9307", + ":9301", + ":9441", ":9306", - ":9305", - ":9303", - ":9302", - ":9298", - ":9669", ":9293", - ":9304", - ":9291", - ":9389", - ":9289", - ":9288", - ":9284", + ":9282", ":9281", - ":9283", + ":9302", + ":9280", + ":9288", + ":9286", + ":9285", + ":9272", + ":9277", ":9276", ":9275", - ":9277", - ":9270", - ":9269", + ":9456", ":9437", - ":9252", + ":9392", ":9251", - ":9250", - ":9274", ":9297", + ":9241", + ":9290", + ":9389", ":9263", - ":9441", - ":9271", + ":9418", ":9268", + ":9267", ":9265", - ":9287", - ":9286", - ":9264", + ":9304", ":9260", - ":9674", - ":9418", ":9261", - ":9301", ":9258", + ":9264", ":9257", - ":9436", - ":9292", - ":9294", + ":9284", + ":9279", + ":9387", + ":9253", + ":9298", ":9249", + ":9248", ":9448", - ":9299", - ":9285", + ":9720", ":9244", - ":9241", ":9240", - ":9198", + ":9294", + ":9252", + ":9385", + ":9291", + ":9274", + ":9289", + ":9436", ":9245", - ":9290", + ":9292", + ":9287", + ":9242", + ":9300", + ":8658", ":8535", + ":9278", + ":9198", + ":9299", + ":9266", ":9388", - ":9262", - ":9253", - ":9242", - ":9295", - ":9280", + ":9250", + ":9269", + ":8469", ":8220", - ":9278", - ":9259", ":8217", - ":9385", + ":8216", ":8215", - ":9279", - ":8213", + ":9303", ":8214", ":8212", - ":8218", - ":8210", - ":8658", - ":9456", - ":8208", - ":9387", - ":9248", - ":8207", - ":9392", + ":8213", ":8211", + ":9283", + ":9669", + ":8209", ":8205", ":8204", - ":9393", - ":9300", - ":9266", - ":8469", + ":9259", ":8203", - ":9272", - ":8202", + ":8210", + ":9270", ":8206", - ":9282", - ":8216", + ":9305", + ":9295", + ":9271", + ":8202", + ":9262", ":8201", - ":9267", - ":8209", + ":8218", + ":8207", + ":8208", ":9268#out:1", ":8469#out:2", ":8215#out:1", @@ -198,7 +197,6 @@ ":9387#out:1", ":9388#out:1", ":8220#out:1", - ":8535#out:2", ":9392#out:1", ":9418#out:1", ":9436#out:1", @@ -211,7 +209,7 @@ ":9669#out:1", ":9263#out:1", ":9262#out:1", - ":9674#out:1" + ":9720#out:1" ], "sameAsElement":true }, @@ -264,46 +262,46 @@ ":8464", ":8426", ":8428", - ":9433", - ":8467", + ":8468", + ":8466", ":9383", - ":8461", + ":8467", ":8460", - ":8462", + ":8463", + ":8458", ":9432", ":9384", - ":9379", - ":9377", - ":8455", - ":9382", + ":9433", + ":8451", + ":8450", + ":8449", ":8437", ":8436", - ":8434", - ":8449", + ":9381", ":8432", - ":8458", - ":8435", - ":8446", - ":8430", ":9431", - ":8450", - ":8427", + ":8431", + ":8435", + ":8429", ":9380", - ":8424", + ":8427", ":8384", + ":8455", ":9374", - ":8457", - ":8429", - ":8468", - ":8451", + ":8430", + ":8434", + ":8462", + ":8446", ":9333", - ":9378", - ":8463", - ":9381", - ":8431", - ":8466", - ":8224", + ":8457", + ":8424", + ":9377", ":9375", + ":9379", + ":8224", + ":9382", + ":8461", + ":9378", ":8462#out:1", ":8440#out:1", ":8439#out:1", @@ -373,36 +371,36 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.json", "elements":[ ":9373", - ":9372", - ":9371", - ":9370", ":9369", - ":9367", - ":9365", ":9368", - ":9364", - ":9363", - ":9361", + ":9370", + ":9367", ":9366", - ":9341", - ":9335", + ":9362", + ":9361", ":9337", - ":9334", + ":9335", + ":9372", + ":9363", ":9336", - ":9362", - ":9337#out:1", + ":9364", + ":9334", + ":9371", + ":9365", + ":9341", ":9364#out:1", ":9362#out:1", - ":9370#out:1", ":9334#out:1", ":9363#out:1", - ":9341#out:1", ":9361#out:1", ":9335#out:1", ":9371#out:1", - ":9370#out:2", ":9365#out:1", - ":9336#out:1" + ":9336#out:1", + ":9341#out:1", + ":9370#out:1", + ":9337#out:1", + ":9370#out:2" ], "sameAsElement":true }, @@ -443,25 +441,25 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.json", "elements":[ - ":9360", - ":9359", + ":9358", + ":9357", ":9355", ":9354", - ":9353", - ":9350", - ":9349", ":9352", - ":9358", - ":9347", - ":9351", - ":9357", + ":9349", + ":9359", + ":9348", + ":9346", ":9345", ":9344", + ":9347", ":9343", - ":9342", - ":9346", + ":9350", + ":9353", ":9356", - ":9348", + ":9342", + ":9351", + ":9360", ":9342#out:1", ":9347#out:1", ":9343#out:1", @@ -498,9 +496,9 @@ ":8227", ":8228", ":8234", + ":8233", ":8232", ":8231", - ":8233", ":9634", ":8226#out:1", ":8228#out:1", @@ -575,9 +573,9 @@ ":8258", ":8251", ":8252", - ":8260", ":8262", ":8259", + ":8260", ":8249", ":8259#out:1", ":8255#out:1", @@ -628,62 +626,62 @@ ":8290", ":8266", ":8296", - ":8379", - ":8378", + ":9430", ":8376", ":8374", - ":8373", ":9429", ":8372", + ":8371", ":8370", ":8369", - ":8367", + ":9428", ":8366", - ":8371", - ":9430", - ":8306", - ":9427", + ":8313", + ":8311", + ":8312", + ":8367", ":8305", - ":8301", - ":8304", ":8300", - ":8299", - ":8294", - ":8293", - ":9425", + ":8303", ":8297", + ":8308", + ":8306", + ":9425", + ":8294", + ":8293", + ":8289", ":8288", + ":9427", + ":9477", + ":8373", ":8291", - ":8286", - ":8303", - ":8308", ":8285", - ":8283", - ":8280", - ":9428", - ":8276", - ":8292", - ":8281", - ":8311", ":8278", - ":8269", - ":8314", - ":8282", - ":8275", - ":8267", + ":8281", ":8277", + ":8379", + ":8276", + ":8314", + ":8377", + ":8378", + ":8286", + ":8298", ":8270", - ":8272", + ":8269", + ":8292", ":8268", ":9426", - ":8289", - ":8312", - ":8313", - ":8264", - ":8377", + ":8267", ":8284", - ":9477", - ":8298", + ":8282", + ":8299", + ":8275", + ":8301", + ":8280", + ":8272", + ":8304", + ":8283", + ":8264", ":8310", ":8309", ":8293#out:1", @@ -757,10 +755,10 @@ "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:2418", ":8272:2413", ":8272:2412", ":8272:2414", @@ -822,51 +820,51 @@ ":8363", ":8364", ":8365", - ":8360", - ":8357", + ":8359", ":8356", - ":8355", ":8354", + ":8353", + ":8357", + ":8352", + ":8351", + ":8350", ":8348", ":8347", ":8346", - ":8345", - ":8341", - ":8340", - ":8339", - ":8338", - ":8342", ":8344", - ":8333", + ":8342", + ":8355", ":8332", - ":8329", - ":8350", - ":8358", - ":8327", + ":8341", + ":8337", ":8331", ":8325", - ":8353", - ":8328", + ":8335", ":8323", - ":8324", - ":8322", - ":8321", - ":8334", - ":8349", - ":8318", + ":8360", + ":8336", ":8320", - ":8352", - ":8330", - ":8317", + ":8349", + ":8328", ":8326", + ":8339", + ":8321", ":8319", - ":8359", + ":8322", + ":8324", + ":8345", + ":8318", + ":8317", + ":8358", + ":8338", + ":8329", + ":8333", ":8316", - ":8335", - ":8337", - ":8351", + ":8340", + ":8330", + ":8327", + ":8334", ":8315", - ":8336", ":8343", ":8315#out:1", ":8316#out:1", @@ -942,28 +940,28 @@ ":8413", ":8416", ":8391", - ":8420", - ":8417", ":8421", + ":8418", ":9664", ":9660", - ":8403", + ":8411", + ":8410", + ":8405", ":8412", + ":8404", + ":8403", + ":8400", ":8398", ":8397", - ":8404", - ":8410", + ":8395", ":8394", ":8393", - ":8392", - ":9665", + ":8420", ":8389", - ":8411", - ":8400", - ":8395", ":8396", - ":8418", - ":8405", + ":8417", + ":9665", + ":8392", ":8385#out:1", ":8386#out:1", ":8399#out:1", @@ -1027,48 +1025,48 @@ ":8499", ":8497", ":8527", - ":8524", - ":8521", + ":9405", ":8520", - ":8519", ":8515", - ":8514", ":9404", ":8510", ":8508", - ":9406", - ":8504", - ":9397", - ":8493", - ":8491", - ":9400", - ":8503", - ":9398", ":8525", - ":9408", - ":8486", + ":9395", + ":8503", + ":8517", + ":8521", ":8494", + ":8493", + ":8491", + ":9402", + ":8500", + ":9406", + ":8487", ":8484", - ":8483", + ":8492", + ":8482", + ":9398", ":9412", - ":9402", - ":8509", - ":8479", + ":8483", + ":8480", ":9407", + ":8479", ":8478", - ":9410", - ":8492", - ":8517", - ":9395", - ":8500", + ":8519", + ":9400", ":8474", + ":9408", ":9394", + ":8524", + ":9410", ":9396", - ":9405", - ":8487", + ":8509", + ":9397", + ":8486", + ":8504", + ":8514", ":9403", - ":8482", - ":8480", ":9401", ":8497#out:1", ":8470#out:1", @@ -1130,39 +1128,39 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_d.json", "elements":[ - ":8486:2496", ":8486:2509", ":8486:2473", - ":8486:2472", + ":8486:2466", ":8486:2465", - ":8486:2462", + ":8486:2464", + ":8486:2507", ":8486:2461", - ":8486:2460", ":8486:2459", - ":8486:2464", - ":8486:2457", - ":8486:2463", + ":8486:2472", ":8486:2458", - ":8486:2467", - ":8486:2452", - ":8486:2449", + ":8486:2456", + ":8486:2454", ":8486:2453", - ":8486:2448", - ":8486:2455", ":8486:2451", - ":8486:2507", + ":8486:2449", + ":8486:2463", + ":8486:2467", ":8486:2428", - ":8486:2423", - ":8486:2454", ":8486:2450", + ":8486:2448", + ":8486:2462", + ":8486:2452", + ":8486:2423", + ":8486:2457", ":8486:2421", - ":8486:2466", - ":8486:2456", + ":8486:2496", ":8486:2422", + ":8486:2455", + ":8486:2460", ":8486:2420", ":8486:2471", - ":8486:2470", ":8486:2469", + ":8486:2470", ":8486:2468", ":8486:2507#out:1", ":8486:2422#out:1", @@ -1235,25 +1233,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:2446", ":8486:2447", - ":8486:2438", - ":8486:2436", + ":8486:2445", ":8486:2443", - ":8486:2437", - ":8486:2435", - ":8486:2434", + ":8486:2442", ":8486:2439", - ":8486:2445", + ":8486:2446", ":8486:2441", - ":8486:2432", ":8486:2440", + ":8486:2432", + ":8486:2434", + ":8486:2430", + ":8486:2435", + ":8486:2438", ":8486:2444", ":8486:2431", - ":8486:2430", - ":8486:2442", - ":8486:2429", ":8486:2433", + ":8486:2429", + ":8486:2436", + ":8486:2437", ":8486:2438#out:1", ":8486:2429#out:1", ":8486:2430#out:1", @@ -1287,12 +1285,12 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2435_d.json", "elements":[ ":8486:2435:2418", - ":8486:2435:2515", ":8486:2435:2416", - ":8486:2435:2415", ":8486:2435:2414", ":8486:2435:2413", + ":8486:2435:2515", ":8486:2435:2412", + ":8486:2435:2415", ":8486:2435:2515#out:1", ":8486:2435:2415#out:1", ":8486:2435:2413#out:1", @@ -1347,25 +1345,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:2491", - ":8486:2484", - ":8486:2483", - ":8486:2492", - ":8486:2481", + ":8486:2490", + ":8486:2489", ":8486:2488", + ":8486:2484", + ":8486:2491", + ":8486:2483", ":8486:2486", - ":8486:2477", ":8486:2482", - ":8486:2480", - ":8486:2485", + ":8486:2481", ":8486:2487", - ":8486:2476", + ":8486:2480", ":8486:2478", + ":8486:2492", + ":8486:2477", + ":8486:2479", + ":8486:2476", + ":8486:2485", ":8486:2475", - ":8486:2490", ":8486:2474", - ":8486:2479", - ":8486:2489", ":8486:2480#out:1", ":8486:2491#out:1", ":8486:2481#out:1", @@ -1398,13 +1396,13 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.json", "elements":[ + ":8486:2480:2416", + ":8486:2480:2415", + ":8486:2480:2414", ":8486:2480:2418", ":8486:2480:2515", - ":8486:2480:2414", - ":8486:2480:2415", ":8486:2480:2413", ":8486:2480:2412", - ":8486:2480:2416", ":8486:2480:2515#out:1", ":8486:2480:2415#out:1", ":8486:2480:2413#out:1", @@ -1512,34 +1510,32 @@ "elements":[ ":8655", ":8634", - ":9391", - ":8650", - ":9423", + ":8654", + ":8651", + ":8647", + ":8645", ":8643", - ":8640", - ":9390", + ":8642", + ":8639", + ":8633", + ":8632", + ":8630", + ":9424", ":8646", - ":8635", - ":8628", - ":8636", ":8625", + ":8640", ":8603", - ":9424", - ":8642", - ":8632", - ":8633", + ":8650", + ":8546", ":8624", - ":8630", - ":8645", ":8539", - ":8546", - ":8654", - ":8639", ":8537", - ":8647", ":9422", - ":8651", + ":9423", + ":8636", + ":8635", ":8536", + ":8628", ":8634#out:1", ":8537#out:1", ":8625#out:1", @@ -1558,7 +1554,6 @@ ":8635#out:1", ":8536#out:1", ":8628#out:1", - ":9390#out:1", ":9422#out:1", ":9424#out:1" ], @@ -1571,9 +1566,9 @@ "parent":26, "children":[ ], - "name":"F02_01_Mode_Transition_Calculation", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F02_01_Mode_Transition_Calculation", - "label":"F02_01_Mode_Transition_Calculation", + "name":"F03_01_Mode_Transition_Calculation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_01_Mode_Transition_Calculation", + "label":"F03_01_Mode_Transition_Calculation", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8546_d.png", @@ -1582,57 +1577,57 @@ ":8601", ":8602", ":8600", - ":8599", + ":8598", ":8594", - ":8591", + ":8593", + ":8592", + ":8595", ":8590", ":8586", - ":8584", ":8589", - ":8582", + ":8597", + ":8581", + ":8587", + ":8573", ":8585", - ":8592", + ":9421", + ":8580", ":8570", - ":8587", ":8569", - ":8581", - ":8565", - ":8571", - ":8563", - ":8583", - ":8572", + ":8568", + ":8566", + ":8564", ":9419", - ":8593", - ":8561", + ":8562", ":8560", - ":8559", + ":8572", + ":8584", ":8558", - ":8556", ":8555", - ":8568", - ":8564", - ":8554", - ":8562", - ":8553", + ":8563", + ":8552", ":8551", + ":8591", ":8549", - ":8595", + ":8554", + ":8582", + ":8559", + ":8553", + ":8583", + ":8565", + ":8561", + ":8599", + ":9420", ":8548", - ":8566", - ":8598", - ":8580", - ":8597", - ":8552", - ":9421", - ":8573", + ":8556", ":8547", - ":9420", + ":8571", + ":8575", ":8578", - ":8579", - ":8576", ":8574", ":8577", - ":8575", + ":8576", + ":8579", ":8587#out:1", ":8593#out:1", ":8594#out:1", @@ -1682,9 +1677,9 @@ "parent":26, "children":[ ], - "name":"F02_02_Control_Mode_Manager", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F02_02_Control_Mode_Manager", - "label":"F02_02_Control_Mode_Manager", + "name":"F03_02_Control_Mode_Manager", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_02_Control_Mode_Manager", + "label":"F03_02_Control_Mode_Manager", "icon":"WebViewIcon6", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.png", @@ -1694,16 +1689,16 @@ ":8603:28", ":8603:6", ":8603:4", - ":8603:12", + ":8603:33", ":8603:32", ":8603:31", - ":8603:9", - ":8603:33", ":8603:30", + ":8603:12", + ":8603:9", ":8603:1", ":8603:14", - ":8603:13", - ":8603:2" + ":8603:2", + ":8603:13" ], "sameAsElement":false }, @@ -1723,8 +1718,8 @@ 48, 49, 54, - 59, - 64 + 60, + 66 ], "name":"F04_Field_Oriented_Control", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control", @@ -1734,6 +1729,7 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json", "elements":[ + ":9719", ":9194", ":9193", ":9192", @@ -1754,129 +1750,127 @@ ":9024", ":9071", ":9025", - ":9195", + ":9197", + ":9171", ":9109", - ":9108", - ":9045", + ":9073", + ":9072", + ":9029", ":9028", ":9027", - ":9196", + ":9026", ":9023", ":8913", ":8912", - ":8864", - ":9142", - ":8863", - ":8861", - ":9029", - ":9673", + ":9713", + ":9715", + ":8862", + ":8860", ":8858", - ":8857", - ":9171", - ":8855", + ":9717", ":8852", - ":8848", - ":9074", - ":8844", + ":8846", + ":8864", + ":8843", ":8842", - ":8838", - ":8837", - ":8847", - ":8849", + ":8841", + ":9108", ":8836", - ":8832", + ":8830", ":8831", - ":8826", ":9655", ":8824", - ":8822", - ":8862", - ":9072", - ":8821", - ":8853", - ":8839", - ":8845", - ":9073", + ":8849", + ":8847", + ":8819", + ":8848", ":8816", - ":8846", - ":8815", - ":8814", + ":8837", + ":8811", ":8809", + ":8808", + ":8826", ":8807", ":8803", ":8802", - ":8813", - ":8801", - ":8841", - ":8808", + ":8812", + ":8800", + ":8818", ":8799", - ":8798", + ":8857", + ":8863", + ":8796", ":8795", ":8794", - ":8811", - ":8791", - ":8790", + ":8834", + ":8792", + ":8813", ":8789", - ":8788", ":8797", - ":8784", + ":8788", + ":8832", + ":8787", + ":8786", + ":8783", + ":8856", ":8782", - ":8818", ":8780", - ":8820", ":8779", - ":8800", - ":8796", - ":8776", + ":8790", + ":8861", + ":9718", + ":8801", + ":9074", ":8777", - ":8773", - ":8783", - ":8770", + ":8793", + ":8805", + ":8775", + ":8845", + ":8781", ":8772", - ":8860", - ":8854", - ":8786", - ":8810", - ":8787", - ":8785", + ":9143", + ":8773", + ":8814", ":8774", - ":8793", - ":9197", - ":8812", - ":8823", - ":8726", ":8768", - ":8850", - ":8743", - ":8834", - ":9026", - ":8865", ":8806", - ":9143", - ":8851", + ":8766", + ":8817", + ":8815", + ":8853", + ":9142", + ":8804", + ":8726", + ":9196", + ":8810", + ":8844", + ":8770", ":8667", - ":8856", + ":8825", + ":8765", + ":8784", ":8668", - ":8766", + ":8820", + ":9195", + ":8776", ":8663", - ":8765", - ":8819", - ":8771", - ":8817", - ":8792", - ":8661", - ":8775", - ":9672", + ":8785", ":8662", - ":8805", + ":8743", + ":8850", + ":9045", + ":8798", + ":8851", ":8664", - ":8830", + ":9716", + ":8823", + ":8838", ":8660", - ":8781", - ":8825", - ":8804", - ":8843", + ":8839", + ":8791", ":8659", + ":8661", + ":8771", ":8827#out:1", ":8828#out:1", ":8767#out:1", @@ -1918,8 +1912,6 @@ ":8766#out:1", ":8770#out:1", ":8659#out:1", - ":8865#out:1", - ":8771#out:1", ":8794#out:1", ":8660#out:1", ":8662#out:1", @@ -1971,13 +1963,9 @@ ":8817#out:1", ":8913#out:9", ":8818#out:1", - ":8913#out:11", ":8913#out:10", - ":8913#out:12", ":8819#out:1", ":8820#out:1", - ":8821#out:1", - ":8822#out:1", ":8823#out:1", ":8824#out:1", ":8825#out:1", @@ -1995,7 +1983,11 @@ ":9655#out:1", ":8826#out:1", ":8768#out:1", - ":9672#out:1" + ":9713#out:1", + ":8771#out:1", + ":9715#out:1", + ":9716#out:1", + ":9718#out:1" ], "sameAsElement":true }, @@ -2016,34 +2008,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", ":8724", + ":8723", ":8720", - ":8718", ":8717", + ":8722", ":8716", ":8714", ":8713", - ":8722", + ":8721", ":8712", - ":8711", - ":8715", ":8710", - ":8719", + ":8711", ":8709", - ":8705", - ":8706", + ":8708", ":8707", - ":8702", + ":8706", + ":8704", + ":8705", ":8703", + ":8715", ":8686", - ":8723", - ":8721", - ":8704", - ":8725", - ":8708", + ":8719", + ":8718", ":8671", - ":8670", + ":8702", ":8669", + ":8670", ":8686#out:1", ":8705#out:1", ":8704#out:1", @@ -2084,19 +2076,19 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.json", "elements":[ ":8685", - ":8683", + ":8684", ":8681", - ":8680", ":8679", - ":8677", + ":8682", ":8678", - ":8674", ":8676", - ":8684", + ":8677", + ":8675", + ":8683", + ":8674", ":8673", - ":8682", ":8672", - ":8675", + ":8680", ":8673#out:1", ":8672#out:1", ":8675#out:1", @@ -2126,17 +2118,17 @@ ":8701", ":8700", ":8698", - ":8697", ":8699", - ":8696", - ":8695", + ":8697", ":8694", - ":8691", ":8693", - ":8690", - ":8688", + ":8696", ":8689", + ":8691", ":8692", + ":8688", + ":8690", + ":8695", ":8687", ":8691#out:1", ":8690#out:1", @@ -2166,22 +2158,23 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json", "elements":[ - ":8742", + ":8741", ":8740", - ":8739", - ":8737", ":8736", - ":8738", ":8735", + ":8734", + ":8737", + ":8733", ":8731", - ":8730", ":8732", - ":8733", - ":8734", + ":8730", + ":8738", ":8729", - ":8741", ":8728", + ":8742", + ":8739", ":8727", + ":9714", ":8739#out:1", ":8729#out:2", ":8740#out:1", @@ -2211,15 +2204,15 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json", "elements":[ - ":8738:2407", ":8738:2405", ":8738:2404", ":8738:2403", ":8738:2406", - ":8738:2400", - ":8738:2399", ":8738:2402", ":8738:2401", + ":8738:2400", + ":8738:2407", + ":8738:2399", ":8738:2399#out:1", ":8738:2404#out:1", ":8738:2401#out:1", @@ -2250,39 +2243,39 @@ ":8762", ":8763", ":8764", - ":8760", + ":8759", + ":8756", ":8755", - ":8753", ":9657", - ":8752", - ":8751", ":8750", - ":8749", - ":9638", + ":8757", + ":8748", ":8747", + ":8753", + ":9639", + ":9650", + ":9652", ":9646", ":9644", - ":9649", - ":9653", - ":9652", - ":9641", - ":9640", - ":8758", - ":9654", ":9648", - ":9650", - ":9647", - ":9643", ":8754", - ":8745", - ":8759", - ":8757", - ":8756", + ":9647", ":9645", + ":9643", + ":9640", + ":8751", + ":9638", + ":8760", ":9651", - ":8748", + ":9653", + ":8758", + ":9641", + ":9649", + ":8745", + ":9654", + ":8749", ":8744", - ":9639", + ":8752", ":9636", ":8748#out:1", ":8750#out:1", @@ -2334,17 +2327,17 @@ ":8881", ":8883", ":8880", - ":8878", ":8879", - ":8875", + ":8877", ":8874", - ":8873", + ":8876", ":8872", + ":8870", + ":8873", ":8871", + ":8878", ":8869", - ":8870", - ":8876", - ":8877", + ":8875", ":8880#out:1", ":8879#out:1", ":8872#out:1", @@ -2386,24 +2379,24 @@ ":8909", ":8889", ":8890", - ":8906", - ":8903", ":8907", - ":8899", - ":8898", - ":8901", ":8905", - ":8895", - ":8896", - ":8894", - ":8891", - ":8892", + ":8903", ":8904", - ":8897", - ":8902", ":8900", ":8908", + ":8898", + ":8896", + ":8899", + ":8897", + ":8906", ":8893", + ":8892", + ":8895", + ":8894", + ":8891", + ":8902", + ":8901", ":8889#out:1", ":8888#out:1", ":8887#out:1", @@ -2447,90 +2440,86 @@ ":9020", ":9021", ":9022", - ":9016", - ":9015", - ":9013", + ":9014", + ":9011", ":9010", - ":9009", - ":9007", ":9006", ":9005", - ":9003", - ":9001", - ":9000", + ":9002", ":8999", + ":8998", + ":8997", ":8987", ":8986", - ":9008", ":8985", + ":8983", ":8984", - ":8979", - ":8978", - ":8975", - ":8974", - ":8977", - ":8969", - ":9002", - ":8963", - ":8962", - ":8961", ":8982", + ":9003", + ":8976", + ":8975", + ":9000", + ":9008", + ":8973", + ":9017", ":8972", - ":8960", + ":9007", ":8967", - ":8970", + ":8965", ":8964", - ":8966", + ":9004", + ":8963", + ":8961", + ":8958", + ":8970", + ":8962", ":8957", - ":8956", + ":9012", + ":8955", + ":8977", + ":8954", ":8953", ":8968", - ":8949", + ":8951", + ":8969", ":8947", ":8945", - ":8950", - ":8946", ":8944", - ":8943", - ":8941", - ":9014", - ":8951", + ":8939", + ":8938", ":8937", + ":9009", + ":8956", + ":8934", + ":8924", ":8936", - ":8997", - ":8948", + ":9013", + ":8923", + ":8979", + ":8978", ":8935", - ":8940", - ":8973", - ":8954", - ":9011", - ":8924", - ":9012", - ":8934", - ":8942", - ":8938", ":8922", - ":8921", - ":8971", + ":8949", + ":8952", ":8920", - ":8983", - ":8958", - ":9017", + ":8948", + ":8919", + ":8942", + ":8918", ":8917", - ":8976", - ":8965", - ":9004", + ":8960", + ":8950", ":8916", - ":8939", - ":8952", + ":8921", + ":9001", ":8915", - ":8998", - ":8918", - ":8919", - ":8923", + ":8943", + ":8974", + ":8971", + ":8966", + ":8946", ":8914", ":8959", - ":8955", ":8980", ":8981", ":8999#out:1", @@ -2558,8 +2547,6 @@ ":8939#out:1", ":9005#out:1", ":8960#out:1", - ":8941#out:1", - ":8940#out:1", ":8918#out:1", ":8944#out:1", ":8914#out:1", @@ -2610,14 +2597,14 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json", "elements":[ ":8933", - ":8930", ":8932", + ":8931", + ":8930", ":8929", + ":8928", ":8927", - ":8931", ":8926", ":8925", - ":8928", ":8931#out:1", ":8925#out:1", ":8932#out:1", @@ -2680,14 +2667,14 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.json", "elements":[ ":8996", + ":8995", ":8994", ":8992", - ":8995", - ":8991", - ":8993", + ":8990", ":8989", + ":8993", ":8988", - ":8990", + ":8991", ":8993#out:1", ":8990#out:1", ":8994#out:1", @@ -2751,20 +2738,20 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json", "elements":[ ":9044", - ":9042", ":9041", ":9040", ":9039", - ":9043", - ":9037", + ":9038", ":9036", ":9035", + ":9043", ":9034", + ":9033", + ":9037", ":9032", - ":9031", + ":9042", ":9030", - ":9038", - ":9033", + ":9031", ":9030#out:1", ":9032#out:1", ":9042#out:1", @@ -2797,14 +2784,14 @@ "elements":[ ":9040:2353", ":9040:2360", - ":9040:2346", ":9040:2343", + ":9040:2346", + ":9040:2395", ":9040:2358", - ":9040:2342", - ":9040:2357", ":9040:2356", ":9040:2355", - ":9040:2395", + ":9040:2357", + ":9040:2342", ":9040:2359", ":9040:2356#out:1", ":9040:2342#out:1", @@ -2930,23 +2917,23 @@ ":9048", ":9049", ":9067", + ":9066", + ":9065", ":9064", ":9063", ":9061", + ":9060", ":9059", - ":9058", - ":9057", ":9055", - ":9060", - ":9062", - ":9052", - ":9065", - ":9050", - ":9066", + ":9057", ":9053", - ":9051", ":9054", ":9056", + ":9051", + ":9058", + ":9050", + ":9062", + ":9052", ":9048#out:1", ":9047#out:1", ":9046#out:1", @@ -2974,8 +2961,7 @@ "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "parent":29, "children":[ - 50, - 53 + 50 ], "name":"Speed_Mode", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode", @@ -2985,212 +2971,215 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json", "elements":[ + ":9709", ":9107", - ":9106", ":9105", - ":9104", - ":9101", - ":9099", - ":9096", + ":9728", + ":9095", ":9093", - ":9098", ":9091", + ":9087", + ":9104", + ":9084", + ":9101", + ":9082", + ":9106", ":9090", - ":9100", - ":9089", + ":9094", + ":9078", ":9088", - ":9084", - ":9087", - ":9083", - ":9086", - ":9080", - ":9079", - ":9092", ":9081", - ":9078", ":9077", - ":9103", - ":9076", - ":9097", - ":9082", - ":9094", + ":9083", + ":9100", + ":9092", ":9102", - ":9095", + ":9076", + ":9089", ":9075", - ":9085", - ":9090#out:1", - ":9089#out:1", - ":9104#out:1", - ":9103#out:1", - ":9105#out:1", ":9087#out:1", - ":9101#out:1", ":9075#out:1", ":9076#out:1", ":9077#out:1", ":9078#out:1", - ":9086#out:1", - ":9085#out:1", - ":9088#out:1", - ":9099#out:1", - ":9080#out:1", - ":9079#out:1", - ":9098#out:1", ":9081#out:1", - ":9083#out:1", ":9102#out:1", ":9084#out:1", - ":9100#out:1" + ":9100#out:1", + ":9088#out:1", + ":9105#out:1", + ":9101#out:1", + ":9104#out:1", + ":9090#out:1", + ":9089#out:1", + ":9083#out:1", + ":9728#out:1" ], "sameAsElement":true }, { "hid":50, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "parent":49, "children":[ 51, - 52 + 52, + 53 ], - "name":"PI_backCalc_fixdt_n", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_backCalc_fixdt_n", - "label":"PI_backCalc_fixdt_n", + "name":"PI_clamp_fixdt_n", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n", + "label":"PI_clamp_fixdt_n", "icon":"WebViewIcon9", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_d.json", - "elements":[ - ":9098:2290", - ":9098:2527", - ":9098:2293", - ":9098:2285", - ":9098:2275", - ":9098:2284", - ":9098:2282", - ":9098:2292", - ":9098:2272", - ":9098:2254", - ":9098:2273", - ":9098:2253", - ":9098:2291", - ":9098:2252", - ":9098:2396", - ":9098:2251", - ":9098:2250", - ":9098:2273#out:1", - ":9098:2275#out:1", - ":9098:2284#out:1", - ":9098:2291#out:1", - ":9098:2282#out:1", - ":9098:2285#out:1", - ":9098:2527#out:1", - ":9098:2293#out:1", - ":9098:2292#out:1", - ":9098:2272#out:1", - ":9098:2252#out:1", - ":9098:2250#out:1", - ":9098:2253#out:1", - ":9098:2254#out:1", - ":9098:2251#out:1", - ":9098:2396#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json", + "elements":[ + ":9728:2785", + ":9728:2814", + ":9728:2817", + ":9728:2783", + ":9728:2815", + ":9728:2779", + ":9728:2791", + ":9728:2833", + ":9728:2845", + ":9728:2776", + ":9728:2781", + ":9728:2846", + ":9728:2794", + ":9728:2773", + ":9728:2816", + ":9728:2778", + ":9728:2832", + ":9728:2733", + ":9728:2771", + ":9728:2732", + ":9728:2770", + ":9728:2795", + ":9728:2769", + ":9728:2844", + ":9728:2791#out:2", + ":9728:2846#out:1", + ":9728:2844#out:1", + ":9728:2833#out:1", + ":9728:2832#out:1", + ":9728:2817#out:1", + ":9728:2816#out:1", + ":9728:2814#out:1", + ":9728:2781#out:1", + ":9728:2783#out:1", + ":9728:2815#out:1", + ":9728:2791#out:3", + ":9728:2791#out:1", + ":9728:2733#out:1", + ":9728:2732#out:1", + ":9728:2770#out:1", + ":9728:2779#out:1", + ":9728:2771#out:1", + ":9728:2778#out:1", + ":9728:2776#out:1", + ":9728:2773#out:1", + ":9728:2769#out:1" ], "sameAsElement":true }, { "hid":51, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", "parent":50, "children":[ ], - "name":"Integrator", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_backCalc_fixdt_n/Integrator", - "label":"Integrator", + "name":"Clamping_circuit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Clamping_circuit", + "label":"Clamping_circuit", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2275_d.json", - "elements":[ - ":9098:2281", - ":9098:2279", - ":9098:2697", - ":9098:2528", - ":9098:2276", - ":9098:2697#out:1", - ":9098:2528#out:1", - ":9098:2279#out:1", - ":9098:2276#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.json", + "elements":[ + ":9728:2819", + ":9728:2818", + ":9728:2831", + ":9728:2839", + ":9728:2841", + ":9728:2840", + ":9728:2836", + ":9728:2837", + ":9728:2843", + ":9728:2838", + ":9728:2843#out:1", + ":9728:2838#out:1", + ":9728:2841#out:1", + ":9728:2840#out:1", + ":9728:2836#out:1", + ":9728:2839#out:1", + ":9728:2837#out:1", + ":9728:2819#out:1", + ":9728:2818#out:1" ], "sameAsElement":true }, { "hid":52, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", "parent":50, "children":[ ], - "name":"Saturation Dynamic1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_backCalc_fixdt_n/Saturation Dynamic1", - "label":"Saturation Dynamic1", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9098_2282_d.json", - "elements":[ - ":9098:2282:10", - ":9098:2282:9", - ":9098:2282:8", - ":9098:2282:7", - ":9098:2282:6", - ":9098:2282:5", - ":9098:2282:4", - ":9098:2282:3", - ":9098:2282:2", - ":9098:2282:1", - ":9098:2282:1#out:1", - ":9098:2282:2#out:1", - ":9098:2282:3#out:1", - ":9098:2282:7#out:1", - ":9098:2282:8#out:1", - ":9098:2282:6#out:1", - ":9098:2282:9#out:1" + "name":"Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Integrator", + "label":"Integrator", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json", + "elements":[ + ":9728:2790", + ":9728:2789", + ":9728:2788", + ":9728:2787", + ":9728:2786", + ":9728:2787#out:1", + ":9728:2789#out:1", + ":9728:2788#out:1", + ":9728:2786#out:1" ], "sameAsElement":true }, { "hid":53, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9099", - "parent":49, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":50, "children":[ ], - "name":"Saturation Dynamic1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/Saturation Dynamic1", - "label":"Saturation Dynamic1", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9099_d.json", - "elements":[ - ":9099:10", - ":9099:9", - ":9099:8", - ":9099:7", - ":9099:6", - ":9099:5", - ":9099:4", - ":9099:3", - ":9099:2", - ":9099:1", - ":9099:1#out:1", - ":9099:2#out:1", - ":9099:3#out:1", - ":9099:7#out:1", - ":9099:8#out:1", - ":9099:6#out:1", - ":9099:9#out:1" + "name":"Saturation_hit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Saturation_hit", + "label":"Saturation_hit", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.json", + "elements":[ + ":9728:2791:2710", + ":9728:2791:2377", + ":9728:2791:2707", + ":9728:2791:2848", + ":9728:2791:2849", + ":9728:2791:2704", + ":9728:2791:2709", + ":9728:2791:2700", + ":9728:2791:2701", + ":9728:2791:2699", + ":9728:2791:2849#out:1", + ":9728:2791:2701#out:1", + ":9728:2791:2704#out:1", + ":9728:2791:2707#out:1", + ":9728:2791:2699#out:1", + ":9728:2791:2700#out:1", + ":9728:2791:2848#out:1" ], "sameAsElement":true }, @@ -3201,7 +3190,7 @@ "parent":29, "children":[ 55, - 58 + 59 ], "name":"Torque_Mode", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode", @@ -3212,50 +3201,42 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json", "elements":[ ":9141", - ":9139", - ":9137", - ":9134", ":9138", + ":9136", + ":9135", ":9133", - ":9132", ":9140", + ":9134", ":9131", - ":9129", - ":9135", ":9127", - ":9130", - ":9126", - ":9125", ":9124", - ":9122", - ":9121", - ":9128", + ":9120", + ":9130", ":9118", ":9117", ":9116", - ":9114", + ":9139", + ":9121", + ":9115", ":9113", - ":9119", - ":9136", ":9112", - ":9120", + ":9125", + ":9114", + ":9729", + ":9129", ":9111", + ":9122", + ":9126", + ":9119", ":9110", + ":9128", ":9123", - ":9115", - ":9138#out:1", ":9121#out:1", - ":9123#out:1", - ":9124#out:1", ":9118#out:1", - ":9135#out:1", - ":9137#out:1", - ":9139#out:1", ":9111#out:1", ":9110#out:1", ":9112#out:1", ":9113#out:1", - ":9132#out:1", ":9115#out:1", ":9114#out:1", ":9120#out:1", @@ -3263,129 +3244,186 @@ ":9136#out:1", ":9122#out:1", ":9116#out:1", - ":9140#out:1", ":9134#out:1", - ":9133#out:1" + ":9133#out:1", + ":9124#out:1", + ":9123#out:1", + ":9139#out:1", + ":9138#out:1", + ":9135#out:1", + ":9140#out:1", + ":9729#out:1" ], "sameAsElement":true }, { "hid":55, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "parent":54, "children":[ 56, - 57 + 57, + 58 ], - "name":"PI_backCalc_fixdt_Iq", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_backCalc_fixdt_Iq", - "label":"PI_backCalc_fixdt_Iq", + "name":"PI_clamp_fixdt_iq", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq", + "label":"PI_clamp_fixdt_iq", "icon":"WebViewIcon9", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_d.json", - "elements":[ - ":9132:2284", - ":9132:2293", - ":9132:2282", - ":9132:2285", - ":9132:2273", - ":9132:2254", - ":9132:2290", - ":9132:2291", - ":9132:2292", - ":9132:2252", - ":9132:2272", - ":9132:2253", - ":9132:2275", - ":9132:2251", - ":9132:2250", - ":9132:2396", - ":9132:2527", - ":9132:2273#out:1", - ":9132:2275#out:1", - ":9132:2284#out:1", - ":9132:2291#out:1", - ":9132:2282#out:1", - ":9132:2285#out:1", - ":9132:2527#out:1", - ":9132:2293#out:1", - ":9132:2292#out:1", - ":9132:2272#out:1", - ":9132:2252#out:1", - ":9132:2250#out:1", - ":9132:2253#out:1", - ":9132:2254#out:1", - ":9132:2251#out:1", - ":9132:2396#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json", + "elements":[ + ":9729:2817", + ":9729:2814", + ":9729:2781", + ":9729:2791", + ":9729:2795", + ":9729:2832", + ":9729:2785", + ":9729:2778", + ":9729:2776", + ":9729:2779", + ":9729:2815", + ":9729:2816", + ":9729:2833", + ":9729:2846", + ":9729:2733", + ":9729:2773", + ":9729:2732", + ":9729:2771", + ":9729:2783", + ":9729:2770", + ":9729:2794", + ":9729:2845", + ":9729:2769", + ":9729:2844", + ":9729:2791#out:2", + ":9729:2846#out:1", + ":9729:2844#out:1", + ":9729:2833#out:1", + ":9729:2832#out:1", + ":9729:2817#out:1", + ":9729:2816#out:1", + ":9729:2814#out:1", + ":9729:2781#out:1", + ":9729:2783#out:1", + ":9729:2815#out:1", + ":9729:2791#out:3", + ":9729:2791#out:1", + ":9729:2733#out:1", + ":9729:2732#out:1", + ":9729:2770#out:1", + ":9729:2779#out:1", + ":9729:2771#out:1", + ":9729:2778#out:1", + ":9729:2776#out:1", + ":9729:2773#out:1", + ":9729:2769#out:1" ], "sameAsElement":true }, { "hid":56, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":55, + "children":[ + ], + "name":"Clamping_circuit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Clamping_circuit", + "label":"Clamping_circuit", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.json", + "elements":[ + ":9729:2819", + ":9729:2818", + ":9729:2831", + ":9729:2839", + ":9729:2837", + ":9729:2840", + ":9729:2836", + ":9729:2843", + ":9729:2841", + ":9729:2838", + ":9729:2843#out:1", + ":9729:2838#out:1", + ":9729:2841#out:1", + ":9729:2840#out:1", + ":9729:2836#out:1", + ":9729:2839#out:1", + ":9729:2837#out:1", + ":9729:2819#out:1", + ":9729:2818#out:1" + ], + "sameAsElement":true + }, + { + "hid":57, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", "parent":55, "children":[ ], "name":"Integrator", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_backCalc_fixdt_Iq/Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Integrator", "label":"Integrator", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2275_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json", "elements":[ - ":9132:2281", - ":9132:2279", - ":9132:2697", - ":9132:2276", - ":9132:2528", - ":9132:2697#out:1", - ":9132:2528#out:1", - ":9132:2279#out:1", - ":9132:2276#out:1" + ":9729:2790", + ":9729:2789", + ":9729:2788", + ":9729:2787", + ":9729:2786", + ":9729:2787#out:1", + ":9729:2789#out:1", + ":9729:2788#out:1", + ":9729:2786#out:1" ], "sameAsElement":true }, { - "hid":57, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", + "hid":58, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", "parent":55, "children":[ ], - "name":"Saturation Dynamic1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_backCalc_fixdt_Iq/Saturation Dynamic1", - "label":"Saturation Dynamic1", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9132_2282_d.json", - "elements":[ - ":9132:2282:10", - ":9132:2282:9", - ":9132:2282:8", - ":9132:2282:7", - ":9132:2282:6", - ":9132:2282:5", - ":9132:2282:4", - ":9132:2282:3", - ":9132:2282:2", - ":9132:2282:1", - ":9132:2282:1#out:1", - ":9132:2282:2#out:1", - ":9132:2282:3#out:1", - ":9132:2282:7#out:1", - ":9132:2282:8#out:1", - ":9132:2282:6#out:1", - ":9132:2282:9#out:1" + "name":"Saturation_hit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Saturation_hit", + "label":"Saturation_hit", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.json", + "elements":[ + ":9729:2791:2710", + ":9729:2791:2377", + ":9729:2791:2848", + ":9729:2791:2707", + ":9729:2791:2704", + ":9729:2791:2849", + ":9729:2791:2701", + ":9729:2791:2700", + ":9729:2791:2699", + ":9729:2791:2709", + ":9729:2791:2849#out:1", + ":9729:2791:2701#out:1", + ":9729:2791:2704#out:1", + ":9729:2791:2707#out:1", + ":9729:2791:2699#out:1", + ":9729:2791:2700#out:1", + ":9729:2791:2848#out:1" ], "sameAsElement":true }, { - "hid":58, + "hid":59, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9133", "parent":54, @@ -3420,13 +3458,13 @@ "sameAsElement":true }, { - "hid":59, + "hid":60, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "parent":29, "children":[ - 60, - 63 + 61, + 65 ], "name":"Vd_Calculation", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation", @@ -3437,32 +3475,31 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json", "elements":[ ":9165", - ":9169", - ":9166", - ":9163", - ":9161", + ":9726", + ":9164", ":9162", ":9160", - ":9168", - ":9158", - ":9156", ":9157", - ":9152", ":9159", - ":9151", + ":9170", + ":9722", + ":9158", + ":9156", ":9155", - ":9147", - ":9146", - ":9154", + ":9151", + ":9161", + ":9150", + ":9149", ":9148", - ":9170", + ":9152", + ":9147", + ":9721", ":9145", - ":9164", - ":9150", - ":9167", + ":9146", + ":9724", + ":9723", + ":9725", ":9144", - ":9149", - ":9153", ":9152#out:1", ":9151#out:1", ":9144#out:1", @@ -3474,137 +3511,187 @@ ":9164#out:1", ":9155#out:1", ":9156#out:1", + ":9723#out:1", + ":9726#out:1", + ":9722#out:1", + ":9724#out:1", + ":9725#out:1", ":9165#out:1", - ":9153#out:1", - ":9154#out:1", - ":9168#out:1", - ":9167#out:1", - ":9166#out:1", - ":9169#out:1", - ":9163#out:1" + ":9721#out:1" ], "sameAsElement":true }, { - "hid":60, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9163", - "parent":59, + "hid":61, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":60, "children":[ - 61, - 62 + 62, + 63, + 64 ], - "name":"PI_backCalc_fixdt_Id", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_backCalc_fixdt_Id", - "label":"PI_backCalc_fixdt_Id", + "name":"PI_clamp_fixdt_id", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id", + "label":"PI_clamp_fixdt_id", "icon":"WebViewIcon9", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_d.json", - "elements":[ - ":9163:2527", - ":9163:2285", - ":9163:2293", - ":9163:2284", - ":9163:2273", - ":9163:2292", - ":9163:2282", - ":9163:2272", - ":9163:2396", - ":9163:2254", - ":9163:2291", - ":9163:2251", - ":9163:2253", - ":9163:2290", - ":9163:2275", - ":9163:2250", - ":9163:2252", - ":9163:2273#out:1", - ":9163:2275#out:1", - ":9163:2284#out:1", - ":9163:2291#out:1", - ":9163:2282#out:1", - ":9163:2285#out:1", - ":9163:2527#out:1", - ":9163:2293#out:1", - ":9163:2292#out:1", - ":9163:2272#out:1", - ":9163:2252#out:1", - ":9163:2250#out:1", - ":9163:2253#out:1", - ":9163:2254#out:1", - ":9163:2251#out:1", - ":9163:2396#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json", + "elements":[ + ":9721:2785", + ":9721:2815", + ":9721:2817", + ":9721:2781", + ":9721:2791", + ":9721:2779", + ":9721:2794", + ":9721:2833", + ":9721:2778", + ":9721:2832", + ":9721:2776", + ":9721:2816", + ":9721:2733", + ":9721:2795", + ":9721:2732", + ":9721:2771", + ":9721:2846", + ":9721:2770", + ":9721:2845", + ":9721:2814", + ":9721:2783", + ":9721:2773", + ":9721:2769", + ":9721:2844", + ":9721:2791#out:2", + ":9721:2846#out:1", + ":9721:2844#out:1", + ":9721:2833#out:1", + ":9721:2832#out:1", + ":9721:2817#out:1", + ":9721:2816#out:1", + ":9721:2814#out:1", + ":9721:2781#out:1", + ":9721:2783#out:1", + ":9721:2815#out:1", + ":9721:2791#out:3", + ":9721:2791#out:1", + ":9721:2733#out:1", + ":9721:2732#out:1", + ":9721:2770#out:1", + ":9721:2779#out:1", + ":9721:2771#out:1", + ":9721:2778#out:1", + ":9721:2776#out:1", + ":9721:2773#out:1", + ":9721:2769#out:1" ], "sameAsElement":true }, { - "hid":61, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", - "parent":60, + "hid":62, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":61, + "children":[ + ], + "name":"Clamping_circuit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id/Clamping_circuit", + "label":"Clamping_circuit", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json", + "elements":[ + ":9721:2819", + ":9721:2818", + ":9721:2831", + ":9721:2839", + ":9721:2840", + ":9721:2837", + ":9721:2836", + ":9721:2841", + ":9721:2843", + ":9721:2838", + ":9721:2843#out:1", + ":9721:2838#out:1", + ":9721:2841#out:1", + ":9721:2840#out:1", + ":9721:2836#out:1", + ":9721:2839#out:1", + ":9721:2837#out:1", + ":9721:2819#out:1", + ":9721:2818#out:1" + ], + "sameAsElement":true + }, + { + "hid":63, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":61, "children":[ ], "name":"Integrator", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_backCalc_fixdt_Id/Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id/Integrator", "label":"Integrator", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2275_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json", "elements":[ - ":9163:2528", - ":9163:2697", - ":9163:2276", - ":9163:2281", - ":9163:2279", - ":9163:2697#out:1", - ":9163:2528#out:1", - ":9163:2279#out:1", - ":9163:2276#out:1" + ":9721:2789", + ":9721:2788", + ":9721:2790", + ":9721:2787", + ":9721:2786", + ":9721:2787#out:1", + ":9721:2789#out:1", + ":9721:2788#out:1", + ":9721:2786#out:1" ], "sameAsElement":true }, { - "hid":62, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", - "parent":60, + "hid":64, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":61, "children":[ ], - "name":"Saturation Dynamic1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_backCalc_fixdt_Id/Saturation Dynamic1", - "label":"Saturation Dynamic1", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9163_2282_d.json", - "elements":[ - ":9163:2282:10", - ":9163:2282:9", - ":9163:2282:8", - ":9163:2282:7", - ":9163:2282:6", - ":9163:2282:5", - ":9163:2282:4", - ":9163:2282:3", - ":9163:2282:2", - ":9163:2282:1", - ":9163:2282:1#out:1", - ":9163:2282:2#out:1", - ":9163:2282:3#out:1", - ":9163:2282:7#out:1", - ":9163:2282:8#out:1", - ":9163:2282:6#out:1", - ":9163:2282:9#out:1" + "name":"Saturation_hit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id/Saturation_hit", + "label":"Saturation_hit", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.json", + "elements":[ + ":9721:2791:2377", + ":9721:2791:2707", + ":9721:2791:2849", + ":9721:2791:2710", + ":9721:2791:2848", + ":9721:2791:2701", + ":9721:2791:2700", + ":9721:2791:2709", + ":9721:2791:2699", + ":9721:2791:2704", + ":9721:2791:2849#out:1", + ":9721:2791:2701#out:1", + ":9721:2791:2704#out:1", + ":9721:2791:2707#out:1", + ":9721:2791:2699#out:1", + ":9721:2791:2700#out:1", + ":9721:2791:2848#out:1" ], "sameAsElement":true }, { - "hid":63, + "hid":65, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", - "parent":59, + "parent":60, "children":[ ], "name":"Saturation Dynamic", @@ -3636,12 +3723,12 @@ "sameAsElement":true }, { - "hid":64, + "hid":66, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "parent":29, "children":[ - 65 + 67 ], "name":"Voltage_Mode", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Voltage_Mode", @@ -3652,25 +3739,25 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json", "elements":[ ":9191", - ":9189", ":9190", ":9188", ":9187", - ":9185", ":9184", + ":9183", ":9182", + ":9178", ":9181", + ":9175", ":9180", - ":9178", - ":9186", ":9177", - ":9179", - ":9183", - ":9175", - ":9173", ":9174", ":9176", + ":9173", + ":9186", + ":9189", + ":9179", ":9172", + ":9185", ":9172#out:1", ":9181#out:1", ":9179#out:1", @@ -3681,17 +3768,17 @@ ":9190#out:1", ":9178#out:1", ":9189#out:1", - ":9180#out:1", ":9182#out:1", - ":9188#out:1" + ":9188#out:1", + ":9180#out:1" ], "sameAsElement":true }, { - "hid":65, + "hid":67, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", - "parent":64, + "parent":66, "children":[ ], "name":"Saturation Dynamic1", @@ -3723,7 +3810,7 @@ "sameAsElement":true }, { - "hid":66, + "hid":68, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "parent":2, @@ -3768,22 +3855,22 @@ ":9209", ":9199", ":9223", - ":9455", - ":9235", ":9449", ":9233", + ":9227", ":9225", + ":9451", ":9452", - ":9453", + ":9454", ":9215", ":9214", - ":9454", + ":9235", + ":9455", ":9207", - ":9451", - ":9210", - ":9227", - ":9206", ":9201", + ":9206", + ":9210", + ":9453", ":9208#out:3", ":9208#out:2", ":9208#out:1", @@ -3814,13 +3901,13 @@ ":9449#out:1", ":9453#out:1", ":9454#out:1", - ":9215#out:1", - ":9213#out:1" + ":9213#out:1", + ":9215#out:1" ], "sameAsElement":true }, { - "hid":67, + "hid":69, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", "parent":2, @@ -3838,7 +3925,7 @@ "sameAsElement":true }, { - "hid":68, + "hid":70, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", "parent":2, 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 9ef3749..4003eae 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 ] }, @@ -594,8 +606,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -607,7 +619,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -618,9 +629,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -630,7 +642,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -643,7 +655,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -653,18 +664,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 ] }, @@ -691,8 +705,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -704,7 +718,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -715,9 +728,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -727,7 +741,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -740,7 +754,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -750,18 +763,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 ] }, @@ -788,8 +804,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -801,7 +817,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -812,9 +827,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -824,7 +840,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -837,7 +853,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -847,18 +862,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" ], @@ -979,7 +997,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -992,7 +1010,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1002,18 +1019,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,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 ] }, @@ -1234,8 +1258,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1247,7 +1271,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1258,9 +1281,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1269,8 +1293,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Reusable function", "", "", "off", @@ -1283,7 +1307,6 @@ "off", "", "off", - "off", "", "Use subsystem name", "", @@ -1293,18 +1316,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 ] }, @@ -1331,8 +1357,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1344,7 +1370,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1355,9 +1380,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1367,7 +1393,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1380,7 +1406,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1390,18 +1415,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 ] }, @@ -1428,8 +1456,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1441,7 +1469,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1452,9 +1479,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1464,7 +1492,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1477,7 +1505,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1487,18 +1514,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 ] }, @@ -1583,8 +1613,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1596,7 +1626,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1607,9 +1636,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1619,7 +1649,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1632,7 +1662,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1642,18 +1671,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" ], @@ -1773,8 +1805,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "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", "", + "on", + "on", "off", "" ], "tabs":[ "Main", + "Code Generation", "-Other" ], "tabs_idx":[ 0, + 5, 6 ] }, @@ -1835,8 +1869,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1848,7 +1882,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1859,9 +1892,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1870,8 +1904,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -1884,7 +1918,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1894,18 +1927,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 ] }, @@ -1932,8 +1968,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -1945,7 +1981,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -1956,9 +1991,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -1968,7 +2004,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -1981,7 +2017,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -1991,18 +2026,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 ] }, @@ -2020,8 +2058,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F02_01_Mode_Transition_Calculation", - "label":"F02_01_Mode_Transition_Calculation", + "name":"F03_01_Mode_Transition_Calculation", + "label":"F03_01_Mode_Transition_Calculation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -2029,8 +2067,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2042,7 +2080,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2053,9 +2090,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2065,7 +2103,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2078,7 +2116,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2088,18 +2125,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 ] }, @@ -2117,8 +2157,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "className":"Stateflow.Chart", "icon":"WebViewIcon6", - "name":"F02_02_Control_Mode_Manager", - "label":"F02_02_Control_Mode_Manager", + "name":"F03_02_Control_Mode_Manager", + "label":"F03_02_Control_Mode_Manager", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -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 ] }, @@ -2379,8 +2423,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2392,7 +2436,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2403,9 +2446,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2415,7 +2459,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2428,7 +2472,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2438,18 +2481,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 ] }, @@ -2476,8 +2522,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2489,7 +2535,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2500,9 +2545,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2512,7 +2558,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2525,7 +2571,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2535,18 +2580,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 ] }, @@ -2573,8 +2621,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2586,7 +2634,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2597,9 +2644,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2609,7 +2657,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2617,11 +2665,10 @@ "void_void", "off", "off", - "on", - "", "off", "", "off", + "", "off", "", "Auto", @@ -2632,18 +2679,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 ] }, @@ -2763,8 +2813,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2776,7 +2826,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2787,9 +2836,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2799,7 +2849,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2812,7 +2862,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2822,18 +2871,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 ] }, @@ -2860,8 +2912,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2873,7 +2925,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2884,9 +2935,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2896,7 +2948,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -2909,7 +2961,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -2919,18 +2970,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 ] }, @@ -2957,8 +3011,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -2970,7 +3024,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -2981,9 +3034,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -2993,7 +3047,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3006,7 +3060,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3016,18 +3069,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 ] }, @@ -3054,8 +3110,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3067,7 +3123,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3078,9 +3133,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3090,7 +3146,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3103,7 +3159,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3113,18 +3168,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 ] }, @@ -3151,8 +3209,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3164,7 +3222,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3175,9 +3232,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3187,7 +3245,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3200,7 +3258,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3210,18 +3267,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 ] }, @@ -3287,8 +3347,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3300,7 +3360,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3311,9 +3370,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3323,7 +3383,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3336,7 +3396,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3346,18 +3405,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 ] }, @@ -3423,8 +3485,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3436,7 +3498,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3447,9 +3508,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3459,7 +3521,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3472,7 +3534,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3482,18 +3543,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 ] }, @@ -3562,7 +3626,7 @@ "off", "off", "-1", - "Reusable function", + "Auto", "Use subsystem name", "", "Auto", @@ -3681,8 +3745,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3694,7 +3758,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3705,9 +3768,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3716,8 +3780,8 @@ "ReadWrite", "", "All", - "on", - "on", + "off", + "Auto", "", "", "off", @@ -3730,7 +3794,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3740,18 +3803,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 ] }, @@ -3778,8 +3844,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3791,7 +3857,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3802,9 +3867,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3814,7 +3880,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3827,7 +3893,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3837,18 +3902,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 ] }, @@ -3875,8 +3943,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -3888,7 +3956,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -3899,9 +3966,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -3911,7 +3979,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -3924,7 +3992,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -3934,18 +4001,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 ] }, @@ -3960,11 +4030,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"PI_backCalc_fixdt_n", - "label":"PI_backCalc_fixdt_n", + "name":"PI_clamp_fixdt_n", + "label":"PI_clamp_fixdt_n", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -4053,20 +4123,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ "ShowPortLabels", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4078,7 +4148,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4089,9 +4158,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4101,7 +4171,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4114,7 +4184,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4124,18 +4193,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 ] }, @@ -4150,32 +4222,92 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9098:2282", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9098", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "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: Same as second input", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Floor", - "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":{ @@ -4185,32 +4317,86 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9099", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "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":[ - "[]", - "[]", - "Inherit: Same as second input", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", "off", - "Floor", - "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":[ ], @@ -4224,7 +4410,7 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { @@ -4240,8 +4426,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4253,7 +4439,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4264,9 +4449,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4276,7 +4462,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4289,7 +4475,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4299,18 +4484,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 ] }, @@ -4325,11 +4513,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"PI_backCalc_fixdt_Iq", - "label":"PI_backCalc_fixdt_Iq", + "name":"PI_clamp_fixdt_iq", + "label":"PI_clamp_fixdt_iq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -4418,20 +4606,119 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4443,7 +4730,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4454,9 +4740,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4466,7 +4753,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4479,7 +4766,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4489,18 +4775,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 ] }, @@ -4515,28 +4804,82 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9132:2282", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9132", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "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":[ - "[]", - "[]", - "Inherit: Same as second input", + "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", - "Floor", - "off" + "off", + "off", + "", + "", + "on" ], "tabs":[ ], @@ -4550,7 +4893,7 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { @@ -4605,8 +4948,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4618,7 +4961,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4629,9 +4971,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4641,7 +4984,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4654,7 +4997,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4664,18 +5006,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 ] }, @@ -4690,11 +5035,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"PI_backCalc_fixdt_Id", - "label":"PI_backCalc_fixdt_Id", + "name":"PI_clamp_fixdt_id", + "label":"PI_clamp_fixdt_id", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -4783,20 +5128,119 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4808,7 +5252,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4819,9 +5262,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -4831,7 +5275,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -4844,7 +5288,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -4854,18 +5297,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 ] }, @@ -4880,28 +5326,82 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9163:2282", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9163", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "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":[ - "[]", - "[]", - "Inherit: Same as second input", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", "off", - "Floor", - "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":[ ], @@ -4915,7 +5415,7 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { @@ -4970,8 +5470,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -4983,7 +5483,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -4994,9 +5493,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5006,7 +5506,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5019,7 +5519,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5029,18 +5528,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 ] }, @@ -5106,8 +5608,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5119,7 +5621,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5130,9 +5631,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5142,7 +5644,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5155,7 +5657,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5165,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 ] }, @@ -5296,8 +5800,8 @@ "Permissions", "ErrorFcn", "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", + "PropExecContextOutsideSubsystem", + "RTWSystemCode", "ActiveVariant", "ActiveVariantBlock", "AllowZeroVariantControls", @@ -5309,7 +5813,6 @@ "MemberBlocks", "MinAlgLoopOccurrences", "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", "PropagateVariantConditions", "RTWFcnName", "RTWFcnNameOpts", @@ -5320,9 +5823,10 @@ "RTWMemSecDataParameters", "RTWMemSecFuncExecute", "RTWMemSecFuncInitTerm", - "RTWSystemCode", "SystemSampleTime", "TemplateBlock", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", "Variant", "VariantControl" ], @@ -5332,7 +5836,7 @@ "", "All", "off", - "on", + "Auto", "", "", "off", @@ -5345,7 +5849,6 @@ "off", "", "off", - "off", "", "Auto", "", @@ -5355,18 +5858,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 ] },